Skip to main content
POST
/
api
/
v1
/
consumption
/
emnify
Get Emnify consumption data
curl --request POST \
  --url https://api.raul.ugps.io/api/v1/consumption/emnify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phone_numbers": [
    "423663922670587",
    "423663922670588"
  ],
  "start_date": "2025-01-01T00:00:00Z",
  "end_date": "2025-01-31T23:59:59Z"
}
'
{
  "data": [
    {
      "phone_number": "<string>",
      "consumption_mb": 123,
      "period": {
        "start": "<string>",
        "end": "<string>"
      },
      "endpoint_id": {},
      "sim_id": {},
      "not_found": true
    }
  ],
  "total_count": 123,
  "successful_count": 123,
  "failed_count": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
phone_numbers
string[]
required

List of phone numbers (MSISDN) to query

Example:
["423663922670587", "423663922670588"]
start_date
string
required

Start date in ISO 8601 format

Example:

"2025-01-01T00:00:00Z"

end_date
string
required

End date in ISO 8601 format

Example:

"2025-01-31T23:59:59Z"

Response

data
object[]
required
total_count
number
required
successful_count
number
required
failed_count
number
required