---
title: "Refresh Environment Token"
method: POST
path: "/api/v1/environments/{environment_id}/token"
tags: ["environments"]
---

# Refresh Environment Token

`POST /api/v1/environments/{environment_id}/token`

## Request

- Base URL: `https://api.komos.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.komos.ai/api/v1/environments/{environment_id}/token`
- Auth: none declared

## Path parameters

- `environment_id` string, uuid, required

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Response `200`

Successful Response

- EnvironmentRegisterResponse
  - `environment_id` string, uuid, required
  - `secret` string, required
  - `expires_at` string, date-time, nullable, required
  - `gateway_url` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/komos/apis/komos-backend.md) · [All operations](https://skmtc.dev/komos/apis/komos-backend/llms.txt) · [OpenAPI document](https://skmtc.dev/komos/apis/komos-backend/revisions/f10e153fab38?raw)
