Admin

Create Token

Create a new API token for a user.

Request body:

  • user_id: ID of the user to create token for
  • name: Name of the token
  • expires_in_days: Optional number of days until token expires
  • description: Optional description
post/api/tokens

Request

  • Base URL: https://app.getdot.ai (the document declares no server; this is the origin it was published from)
  • URL: https://app.getdot.ai/api/tokens
  • Auth: one of:
    • API key in header X-API-KEY
    • API key in cookie Authorization
    • OAuth 2 (password, token URL /api/auth/token)

Request body

namestring required
user_idstring nullable
expires_in_daysinteger nullable
descriptionstring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.