Database (v2)

Generate a new token for the whole Database

put/v2/databases/{db_id}/auth/generate

Request

Path parameters

db_idstring required

[DatabaseId] is a db_<ulid>

The [DatabaseGroupId].

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

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status