---
title: agents.deny | Doing Work API
description: Hosted claim page only: the person turns the agent down. The registration closes and the agent's poll gets access_denied.
url: https://doingwork.work/docs/reference/agents-deny/
---

# agents.deny

Hosted claim page only: the person turns the agent down. The registration closes and the agent's poll gets access_denied.

|  |  |
|---|---|
| Who | Hosted page only (a person does it in the browser) |
| REST | `POST /v1/agent/identity/deny` |
| MCP tool | Not an MCP tool |
| Writes | yes, send an Idempotency-Key |
| Area | [Sign-in and agent access](https://doingwork.work/docs/reference/#sign-in-and-agent-access) |

## When to use it

Hosted claim page only: the person turns the agent down. The registration closes and the agent's poll gets access_denied.

## What to tell the owner

Send the person the link. They finish this step themselves on the page; you never do it for them.

## Input

| Field | Type | Required |
|---|---|---|
| `claim_attempt_token` | string | yes |

## Example

```http
POST https://doingwork.work/v1/agent/identity/deny
content-type: application/json
Idempotency-Key: 3f1c...

{
  "claim_attempt_token": "..."
}
```

## Output

| Field | Type | Always there |
|---|---|---|
| `denied` | boolean | yes |

```json
{
  "denied": true
}
```

## Errors

| Code | Status | What to do |
|---|---|---|
| `invalid_input`, `invalid_token`, `rate_limited` |  | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |
