Create a new API token
POST/users/me/tokens
Create a new token to authenticate against the API with (the actual API token is only returned when calling this endpoint)
Request
- application/json
Body
required
description stringrequired
a simple description to remember the token by
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
metadata objectrequired
description stringrequired
the description you provided
token_id numberrequired
the ID of the API token
token stringrequired
the API token that can be used in the Authorization header
{
"metadata": {
"description": "string",
"token_id": 0
},
"token": "string"
}
Loading...