APIKeys

Create an API key

Changed on

The raw secret is returned only once in the response. Store it securely; it cannot be retrieved again.

post/api/v1/auth/keys

Request

  • Base URL: http://localhost:8081
  • URL: http://localhost:8081/api/v1/auth/keys
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

X-Tenant-IDstring required

Tenant isolation header (required on all protected routes).

Request body

namestring required
scopesstring[]
expiresAtstring date-time nullable

Response

Key created

secretstring

Raw API key secret (shown only once)

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status