> ## Documentation Index
> Fetch the complete documentation index at: https://docs.affonso.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Review a match

> Approve, reject, or record outreach progress on a Discovery match

Approves or rejects a delivered match, or records outreach progress. Requires the `write:discovery` permission.

| Action | Effect | Allowed when |
| - | - | - |
| `approve` | Sets `review_decision` to `accepted` and starts the contact email search once. Status becomes `contact_enriching`, or `outreach_ready` or `contact_not_found` when a search already finished | Status is not `contacted`, `won`, or `discarded`. The match must belong to an agent |
| `reject` | Sets `review_decision` to `rejected` and status to `rejected` | Status is not `contacted`, `won`, or `discarded` |
| `mark_contacted` | Sets status to `contacted` | Status is `outreach_ready` or `contacted` |
| `mark_won` | Sets status to `won` | Status is `outreach_ready`, `contacted`, or `won` |

Sending the same action again succeeds and returns the match unchanged. Rejecting a match adds its domain or creator to the agent's [hard list](https://docs.affonso.io/api/endpoint/discovery/list-hard-list.md). Approving a match removes it from the hard list. A rejection applies to your team's match only.

Approving is how the API starts the contact email search for a prospect, the same as in the dashboard. There is no separate endpoint to start an email search. [Get email searches](https://docs.affonso.io/api/endpoint/discovery/get-email-searches.md) shows how many are left this month.

## Path Parameters

**id** `string` *required*

Match ID from [List matches](https://docs.affonso.io/api/endpoint/discovery/list-matches.md).

## Body Parameters

Send `action` or `review_decision`. If you send both, they must describe the same decision. The body is strict. Unknown fields are rejected.

**action** `string`

`approve`, `reject`, `mark_contacted`, or `mark_won`.

**review\_decision** `string`

Older alternative to `action`. `accepted` approves and `rejected` rejects.

## Response

**success** `boolean`

`true` when the request succeeds.

**data** `object`

The updated match.

**Match fields**

**id** `string`

Match ID.

**agent\_id** `string | null`

Agent that found the match.

**prospect\_id** `string`

ID of the matched prospect.

**status** `string`

Workflow status: `discovered`, `qualified`, `awaiting_approval`, `approved`, `contact_enriching`, `outreach_ready`, `contacted`, `won`, `rejected`, `discarded`, or `contact_not_found`.

**review\_decision** `string | null`

`accepted`, `rejected`, or `null` when the match has not been reviewed. `null` does not mean rejected.

**review\_decided\_at** `string | null`

ISO 8601 timestamp of the last approve or reject.

**review\_decided\_by\_user\_id** `string | null`

User who made the decision in the dashboard. Decisions made through the API set this to `null`.

**fit\_score** `number | null`

How well the prospect fits the agent brief.

**contact\_status** `string | null`

Contact lookup state: `enriching`, `ready` (an email address was found), `not_found`, or `null` when no lookup applies, for example before approval or after a rejection.

**delivery\_state** `string`

Always `delivered`. Only delivered matches are visible through the API.

**created\_at** `string`

ISO 8601 timestamp.

**updated\_at** `string`

ISO 8601 timestamp.

## Errors

* **400** `VALIDATION_ERROR`: the body is invalid, has neither field, or `action` and `review_decision` disagree. The message is `Invalid request` and `details` contains `Provide action or review_decision` or `action and review_decision must describe the same decision`.
* **400** `VALIDATION_ERROR`: the action is not allowed in the current status. Example messages: `Cannot approve a Discovery match in contacted status`, `Mark contacted is only allowed when contact enrichment is ready`, `Mark Won is only allowed from outreach-ready or contacted`, `Cannot approve a Discovery match that is not linked to an agent`.
* **404** `NOT_FOUND`: no delivered match with this ID exists. The message is `Discovery match not found`.
* **403** `FORBIDDEN`: the match belongs to another team. The message is `Discovery match does not belong to your team`.
* **403** `INSUFFICIENT_PERMISSIONS`: the API key does not have the `write:discovery` permission.

```json Action not allowed theme={null}
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Mark Won is only allowed from outreach-ready or contacted"
  }
}
```

```bash cURL Approve theme={null}
curl -X PATCH "https://api.affonso.io/v1/discovery/matches/cmn4mat0001xk92hf6d0abcd" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "approve"
  }'
```

```bash cURL Reject theme={null}
curl -X PATCH "https://api.affonso.io/v1/discovery/matches/cmn4mat0001xk92hf6d0abcd" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "reject"
  }'
```

```bash cURL Mark contacted theme={null}
curl -X PATCH "https://api.affonso.io/v1/discovery/matches/cmn4mat0001xk92hf6d0abcd" \
  -H "Authorization: Bearer sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "mark_contacted"
  }'
```

```json Approved theme={null}
{
  "success": true,
  "data": {
    "id": "cmn4mat0001xk92hf6d0abcd",
    "agent_id": "cmn4agt0001xk92hf6d0abcd",
    "prospect_id": "cmn4pro0001xk92hf6d0abcd",
    "status": "contact_enriching",
    "review_decision": "accepted",
    "review_decided_at": "2026-11-04T09:00:00.000Z",
    "review_decided_by_user_id": null,
    "fit_score": 12.5,
    "contact_status": "enriching",
    "delivery_state": "delivered",
    "created_at": "2026-11-03T07:00:00.000Z",
    "updated_at": "2026-11-04T09:00:00.000Z"
  }
}
```

```json Rejected theme={null}
{
  "success": true,
  "data": {
    "id": "cmn4mat0001xk92hf6d0abcd",
    "agent_id": "cmn4agt0001xk92hf6d0abcd",
    "prospect_id": "cmn4pro0001xk92hf6d0abcd",
    "status": "rejected",
    "review_decision": "rejected",
    "review_decided_at": "2026-11-04T09:00:00.000Z",
    "review_decided_by_user_id": null,
    "fit_score": 12.5,
    "contact_status": null,
    "delivery_state": "delivered",
    "created_at": "2026-11-03T07:00:00.000Z",
    "updated_at": "2026-11-04T09:00:00.000Z"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.