v1
latestOpenAPI 3.0.02026-07-14169146300.3 KBAnalytics
Gets project's logs
Executes a SQL query on the project's logs.
Either the iso_timestamp_start and iso_timestamp_end parameters must be provided. If both are not provided, only the last 1 minute of logs will be queried. The timestamp range must be no more than 24 hours and is rounded to the nearest minute. If the range is more than 24 hours, a validation error will be thrown.
Note: Unless the sql parameter is provided, only edge_logs will be queried. See the log query docs for all available sources.
get/v1/projects/{ref}/analytics/endpoints/logs.all
Path parameters
refstring required
Example:abcdefghijklmnopqrst
Project ref
Query parameters
sqlstring
Custom SQL query to execute on the logs. See querying logs for more details.
iso_timestamp_startstring date-time
Example:2025-03-01T00:00:00Z
iso_timestamp_endstring date-time
Example:2025-03-01T23:59:59Z