# Download exported Segment data

<mark style="color:orange;">`POST`</mark> <mark style="color:red;">`http`</mark>`://api.ants.tech/access/api/segment/download`

## Request

### Body

* `scope`:&#x20;
* `exportId`:&#x20;

```json
{
    "scope": "download",
    "exportId": 5637051
}
```

### Headers

| Name                                            | Description             |
| ----------------------------------------------- | ----------------------- |
| Authorization<mark style="color:red;">\*</mark> | Bearer `<ACCESS_TOKEN>` |

## Response

*

{% tabs %}
{% tab title="200: OK The request is succeeded, the server responds with the customer profile" %}

```json
{
  "code": 200,
  "message": "Success",
  "data": {
    "entries": [
      {
        "exportStatus": 1,
        "exportedRows": null,
        "startTime": "2024-10-30T02:52:11.080Z",
        "endTime": null,
        "durations": null,
        "responseCode": null,
        "responseMessage": null
      }
    ],
    "meta": {
      "total": 1
    }
  },
  "codeMessage": null,
  "duration": "0.015 ms"
}
```

{% endtab %}

{% tab title="403: Forbidden The authorization process is failed, caused by an invalid token, an expired token or a token without the valid scope." %}

```json
{
    "code": 301,
    "message": "Permission denied",
    "data": "You don't have permission to access this request!"
}
```

{% endtab %}
{% endtabs %}
