SLSmartletter API

Logs

The last API requests of your workspace.

get/logs— List request logs

Keys: full_access

Query parameters

limitinteger1–100, default 20.
afteruuidId of the last item of the previous page (older items).
beforeuuidId 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": {}
}