api-keys

Create API key

Mint a tenant API key. The plaintext key is returned once and cannot be retrieved again.

post/v1/api-keys

Request

  • Base URL: https://api.patricia.app (the document declares no server; this is the origin it was published from)
  • URL: https://api.patricia.app/v1/api-keys
  • Auth: HTTP bearer

Headers

X-Tenant-Idstring nullable

Request body

namestring required
role_code'owner' | 'admin' | 'member' | 'viewer' required
expires_atstring date-time nullable

Response

The created key, including the one-time plaintext.

idstring uuid required
tenant_idstring uuid required
namestring required
prefixstring required
role_code'owner' | 'admin' | 'member' | 'viewer' required
created_bystring uuid nullable
last_used_atstring date-time nullable
revoked_atstring date-time nullable
expires_atstring date-time nullable
created_atstring date-time required
updated_atstring date-time required
plaintext_keystring required

Changes

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