---
title: "Delete service token"
method: DELETE
path: "/v1/service_token/{service_token_id}"
tags: ["ServiceTokens"]
---

# Delete service token

`DELETE /v1/service_token/{service_token_id}`

## Request

- Base URL: `https://api.braintrust.dev`
- URL: `https://api.braintrust.dev/v1/service_token/{service_token_id}`
- Auth: one of:
  - HTTP bearer
  - none

Delete a service token object by its id

## Path parameters

- `service_token_id` string, uuid, required: ServiceToken id

## Response `200`

Returns the deleted service token object

- ServiceToken
  - `id` string, uuid, required: Unique identifier for the service token
  - `created` string, date-time, nullable: Date of service token creation
  - `name` string, required: Name of the service token
  - `preview_name` string, required: Masked preview showing the token prefix and last four characters, e.g. bt-st-…AbCd.
  - `service_account_id` string, uuid, nullable: Unique identifier for the service token
  - `service_account_email` string, nullable: The service account email (not routable)
  - `service_account_name` string, nullable: The service account name
  - `org_id` string, uuid, nullable: Unique identifier for the organization
  - `expires_at` string, date-time, nullable: Date and time at which the service token expires. If null, the token never expires.

## Other responses

- `400`: The request was unacceptable, often due to missing a required parameter
- `401`: No valid API key provided
- `403`: The API key doesn’t have permissions to perform the request
- `429`: Too many requests hit the API too quickly. We recommend an exponential backoff of your requests
- `500`: Something went wrong on Braintrust's end. (These are rare.)

## Changes

- **2026-08-13** `e05ef145579d`: 1 info
  - added the optional property `expires_at` to the response with the `200` status
- **2025-08-15** `48d02c745827`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/braintrustdata/apis/braintrust-api/changes/v1/service_token/:service_token_id/delete.md)

---

[API](https://skmtc.dev/braintrustdata/apis/braintrust-api.md) - [All operations](https://skmtc.dev/braintrustdata/apis/braintrust-api/llms.txt) - [OpenAPI document](https://skmtc.dev/braintrustdata/apis/braintrust-api/revisions/19184ec94018?raw)
