# Reset PIN API

## Reset Pin Request

<mark style="color:green;">`POST`</mark> `https://www.cotter.app/api/v0/user/reset/request/:client_user_id`

This endpoint allows you to get free cakes.

#### Path Parameters

| Name             | Type   | Description                                                                                 |
| ---------------- | ------ | ------------------------------------------------------------------------------------------- |
| client\_user\_id | string | The Cotter User ID of the user. If you have a different `client_user_id`, use that instead. |

#### Headers

| Name             | Type   | Description         |
| ---------------- | ------ | ------------------- |
| Content-Type     | string | application/json    |
| API\_SECRET\_KEY | string | Your API Secret Key |
| API\_KEY\_ID     | string | Your API Key ID     |

#### Request Body

| Name                 | Type   | Description                                                            |
| -------------------- | ------ | ---------------------------------------------------------------------- |
| name                 | string | The user's name                                                        |
| sending\_destination | string | The user's email address                                               |
| sending\_method      | string | The string `EMAIL`, we only send the PIN reset code via email for now. |
| method               | string | The string `PIN`                                                       |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{
  "success": true,
  "challenge_id": 123,
  "challenge": "abcde12345"
}
```

{% endtab %}
{% endtabs %}
