---
title: "CreateRunnerToken"
method: POST
path: "/gitpod.v1.RunnerService/CreateRunnerToken"
tags: ["gitpod.v1.RunnerService"]
---

# CreateRunnerToken

`POST /gitpod.v1.RunnerService/CreateRunnerToken`

CreateRunnerToken returns a token that can be used to authenticate as the
 runner. Use this call to renew an outdated token - this does not expire any
 previously issued tokens.

## Request body

- GitpodV1CreateRunnerTokenRequest
  - `runnerId` string, uuid

## Response `200`

Success

- GitpodV1CreateRunnerTokenResponse
  - `accessToken` string — deprecated, will be removed. Use exchange_token instead.
  - `exchangeToken` string — exchange_token is a one-time use token that should be exchanged by the runner for an access token, using the IdentityService.ExchangeToken rpc. The token expires after 24 hours.

## Other responses

- `default` — Error

---

[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/bef0e79f204c/schema)
