Create an API token
POST/api/v1/api-tokens
Creates an API token that acts as the signed-in user. The response contains the full token secret; it is shown only once and cannot be retrieved later. Optionally set an expiration time.
Access: Any signed-in user, with a session or an API token.
Request
Responses
- 200
- 400
- 401
- 403
OK
Bad Request
Authentication is required or the provided credentials are invalid.
The authenticated user does not have permission to access this resource.