v1

latestOpenAPI 3.0.02026-07-17166300328.1 KB
AuthKeys

Add auth keys

post/auth_keys/add/{userId}

Path parameters

userIdstring required
Example:12345

Numeric ID of the user

Request body

uuidstring uuid
read_onlyboolean
user_idstring
commentstring
allowed_ipsstring[] nullable

Example request

{
  "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
  "user_id": "12345",
  "allowed_ips": [
    "127.0.0.1"
  ]
}

Response

Auth key response

Example response

{
  "AuthKey": {
    "id": "12345",
    "uuid": "c99506a6-1255-4b71-afa5-7b8ba48c3b1b",
    "created": "1617875568",
    "expiration": "1970-01-01 00:00:00",
    "user_id": "12345",
    "allowed_ips": [
      "127.0.0.1"
    ],
    "last_used": "1617875568"
  }
}