List request logs
GET /logs
Every request made with this team's credentials, newest first.
Query parameters
statusintegerThe response status recorded on the request, such as
422.sourcestringWhere the request came from:
api,dashboard, orsdk:<name>for one of our clients.searchstringText in the endpoint (
/emails/{email_id}) or in the path that was requested, so an email ID finds the requests that named it. Case-insensitive, 1–200 characters.limitintegerHow many logs to return, 1–100. Defaults to 20.
6 more fields (exclude_source, user_agent, start_date, end_date, after, before)
exclude_sourcestringLeave out one source, spelled as
sourceis.dashboardshows every request your own code made.user_agentstringAn exact User-Agent, as it was sent. Not a substring match.
start_datestringISO 8601 instant, inclusive. A calendar date alone is
422 invalid_parameter— send2026-09-09T00:00:00.000Z.end_datestringISO 8601 instant, inclusive. Must be at or after
start_date, or the request is422 invalid_parameter.afterstringReturn the page that follows this log ID. Mutually exclusive with
before.beforestringReturn the page that precedes this log ID. Mutually exclusive with
after.
Request
curl -X GET "https://api.rasket.com/logs?status=422&limit=20" \
-H "Authorization: Bearer $RASKET_API_KEY" \
-H "User-Agent: acme-billing/1.0"const response = await fetch("https://api.rasket.com/logs?status=422&limit=20", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.RASKET_API_KEY}`,
"User-Agent": "acme-billing/1.0",
},
});
const data = await response.json();import os
import requests
response = requests.get(
"https://api.rasket.com/logs?status=422&limit=20",
headers={
"Authorization": f"Bearer {os.environ['RASKET_API_KEY']}",
"User-Agent": "acme-billing/1.0",
},
)
print(response.json())Response 200
{
"object": "list",
"has_more": false,
"data": [
{
"id": "0198f4c1-0000-7000-8000-000000000000",
"created_at": "2026-09-09T10:16:44.902Z",
"endpoint": "/emails",
"method": "POST",
"response_status": 422,
"user_agent": "acme-billing/1.0",
"source": "api",
"request_id": "req_0198f4c1000070008000000000000000",
"latency_ms": 41,
"api_key_id": "a4d2f0c8-5b31-4e7a-9c62-8f0b1d4e6a75"
}
]
}- Needs a full-access key. A sending-only key is refused with
401 restricted_api_key. - Writes made from the dashboard go through this same API and are logged with
source: dashboard, so the list is every write to your data rather than only the ones your code made. - Reading this endpoint records a request of its own, so the newest entry on a fresh call is usually that call.
- Logs are kept for your plan's retention window — 30 days on the free plan — and then deleted. A request older than that is gone, not empty.