# API - API call to retrieve Customer Service or Lead Files

## List Files of a Service in SAC360

<mark style="color:green;">`GET`</mark> `/`sac360/list\_file\_attendance/:id

Full endpoint: [https://sprinthub-api-master.sprinthub.app/sac360/list\_file\_attendance/XXXX?i=instance](https://sprinthub-api-master.sprinthub.app/sac360/list_file_attendance/XXXX?i=instancia)

i = name of your instance

XXXX = ID of the Service in SAC360

{% hint style="info" %}
*<mark style="color:purple;">**To List the Services of a Lead, click the link below:**</mark>*

[API - API call to List Lead Conversations](/en/topics/api/api-api-call-to-list-lead-conversations.md)
{% endhint %}

| Name     | Value   |
| -------- | ------- |
| apitoken | XXXXXXX |

**Response**

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

```json
[
    {
        "type": "video",
        "url": "https://mmg.whatsapp.net/v/xxxxxxxx2_5xxxx6_n.enc?ccb=11-4&oh=01xxxxxxFUg&oe=66CEF3DC&_nc_sid=xxxxx3=true",
        "mimetype": "video/mp4",
        "s3url": "https://xxxxxx.amazonaws.com/xxxxxxx/whatsapp/2024/07/xxxxxEF60.mp4",
        "s3urlcurt": "whatsapp/2024/07/xxxxxxEF60.mp4",
        "ext": "mp4"
    },
    {
        "type": "audio",
        "url": "https://mmg.whatsapp.net/v/XXXXXXXy&oe=66CF2DF4&_nc_sid=xxxxxmms3=true",
        "mimetype": "audio/aac",
        "s3url": "https://xxxxxx.amazonaws.com/xxxxxx/whatsapp/2024/07/xxxxxxD1.aac",
        "s3urlcurt": "whatsapp/2024/07/xxxxxx649D1.aac",
        "ext": "aac"
    }
]
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

**Example in Postman**

<figure><img src="/files/89024bc4fb592295c95b37a1976f63b459411996" alt=""><figcaption></figcaption></figure>

## List Files of a Lead (Lists all files from all the Lead's services)

<mark style="color:green;">`GET`</mark> `/`sac360/list\_file\_lead/:id

Full endpoint: [https://sprinthub-api-master.sprinthub.app/sac360/list\_file\_lead/XXXX?i=instance](https://sprinthub-api-master.sprinthub.app/sac360/list_file_lead/XXXX?i=instancia)

i = name of your instance

XXXX = ID of the Lead

**Headers**

| Name     | Value   |
| -------- | ------- |
| apitoken | XXXXXXX |

**Response**

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

```json
[
    {
        "type": "video",
        "url": "https://mmg.whatsapp.net/v/xxxxxxxx2_5xxxx6_n.enc?ccb=11-4&oh=01xxxxxxFUg&oe=66CEF3DC&_nc_sid=xxxxx3=true",
        "mimetype": "video/mp4",
        "s3url": "https://xxxxxx.amazonaws.com/xxxx/whatsapp/2024/07/xxxxxEF60.mp4",
        "s3urlcurt": "whatsapp/2024/07/xxxxxxEF60.mp4",
        "ext": "mp4"
    },
    {
        "type": "audio",
        "url": "https://mmg.whatsapp.net/v/XXXXXXXy&oe=66CF2DF4&_nc_sid=xxxxxmms3=true",
        "mimetype": "audio/aac",
        "s3url": "https://xxxxxx.amazonaws.com/xxxx/whatsapp/2024/07/xxxxxxD1.aac",
        "s3urlcurt": "whatsapp/2024/07/xxxxxx649D1.aac",
        "ext": "aac"
    }
]
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

**Example in Postman**

<figure><img src="/files/4d68a0a6d5c60bb018c0734af13d4c06a8ac9f3a" alt=""><figcaption></figcaption></figure>


---

# 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.sprinthub.com/en/topics/api/api-api-call-to-fetch-service-or-lead-files.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.
