/v1 endpoint uses GET, and every one needs an Agent key. See
Authentication.
Endpoints
Sixteen endpoints exist. Nothing else under/v1 returns data.
Each endpoint has its own page in this section, with the full parameter list and the
response schema.
None in the last column means the endpoint takes no required query parameter.
Date parameters
Eleven endpoints take a date range./realtime, /event-names, /users/{userId},
/workspace, and /usage take none.
A missing or unparseable date returns
400 with
{"error":"start_date and end_date required (ISO 8601)"}.
/commerce-metrics is stricter. Both instants must land on an exact UTC hour. end_date
is exclusive, cannot be in the future, and cannot sit more than 366 days after
start_date.
/ads accepts a second, provider-local form: date_from and date_through as
YYYY-MM-DD. A request that sends both forms returns 400.
Response format
Every response isapplication/json and carries Access-Control-Allow-Origin: *. Every
error carries a single error string. /ads, /commerce-metrics, and the cost-import
routes add a machine-readable code or reason. See
Errors and limits.
Other routes on api.datalyr.com
These four routes sit outside/v1, and each takes a different credential.
Two
POST routes exist at /v1/shopify/economics/cost-imports/validate and
/v1/shopify/economics/cost-imports/apply. We run both of them, so an Agent key on its own
returns 403.
Verify your access
- Copy your Agent key from Settings → API.
- Run the request below in a terminal.
When it doesn’t work
Next
- Authentication: create a key and send it correctly.
- Errors and limits: every status code and the rate limit.
- Connect Claude or Codex: read the same data without handling a key.