For the complete documentation index, see llms.txt. This page is also available as Markdown.

API - API call to fetch Service or Lead Files

List Files from a Ticket in SAC360

GET /sac360/list_file_attendance/:id

Full endpoint: https://sprinthub-api-master.sprinthub.app/sac360/list_file_attendance/XXXX?i=instancia

i = name of your instance

XXXX = SAC360 Ticket ID

To list the tickets for a Lead, click the link below:

API - API call to list a Lead's Services

Name
Value

apitoken

XXXXXXX

Response

[
    {
        "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"
    }
]
{
  "error": "Invalid request"
}

Postman example

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

GET /sac360/list_file_lead/:id

Full endpoint: https://sprinthub-api-master.sprinthub.app/sac360/list_file_lead/XXXX?i=instancia

i = name of your instance

XXXX = Lead ID

Headers

Name
Value

apitoken

XXXXXXX

Response

Postman example

Last updated