Create an API token
Creates a new personal API token for the authenticated user. The full secret token is returned exactly once, in the plainToken field of the response - store it immediately, as it is hashed on the server and can never be retrieved again. The name must be unique among the user's tokens. Optionally scope the token to specific organizations via organizations (the requesting user must be a member of each); an empty list grants access to all organizations the user belongs to. This endpoint requires a full session/JWT login - it cannot be called while authenticating with an API token.
Authorizations
Long-lived API token created via POST /api/api-tokens (returned once in plaintext).
JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer
Request Body
Responses
api-token resource created
