Skip to content

Create a new API key (returned ONCE, store it now)

POST
/apikeys
curl --request POST \
--url https://your-server.example/api/apikeys \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example" }'
Media typeapplication/json
object
name
required
string

Example generated

{
"name": "example"
}

Created. The plaintext key is only returned here.

Media typeapplication/json
object
id
integer format: int64
name
string
key
string

Example

{
"key": "sd_xxx"
}