Skip to documentation

API · Logs

List Logs

List your team’s API, SMTP, and dashboard logs (requires full access). Logs are kept for 30 days; unsupported query filters are ignored.

GET/logsFull access

Request parameters

ParameterTypeDescription
limit
query · optional
integer
1–100
Default: 20
Number of results to return. See Pagination.
after
query · optional
stringResource ID for the next page. Cannot be combined with before. See Pagination.
before
query · optional
stringResource ID for the previous page. Cannot be combined with after. See Pagination.

Request example

Set OPENSEND_BASE_URL=https://api.example.com and OPENSEND_API_KEY=os_replace_me on your server.

bash
curl -X GET "$OPENSEND_BASE_URL/logs" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"

Response

200 · application/json. Example IDs stand for IDs returned by your installation.

json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "YOUR_ID",
      "created_at": "example",
      "endpoint": "example",
      "method": "example",
      "response_status": 0,
      "user_agent": "example"
    }
  ]
}

Behavior and errors

Logs remain for 30 days. Requests that fail before the team is known cannot be attributed or logged.

Use a full-access credential. List responses are newest first; use has_more and cursor IDs to continue. Resource IDs belong to your team; an unknown or foreign resource returns 404. See authentication, errors, rate limits, and compatibility for the shared contract.