API keys

Exchange credentials for an API key

Authenticates with email + password and mints an organization-scoped API key. Strictly rate limited.

post/api/v1/api-keys

Request

  • Base URL
    https://app.khotan.com
  • URL
    https://app.khotan.com/api/v1/api-keys
  • Auth
    none declared

Request body

emailstring email required
passwordstring required
organizationIdstring required
namestring
role'owner' | 'admin' | 'developer' | 'member'
expiresInDaysinteger

Response

The minted API key (the secret is returned only once).

keystring required
idstring required
namestring nullable required
prefixstring nullable required
organizationIdstring required
role'owner' | 'admin' | 'developer' | 'member' required
expiresAtstring nullable required

Changes

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