---
title: "Create a service account token in the current organization."
method: POST
path: "/organizations/iam/service_accounts/{name}/tokens"
---

# Create a service account token in the current organization.

`POST /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

## Request body

- V1ServiceAccountTokenDetailsPayload
  - `expires_at` integer: Token expiry in UNIX timestamp format.
  - `name` string: Name (not unique) for the token.

## Response `200`

OK

- V1PostServiceAccountTokenResponse
  - `created_at` integer
  - `expires_at` string
  - `id` string
  - `name` string
  - `token` string

## 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)
