Environment
Onomondo app: Network Logs
Onomondo API: GET Retrieve Network Logs of a SIM
Question
How to retrieve Network Logs via the API?
Which parameters to use if I want to pull historic Network Logs?
Answer
Query the /network-logs endpoint to fetch the data.
Create a new API key or use an existing one.
Pick a timestamp you are interested in.
Send a request to
api.onomondo.com/network-logs/{sim_id}, including:timestamp(mandatory),order(optional),limit(optional),offset(optional).
Example request:
curl -L \
--url 'https://api.onomondo.com/network-logs/{sim_id}?timestamp=...' \
--header 'Authorization: YOUR_API_KEY' \
--header 'Accept: */*'
Note:
timestampis a mandatory parameter.timestampmust follow this format:2022-08-19T00:00:00.000Z.It is recommended to include the
orderparameter as well.The
orderparameter is used to specify whether the API should return logs generated before or since the time defined in the timestamp. For example:order=DESC- returns up to 1000 logs generated before the timestamporder=ASC- returns up to 1000 logs generated since the timestamp
If
orderis unspecified, the API will return logs in descending (DESC) order.
See our API documentation for additional information: