# Download Thing PCAP File

## Download Thing PCAP File

<mark style="color:blue;">`GET`</mark> `https://console.monogoto.io/thing/ThingId_ICCID_{ICCID}/pcap?From={START_DATE/TIME}&To={END_DATE/TIME}`

#### Path Parameters

| Name                                    | Type   | Description               |
| --------------------------------------- | ------ | ------------------------- |
| ICCID<mark style="color:red;">\*</mark> | String | The ICCID of your SIM     |
| START\_DATE/TIME                        | String | Date/time in Epoch format |
| END\_DATE/TIME                          | String | Date/time in Epoch format |

#### Headers

| Name                                          | Type   | Description               |
| --------------------------------------------- | ------ | ------------------------- |
| YOUR\_TOKEN<mark style="color:red;">\*</mark> | String | Your authentication token |

{% tabs %}
{% tab title="200: OK OK" %}

```javascript
PCAP file
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="404: Not Found Not found" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

### Example using **cURL**:

```bash
curl -X GET \
    --url "https://console.monogoto.io/thing/ThingId_ICCID_{ICCID_HERE}/pcap?From={START_DATE/TIME}&To={END_DATE/TIME}" \
    -H "accept: application/json" \
    -H "Authorization: Bearer {TOKEN_HERE}"
```

{% hint style="info" %}
Please note that the above shown command needs to be replaced with information:&#x20;

**{TOKEN\_HERE}** - replace with your token

**{ICCID\_HERE}** - replace with the ICCID of your SIM

**{START\_DATE/TIME}** - replace with the timestamp of start period date/time in Epoch format. [You may use a converter that can be found following this link](https://www.epochconverter.com/)

**{END\_DATE/TIME}** - replace with the timestamp of end period date/time in Epoch format. [You may use a converter that can be found following this link](https://www.epochconverter.com/)

**{EVEN\_MESSAGE\_TYPE}** - replace with the Event message type to be displayed
{% endhint %}

**Example of request** that will show PCAP results for our SIM card \
\&#xNAN;*Date/time range is from 2020 December 1st 00:00:01 GMT+0 to 2020 December 31st 23:59:59 GMT+0*

```bash
curl -X GET \
    --url "https://console.monogoto.io/thing/ThingId_ICCID_8912372646888991/pcap?From=1606780801&To=1609459199" \
    -H "accept: application/json" \
    -H "Authorization: Bearer eyJhb6IkpXVCJ9.eyJSb2xlIjoiVXN4lclByb2ZpbGVJZF9kZGM2MThhNC0wNTI1LTQ2MmUtYWN3NzhhMGQxYmbSI6Im4zgFkbWluIiwiQ3VzdG9tsbCwiVXNlcklkIjoiVklkXzg5Yj5Y2OGEyUtNDQThhLTEzZjA0MzJhZDE3YyINTAzgZmUtZGI51My00ZjRiLTktN2U5Yjc0ZWU1ZThlIiwiaWNzM3MjI5L2MDY3NTE2Mjl9.99aSLzP7kTgK6TZGW-xalrMu0GkW6viunt3XxbNng"
```

Result should generate you a link for PCAP file download:

```
https://console.monogoto.io/123example456pcap
```

{% openapi src="/files/lqgrtNg1pOcbxIdacwgh" path="/thing/{Id}/pcap" method="get" %}
[JPU\_CustomerAPIV\_Without\_Test it.yaml](https://3922449203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0mPxGpottOEfcucXOR%2Fuploads%2FXtNpEMk17YOUrC39Cmvr%2FJPU_CustomerAPIV_Without_Test%20it.yaml?alt=media\&token=09b74b38-dd09-4edc-8f98-4df792b3c986)
{% endopenapi %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.monogoto.io/developer/api/things/download-thing-pcap-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
