Create API key
POSThttps://demo.komga.org/api/v2/users/me/api-keys
Create API key
Request
- application/json
Bodyrequired
commentstringrequired
Responses
- 200
- 400
OK
- application/json
- Schema
- Example (auto)
Schema
commentstringrequired
createdDatedate-timerequired
idstringrequired
keystringrequired
lastModifiedDatedate-timerequired
userIdstringrequired
{
"comment": "string",
"createdDate": "2024-07-29T15:51:28.071Z",
"id": "string",
"key": "string",
"lastModifiedDate": "2024-07-29T15:51:28.071Z",
"userId": "string"
}
Bad Request
- */*
- Schema
- Example (auto)
Schema
violations object[]required
{
"violations": [
{
"fieldName": "string",
"message": "string"
}
]
}
Authorization: http
name: basicAuthtype: httpscheme: basic
- curl
- python
- nodejs
- java
- kotlin
- powershell
- swift
- rust
- CURL
curl -L 'https://demo.komga.org/api/v2/users/me/api-keys' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Basic PHVzZXJuYW1lPjo8cGFzc3dvcmQ+' \
-d '{
"comment": "string"
}'
ResponseClear