---
title: "Redeem the code; the account may then submit websites on that domain"
method: POST
path: "/api/domain-proof/verify"
---

# Redeem the code; the account may then submit websites on that domain

`POST /api/domain-proof/verify`

## Request

- Base URL: `https://theagentsindex.com`
- URL: `https://theagentsindex.com/api/domain-proof/verify`
- Auth: one of:
  - API key in cookie `__Secure-better-auth.session_token`
  - HTTP bearer

## Request body

- object
  - `proofId` string, required
  - `code` string, required

## Response `200`

{verified: true, domain} — submit again.

- object

## Other responses

- `400`: Wrong code.
- `404`: Unknown proof for this account.
- `409`: The code is no longer open; request a new one.
- `410`: The code expired; request a new one.
- `429`: Too many tries; request a new code.

---

[API](https://skmtc.dev/theagentsindex/apis/the-agents-index-machine-api.md) · [All operations](https://skmtc.dev/theagentsindex/apis/the-agents-index-machine-api/llms.txt) · [OpenAPI document](https://skmtc.dev/theagentsindex/apis/the-agents-index-machine-api/revisions/1b44b8931dae?raw)
