Palbase Analytics · API
/analytics/requestsList request lines
A page of the project's requests as the edge saw them — every module's, newest first: what Studio's Logs show. A line keeps its path without its query, its status and duration, and the client's address and user agent; lines are kept a week.
Called by your server, with the project's secret key.
Query
window_secondsinteger · optionalHow far back to look, in seconds (an hour unless said; a week at most: what is kept).modulestring · optionalOnly this module's requests.levelstring · optionalOnly these levels, comma-separated: info (answered below 400), warn (4xx), error (5xx, or no answer).qstring · optionalOnly lines whose path or user agent holds this, or whose request id or client address is this.limitinteger · optionalRows per page (100 unless said).cursorstring · optionalThe next_cursor of the page before: reads the page after it.curl -X GET "https://<your-ref>.palbase.studio/analytics/requests" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200A page of request lines
400The request is malformed, or what it sends breaks a limit (the error names which: the SDKs' codes)
401No key, or not a key of this project, or a token that is not valid (the edge's answer)
403Not the project's secret key
429The project is sending analytics faster than its per-second limit (rate_limited), or its quota for the period is used up (quota_exceeded); Retry-After says when to try again
503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation ListRequestLines of analytics's contract.