POST /reports/messages
Request a CSV report of messages (both incoming and outgoing) that have been sent to/from your account within the last three months. You can request details for a specific timeframe, and filter your messages by tags, recipient number or Virtual Number.
A 201 Created means your report has been queued for generation. Make a note of the reportId returned in the response. You'll need this to check the status of your report and fetch your download link with GET reports/{reportId}. If you supplied a reportCallbackUrl in the request we'll also notify it when your report is ready for download.
Once your report is generated, it will be available for download for one week. The expiry date is returned in the response.
Servers
- https://products.api.telstra.com/messaging/v3
Request headers
Name | Type | Required | Description |
---|---|---|---|
Accept |
String | Yes | |
Telstra-api-version |
String | No | |
Content-Type |
String | Yes | |
Content-Language |
String | Yes | |
Authorization |
String | Yes | |
Accept-Charset |
String | Yes |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
endDate |
String | Yes |
Type the end date (inclusive) of your reporting period here. Your endDate must be a date in the past, and less than three months from your startDate. Use ISO format(yyyy-mm-dd). |
filter |
String | No |
Filter your messages report by:
|
reportCallbackUrl |
String | No |
Tell us the callbackUrl you want us to notify when your report is ready for download. Sample callback response:
|
startDate |
String | Yes |
Set the time period you want to generate a report for by typing the start date (inclusive) here. Note that we only retain data for three months, so please ensure your startDate is not more than three months old. Use ISO format(yyyy-mm-dd), e.g. 2019-08-24. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.