---
title: "Refresh Relay Token"
method: POST
path: "/api/v1/relay/refresh"
tags: ["relay"]
---

# Refresh Relay Token

`POST /api/v1/relay/refresh`

Refresh an expiring relay token and return a new one.

Validates the existing token, verifies ownership, and issues
a replacement token with the same session and client kind.

## Request body

- RelayRefreshRequest — Request to refresh an expiring relay token.
  - `relay_token` string, required — Existing relay token to refresh.

## Response `200`

Successful Response

- RelayRefreshResponse — Response containing a new relay token after refresh.
  - `relay_token` string, required — New relay token for websocket authentication.
  - `relay_token_expires_in` integer, required — Seconds until the new relay token expires.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omnara/apis/omnara-api.md) · [All operations](https://skmtc.dev/omnara/apis/omnara-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omnara/omnara-api/revisions/624048e40cad/schema)
