Skip to main content

List Sessions

GET /v1/traces

Returns a list of sessions for your organization, ordered from most recent to oldest. Filter by delivery type, address, time window, or geographic area.

Requires an API key sent as a Bearer token in the Authorization header.

Request

Query Parameters

ParameterTypeRequiredDescription
sessionTypestringOptionalFilter by delivery type.
Allowed values: doorstep, threshold, curbside, vehicle_handoff, pickup
addressstringOptionalFilter sessions delivered to a specific address.
Example: 123 Main St, San Francisco, CA 94105
fromnumberOptionalStart of the time window in epoch seconds. Sessions with a timestamp ≥ from are included.
tonumberOptionalEnd of the time window in epoch seconds. Sessions with a timestamp ≤ to are included.
pageintegerOptionalPage number. Default: 1.
limitintegerOptionalSessions per page. Default: 50. Maximum: 200.
geometrystringOptionalA GeoJSON geometry object (as a JSON string) to spatially filter sessions by dropoff location.
Example: {"type":"Polygon","coordinates":[[[-74.02,40.70],[-73.97,40.70],[-73.97,40.75],[-74.02,40.75],[-74.02,40.70]]]}
regionstringOptionalFilter by US metro area. The slug is derived from the Census CBSA MSA name: lowercase, spaces replaced with underscores, first city and first state only.
Example: new_york_ny, los_angeles_ca, chicago_il

Example Request

curl "https://api.core.doorstep.ai/v1/traces?from=1781500000&to=1781600000&limit=100" \
-H "Authorization: Bearer $API_KEY"

Response

Paginated list of sessions.

Response Body

FieldTypeDescription
sessionsarraySessions for the current page.
sessions[].uuidstringThe session UUID. Can be used with Doorstep Atlas to visualize what happened during a delivery.
sessions[].sessionIDstring | nullUnique identifier for the session as passed into the Doorstep SDK.
sessions[].addressstring | nullDelivery address.
sessions[].sessionTypestring | nullDelivery type. One of: doorstep, threshold, curbside, vehicle_handoff.
sessions[].timestampnumberEpoch seconds when the session was recorded.
pageintegerThe current page number.
limitintegerThe number of results per page.

Example Response

{
"sessions": [
{
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"sessionID": "310454891",
"address": "123 Main St, San Francisco, CA 94105",
"sessionType": "doorstep",
"timestamp": 1781573400
},
{
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"sessionID": "310454892",
"address": "456 Market St, San Francisco, CA 94105",
"sessionType": "curbside",
"timestamp": 1781573100
}
],
"page": 1,
"limit": 50
}