---
title: "CreateServiceAccountAccessToken"
method: POST
path: "/gitpod.v1.ServiceAccountService/CreateServiceAccountAccessToken"
tags: ["gitpod.v1.ServiceAccountService"]
---

# CreateServiceAccountAccessToken

`POST /gitpod.v1.ServiceAccountService/CreateServiceAccountAccessToken`

Creates a short-lived access token for configuring a service account.

 The token expires after 30 minutes and can be used as a Bearer token
 in the Authorization header to perform operations on behalf of the
 service account, such as configuring OAuth.

 ### Examples

 - Create access token:

   ```yaml
   serviceAccountId: "d2c94c27-3b76-4a42-b88c-95a85e392c68"
   ```

## Request body

- GitpodV1CreateServiceAccountAccessTokenRequest
  - `serviceAccountId` string, uuid

## Response `200`

Success

- GitpodV1CreateServiceAccountAccessTokenResponse
  - `token` string

## Other responses

- `default` — Error

## Changes

- **2025-12-15** `d62ef4b9187c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.ServiceAccountService/CreateServiceAccountAccessToken/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
