# Extraction of requests

This API call allows you to retrieve an extraction of the requests.

## Endpoint

* **URL:** `requests/export`
* **Method:** `POST`


## Headers

Ensure you include the following headers in your request:

* `Accept: application/json`
* `X-Api-Key: YOUR_API_KEY` (replace `YOUR_API_KEY` with your actual API key)
* `data`: You can set some filter parameters in the request:
  * `createdAtStart`: extract the requests created from this date
  * `createdAtEnd`: extract the requests created until this date
  * `organizationId`: ID of the organization where I want to do the extraction
  * `requestTypeId`: Id of the request type, if I want the extraction of requests of only one type
  * `status`: status of the request. I can extract the requests only in a certain state.


## Example cURL API call


```
curl --location 'https://test-eu-ie1-api.namirialonboarding.com/api/v2/requests/export' \
--header 'Content-Type: application/json' \
--header 'content-type: application/json' \
--header 'X-API-KEY: YOUR_API_KEY' \
--data '{
  "organizationId": "YOUR_ORGANIZATION_ID",
  "createdAtStart": "2025-09-02T12:19:12.269594Z",
  "createdAtEnd": "2025-09-08T12:19:12.269594Z",
  "requestTypeId": "YOUR_REQUEST_TYPE"
  "status": "COMPLETED"
}
'
```

Replace `YOUR_API_KEY` with your actual API key