---
title: "Refresh Domain Token"
method: POST
path: "/organizations/domains/{domain_id}/refresh"
tags: ["Organizations"]
---

# Refresh Domain Token

`POST /organizations/domains/{domain_id}/refresh`

Refresh the verification token for an unverified domain.

Generates a new token and resets the 48-hour expiry window.
This is useful when the original token has expired.

## Path parameters

- `domain_id` string, required

## Response `200`

Successful Response

- OrganizationDomainResponse — Response model for a domain.
  - `id` string, uuid, required
  - `slug` string, required
  - `name` string, nullable, required
  - `description` string, nullable, required
  - `flags` object, required
  - `token` string, nullable, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable, required
  - `organization_id` string, uuid, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-05-08** `5e6f53ce5d08` — 1 info
  - api operation id `refresh_domain_token_organizations_domains__domain_id__refresh_post` removed and replaced with `refresh_organization_domain_token`
- **2026-02-13** `72fe88316d15` — 1 info
  - endpoint added
- **2025-06-27** `e3e84db47198` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/organizations/domains/:domain_id/refresh/post.md)

---

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