Get Things Services Usage Report

This guide will show you how you can get your Things (SIM) Usage Report via an API command.

Please note that in order to get Services Usage Report you will need to run multiple API commands:

1st API command - Create Report template

Create Report template

POST https://console.monogoto.io/report-template

Headers

Name
Type
Description

YOUR_TOKEN*

String

Your authentication token

Request Body

Name
Type
Description

REPORT_NAME*

String

Report name

REPORT_DESCRIPTION*

String

Report description

START_DATE*

String

Start date of the Report in epoch format with milliseconds. You can use converter following this link

END_DATE*

String

End date of the Report in epoch format with milliseconds. You can use converter following this link

Example using cURL:

Example of request

Example of response to our request:

2nd API command - Generate Report using the created template

Generate Report using the created template

POST https://console.monogoto.io/report-history/{reportTemplateId}

Path Parameters

Name
Type
Description

REPORT_TEMPLATE_ID*

String

Report template ID, it can be seen in response of Report template creation (1st API command)

Headers

Name
Type
Description

YOUR_TOKEN*

String

Your authentication token

Please note that this API may take a while to be completed if you have a lot of Things (SIM) in your Monogoto account.

Example using cURL:

Example of request

Example of response to our request:

3rd API command - Get CSV Report location

Get CSV Report location

GET https://console.monogoto.io/report-history/byTemplate

Headers

Name
Type
Description

YOUR_TOKEN*

String

Your authentication token

Example using cURL:

Example of request

In the response to our request, you will need to find a Report matching our Report template ID or Report history ID. Then take csvPath and use it in the 4th API command.

Example of response to our request:

4th API command - Download CSV Report information

Download CSV Report information

GET https://console.monogoto.io /report-history/downloadReport/csv/{csvPath}

Path Parameters

Name
Type
Description

CSV_PATH*

String

CSV file path that was received in 3rd API to get Report location

Headers

Name
Type
Description

YOUR_TOKEN*

String

Your authentication token

Example using cURL:

Example of request

Example of response to our request showing CSV file information:

Last updated

Was this helpful?