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

# Approve partner

> Approve a partner who is pending approval and give them access to the partner portal

## Endpoint

```
POST https://api.partnero.com/v1/partners/{id}/approve
```

> [!NOTE]
>
> This endpoint is available for affiliate programs only.

Approves a partner who is pending approval, including partners you created through the API. They don't need to log in or submit the approval form. This works the same way as clicking **Approve** in the dashboard: the `partner.approved` [webhook](https://docs.partnero.com/api-reference/webhooks/overview.md) is sent. Partners who applied through the approval form also receive the approval email, and partners who signed up through an instant link receive a set-password email if that's enabled. Partners you created through the API don't receive an email.

The call is safe to retry. Approving a partner who is already approved changes nothing and returns the partner as is.

## Path parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | string | Yes | Partner's ID, key or email |

## Request

```bash cURL theme={"system"}
curl --location --request POST 'https://api.partnero.com/v1/partners/partner_123/approve' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

## Response

Returns the updated partner, in the same format as [Get partner](https://docs.partnero.com/api-reference/partners/get.md).

```json 200 OK theme={"system"}
{
  "data": {
    "id": "partner_123",
    "email": "john.doe@partnero.com",
    "name": "John",
    "surname": "Doe",
    "approved": true,
    "status": "active",
    "created_at": "2025-04-30T16:44:13.000000Z",
    "updated_at": "2025-05-02T09:12:40.000000Z"
  },
  "status": 1
}
```

## Behavior

* **Rejected partners** can be approved. This reactivates them, as in the dashboard.
* **Suspended partners** who are already approved are not unsuspended. The call is a no-op.
* **Partners without an approval request** (for example, partners created through the API or who signed up through an instant link) can be approved. The `partner.approved` webhook is sent for them too, but the approval email isn't, because there's no application to respond to. The dashboard behaves the same way.
* The `partner.approved` webhook is sent once, when the partner goes from pending to approved. Approving a partner who is already approved doesn't send it again.

## Error responses

| Status | Error | Solution |
| - | - | - |
| 401 | Unauthenticated | Check your API key is set in the `Authorization` header |
| 404 | Partner not found | Check the partner ID, key or email. Archived partners can't be approved; [restore](https://docs.partnero.com/api-reference/partners/restore.md) them first |
| 422 | Failed to approve partner | The approval couldn't be completed. The reason is in the `message` field |


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