Service Tokens

POST /api/v3/accounts/{account_id}/service-tokens/

Changed on

This endpoint is used to generate a new service token for the account.

Request

  • Base URL
    https://cloud.getdbt.com
  • Auth
    HTTP bearer

Path parameters

account_idinteger required

Request body

namestring required

The name of the service token

expires_atstring date-time

When the token stops authenticating. Omit for no expiry. Must be in the future, no more than 365 days out, with a timezone offset.

metadata_onlyboolean

Deprecated. Use the metadata_only permission set instead.

webhooks_onlyboolean

Response

extraobject
error_codeinteger

Changes

    • info

      added the new optional request property (media type: application/json)

    • info

      added the new optional request property (media type: application/x-www-form-urlencoded)

    • info

      added the new optional request property (media type: multipart/form-data)

    • breaking

      the // request property format changed from no format to int64 (media type: application/json)

    • breaking

      the // request property format changed from no format to int64 (media type: application/x-www-form-urlencoded)

    • breaking

      the // request property format changed from no format to int64 (media type: multipart/form-data)