ServiceTokens

Delete service token

Changed on

Delete a service token object by its id

delete/v1/service_token/{service_token_id}

Request

  • Base URL
    https://api.braintrust.dev
  • Auth
    • HTTP bearer
    • or none

Path parameters

service_token_idstring uuid required

ServiceToken id

Response

Returns the deleted service token object

idstring uuid required

Unique identifier for the service token

createdstring date-time nullable

Date of service token creation

namestring required

Name of the service token

preview_namestring required

Masked preview showing the token prefix and last four characters, e.g. bt-st-…AbCd.

service_account_idstring uuid nullable

Unique identifier for the service token

service_account_emailstring nullable

The service account email (not routable)

service_account_namestring nullable

The service account name

org_idstring uuid nullable

Unique identifier for the organization

expires_atstring date-time nullable

Date and time at which the service token expires. If null, the token never expires.

Changes