> For the complete documentation index, see [llms.txt](https://docs.delos.financial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.delos.financial/authentication/recovery-access.md).

# Recovery Access

Initiates the password recovery process by sending a verification code to the user's registered email or phone number. Returns a temporary token for the next recovery step.

**Endpoint**

`POST/v2/auth/recovery/request`

**Link**

{% embed url="<https://partner.sandbox.delos.financial/openapi/v2.html#/operations/Auth_RecoveryAccessRequest>" %}

### **Request**

#### **Headers**

| Key             | Value              | Required |
| --------------- | ------------------ | -------- |
| `Authorization` | `<JWT>`            | Yes      |
| `Content-Type`  | `application/json` | Yes      |
| `Accept`        | `application/json` | Yes      |

#### **Request Body (JSON)**

| Field       | Type     | Description               | Required | Example              |
| ----------- | -------- | ------------------------- | -------- | -------------------- |
| **`login`** | `string` | User's email or username. | Yes      | `"user@example.com"` |

**Example Request Body:**

json

```
{
  "login": "user@example.com"
}
```

***

### **Response (200 OK)**

Returns a temporary token to be used in the recovery confirmation step.

#### **Response Fields**

| Field       | Type     | Description                                                  | Example       |
| ----------- | -------- | ------------------------------------------------------------ | ------------- |
| **`token`** | `string` | **One-time token** for password reset. Valid for 15 minutes. | `"xyz789abc"` |

**Example Response:**

json

```
{
  "token": "xyz789abc"
}
```

***

### **Error Responses**

1. **User Not Found**:

   json

   ```
   {
     "error": "Account not found"
   }
   ```
2. **Too Many Requests**:

   json

   ```
   {
     "error": "Recovery attempts exceeded. Try again in 30 minutes"
   }
   ```

***

### **Next Steps**

1. **Check Email/SMS** for a 6-digit recovery code.
2. **Submit Code + Token** to `/v2/auth/recovery/confirm` with a new password.

***

### **Notes**

* **Token Validity**: 15 minutes (configurable).
* **Security**:
  * Codes are sent only to **verified** emails/phones.
  * Rate-limited to 3 attempts per hour.
* **UI Flow**:

  <figure><img src="https://4120526196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6rExT0pUdQJ46WjzZtpV%2Fuploads%2FI7baMQpwRIXoOecjVjnp%2Fdeepseek_mermaid_20250818_56eca2.png?alt=media&amp;token=db368dbe-366f-4a3e-9c0f-88126260867e" alt=""><figcaption></figcaption></figure>

### Examples

**Real request**&#x20;

```postman_json
Authorization:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjE2NCwiZXhwIjoxNzYxMTI5NzYxLCJrZXkiOiI1Y2ZiOGZjN2RmYjk4ZjVkYmIyZTgwNTVkZWFhN2U2Zjk4MzEyYmE3Iiwib3RwX3ZlcmlmaWVkIjpmYWxzZX0.atnfresV4v9XT9f_ze3ShmVs337TWt087Ze0MNuiiWk
{
  "login": "test@delos.financial"
}
```

**Real response**&#x20;

200 OK

```postman_json
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjE2NCwiZXhwIjoxNzYxMTMwMjY4LCJvdHBfdmVyaWZpZWQiOmZhbHNlfQ.JRS7E-q__bQU8o5pM1NMIgxN4KRf5jO2LpJX2_E_3F4"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.delos.financial/authentication/recovery-access.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
