Skip to main content
POST
/
api
/
v2
/
users
Create user
curl --request POST \
  --url https://demo.komga.org/api/v2/users \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "roles": [
    "<string>"
  ],
  "labelsAllow": [
    "<string>"
  ],
  "labelsExclude": [
    "<string>"
  ]
}
'
{
  "email": "<string>",
  "id": "<string>",
  "labelsAllow": [
    "<string>"
  ],
  "labelsExclude": [
    "<string>"
  ],
  "roles": [
    "<string>"
  ],
  "sharedAllLibraries": true,
  "sharedLibrariesIds": [
    "<string>"
  ],
  "ageRestriction": {
    "age": 123,
    "restriction": "ALLOW_ONLY"
  }
}

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
email
string
required
password
string
required
Minimum string length: 1
roles
string[]
required
ageRestriction
object
labelsAllow
string[]
labelsExclude
string[]
sharedLibraries
object

Response

Created

email
string
required
id
string
required
labelsAllow
string[]
required
labelsExclude
string[]
required
roles
string[]
required
sharedAllLibraries
boolean
required
sharedLibrariesIds
string[]
required
ageRestriction
object