Get edge events for a project
const url = 'https://dashboard.quantcdn.io/api/v2/organizations/example/projects/example/edge-events?type=console%2Cfunction&level=log&limit=100';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://dashboard.quantcdn.io/api/v2/organizations/example/projects/example/edge-events?type=console%2Cfunction&level=log&limit=100'Output of the project’s edge functions and content filters (console.* as type console, quantLog() as type function), WAF hits and static failover. Entries are returned oldest first, up to about 10 minutes behind, kept 31 days; pass nextToken from the previous response, with the same filters, to fetch the next page. A slow query can return an empty page with a nextToken. An edge function invocation keeps at most 100 console lines of up to 8 KB each.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organization machine name
The project machine name
Query Parameters
Section titled “Query Parameters”Comma-separated event types: console, function, waf-hit, static-failover
Example
console,functionOnly events from this edge function (UUID)
Only console events at this level
Case-insensitive substring of the message
Maximum number of events per page (default 100)
Start of the time range. ISO 8601 or Unix epoch milliseconds.
End of the time range. ISO 8601 or Unix epoch milliseconds.
Opaque pagination token from the previous response
Responses
Section titled “Responses”Edge events
object
object
Example
{ "events": [ { "type": "console" } ]}Invalid filter, time range or token
object
Example
{ "error": true}Unauthenticated
Token lacks the projects:read scope or the user lacks browse_projects
Edge events are not available for this project
object
Example
{ "error": true}Validation error
