---
title: "List service tokens"
method: GET
path: "/v1/service_token"
tags: ["ServiceTokens"]
---

# List service tokens

`GET /v1/service_token`

## Request

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

List out all service tokens. They are sorted by creation date, with the most recently-created tokens coming first.

To create a service token, visit [**Settings > Service tokens**](https://www.braintrust.dev/app/~/configuration/org/service-tokens) as an organization owner or an Owner of an active project group in the organization, or call [`POST /v1/service_token`](https://docs.braintrust.dev/api-reference/servicetokens/create-service_token) with a service token. Results include only service tokens you can manage.

## Query parameters

- `limit` integer, nullable: Limit the number of objects to return
- `starting_after` string, uuid: Pagination cursor id. For example, if the final item in the last page you fetched had an id of `foo`, pass `starting_after=foo` to fetch the next page. Note: you may only pass one of `starting_after` and `ending_before`
- `ending_before` string, uuid: Pagination cursor id. For example, if the initial item in the last page you fetched had an id of `foo`, pass `ending_before=foo` to fetch the previous page. Note: you may only pass one of `starting_after` and `ending_before`
- `ids` union: Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
  - string, uuid
  - string[]
- `service_token_name` string: Name of the service_token to search for
- `org_name` string: Filter search results to within a particular organization

## Response `200`

Returns a list of service token objects

- object
  - `objects` ServiceToken[], required: A list of service token objects
    - `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 `objects/items/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/get.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)
