Database

Generate Token

Generate a Database Auth Token

post/v1/databases/{db_id}/auth/tokens

Request

Path parameters

db_idstring required

[DatabaseId] is a db_<ulid>

The [DatabaseId] in a form of db_<id>

Request body

expires_atstring date-time nullable

The expired at date for the token, if not degined the token won't expire until you invalidate the JWT Secrets.

Needs to be a date-time under the RFC 3339

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

Response

tokenstring required

The generated JWT for the [Database].

expires_atstring date-time nullable

The expired at date for the token.

A date-time under the RFC 3339

Changes

No recorded changes to this operation across all 3 revisions of this API.