Discussions

Ask a Question
Back to All

Can we access SMS messages details from the API?

I am trying to retrieve a list of SMS messages we received via Dialpad APIs. Is that possible? I tried stats with the following.

{
  "export_type": "records",
  "stat_type": "texts",
  "timezone": "UTC",
  "is_today": true
}

but that doesn't work (status: 401, message: No access to text records, only stats).

Is it possible to access the SMS "attachment" via the API, for example someone sends us a SMS message with a picture and we would like to automate retrieving the picture and saving it in our system, can we do that via the Dialpad API?