api_keys

Create Api Key

Create API key. Superusers may pass org_id to create for another org.

Set bind_to_user=false to create an org-scoped external API key (no user linked, cannot be used as a bearer token for session auth).

post/api/api-keys

Request

  • Base URL
    https://api-v1.unusual.ai (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: /auth/login

Headers

x-view-asstring nullable

Request body

namestring nullable
org_idstring nullable
bind_to_userboolean

Response

Successful Response

idstring uuid required
namestring nullable
key_prefixstring required
created_atstring date-time required
last_used_atstring date-time nullable
revoked_atstring date-time nullable
user_emailstring nullable
is_superuserboolean
expires_atstring date-time nullable
api_keystring required

Changes

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