v1

latestOpenAPI 3.0.1MIT2026-07-134925112.4 KB

Generate Database Auth Token

Generates an authorization token for the specified database.

post/v1/organizations/{organizationSlug}/databases/{databaseName}/auth/tokens

Path parameters

organizationSlugstring required

The slug of the organization or user account.

databaseNamestring required

The name of the database.

Query parameters

expirationstring

Expiration time for the token (e.g., 2w1d30m).

authorization'full-access' | 'read-only'

Authorization level for the token (full-access or read-only).

Request body

Response

Successful response

jwtstring

The generated authorization token (JWT).