SLSmartletter API

Logs

The last API requests of your workspace.

get/logs— List request logs

source is smtp for a call made by the SMTP relay on your behalf, api otherwise.

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",
      "created_at": "2026-10-17T09:00:00.000Z",
      "endpoint": "/emails",
      "method": "POST",
      "response_status": 200,
      "user_agent": "smartletter-smtp-relay",
      "source": "smtp"
    }
  ]
}

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",
  "created_at": "2026-10-17T09:00:00.000Z",
  "endpoint": "/emails",
  "method": "POST",
  "response_status": 200,
  "user_agent": "smartletter-smtp-relay",
  "source": "smtp",
  "request_body": {
    "from": "Acme <[email protected]>",
    "to": [
      "[email protected]"
    ],
    "subject": "Your receipt",
    "html": "<p>Thanks!</p>"
  },
  "response_body": {
    "id": "5b1f2c90-0000-4000-8000-000000000002"
  },
  "email": {
    "id": "5b1f2c90-0000-4000-8000-000000000002",
    "last_event": "delivered",
    "created_via": "smtp",
    "smtp": {
      "client_ip": "203.0.113.7",
      "message_id": "<[email protected]>"
    },
    "recipients": [
      {
        "email": "[email protected]",
        "type": "to",
        "status": "delivered",
        "reason": null,
        "bounce_type": null,
        "smtp_status": "2.0.0",
        "diagnostic_code": null,
        "delay_type": null,
        "delay_expires_at": null,
        "last_event_at": "2026-10-17T09:00:02.000Z"
      }
    ]
  }
}