Logs
The last API requests of your workspace.
- GET /logs — List request logs
- GET /logs/{id} — Retrieve a request log
get/logs— List request logs
Keys: full_access
Query parameters
| limit | integer | 1–100, default 20. |
| after | uuid | Id of the last item of the previous page (older items). |
| before | uuid | Id of the first item of the previous page (newer items). |
curl -X GET https://api.smartletter.ai/logs \
-H "Authorization: Bearer $SMARTLETTER_API_KEY"Response 200
{
"object": "list",
"has_more": false,
"data": [
{
"id": "5b1f2c90-0000-4000-8000-000000000002",
"endpoint": "/emails",
"method": "POST",
"response_status": 200
}
]
}get/logs/{id}— Retrieve a request log
Keys: full_access
curl -X GET https://api.smartletter.ai/logs/<id> \
-H "Authorization: Bearer $SMARTLETTER_API_KEY"Response 200
{
"object": "log",
"id": "5b1f2c90-0000-4000-8000-000000000002",
"endpoint": "/emails",
"request_body": {},
"response_body": {}
}