Skip to main content
POST
/
api
/
v2
/
users
/
me
/
api-keys
Create API key
curl --request POST \
  --url https://demo.komga.org/api/v2/users/me/api-keys \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "<string>"
}
'
{
  "comment": "<string>",
  "createdDate": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "key": "<string>",
  "lastModifiedDate": "2023-11-07T05:31:56Z",
  "userId": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
comment
string
required
Minimum string length: 1

Response

OK

comment
string
required
createdDate
string<date-time>
required
id
string
required
key
string
required
lastModifiedDate
string<date-time>
required
userId
string
required