---
title: "Retrieve a service account tokens based on a service account name."
method: GET
path: "/organizations/iam/service_accounts/{name}/tokens"
---

# Retrieve a service account tokens based on a service account name.

`GET /organizations/iam/service_accounts/{name}/tokens`

## Request

- Base URL: `https://api.border0.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.border0.com/organizations/iam/service_accounts/{name}/tokens`
- Auth: API key in header `Authorization`

## Path parameters

- `name` string, required

## Response `200`

OK

- V1GetServiceAccountsTokensResponse
  - `items` integer
  - `list` SerializerTokenSummary[]
    - `connector` string
    - `created_by` string
    - `directory_service` string
    - `expires_at` string
    - `id` string
    - `name` string
    - `role` string: will be deprecated
    - `service_account` string
    - `token_id` string: deprecated in favour of ID

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `500`: Internal Server Error

---

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