Retrieve a log
In order to retrieve a log, you will need to pass one or more log IDs using a POST request.
URL
https://client.logoom.io/api/data/retrieve
NPM
https://www.npmjs.com/package/logoom
Parameters
id REQUIRED
The 'id' parameter is required. Please select at least one ID to retrieve a log. You can add more IDs if you wish to retrieve multiple logs.
- cURL
- Node.js
- PHP
- C#
POST/Create![Landscape picture](/_next/image?url=%2Fassets%2Fshare.png&w=32&q=75)
![Landscape picture](/_next/image?url=%2Fassets%2Fshare.png&w=32&q=75)
curl -X POST \
https://client.logoom.io/api/data/retrieve \
-H 'Content-Type: application/json' \
-H 'apikey: your-api-key' \
-H 'apisecret: your-api-secret' \
-d '{
"id": [log id]
}'
https://client.logoom.io/api/data/retrieve \
-H 'Content-Type: application/json' \
-H 'apikey: your-api-key' \
-H 'apisecret: your-api-secret' \
-d '{
"id": [log id]
}'
Response
{ "success": true, "message": "LOGOOM.SUCCESS", "statusCode": 201, "data": [ { "id": 1, "message": "Lorem ipsum dolor sit amet", "metadata": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ", "group": "Test", "date_created": "2023-03-23T19:47:13.415Z", "source": { "id": 1, "key": "Source key", "type": "Source type", "name": "Source name", "description": "Description" }, "category": { "id": 1, "name": "Category name" } } ] }