Skip to content

Get edge events for a project

GET
/api/v2/organizations/{organization}/projects/{project}/edge-events
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.

organization
required
string

The organization machine name

project
required
string

The project machine name

type
string

Comma-separated event types: console, function, waf-hit, static-failover

Example
console,function
function
string format: uuid

Only events from this edge function (UUID)

level
string
Allowed values: log info warn error debug

Only console events at this level

search
string
<= 200 characters

Case-insensitive substring of the message

limit
integer
default: 100 >= 1 <= 10000

Maximum number of events per page (default 100)

startTime
string

Start of the time range. ISO 8601 or Unix epoch milliseconds.

endTime
string

End of the time range. ISO 8601 or Unix epoch milliseconds.

nextToken
string

Opaque pagination token from the previous response

Edge events

Media typeapplication/json
object
events
Array<object>
object
timestamp
string format: date-time
type
string
Allowed values: console function waf-hit static-failover other
level
string
nullable
function_uuid
string
nullable
message
string
truncated
boolean
host
string
nullable
path
string
nullable
client_ip
string
nullable
rule_id
string
nullable
waf_mode
string
nullable
count
integer
nextToken
string
nullable
Example
{
"events": [
{
"type": "console"
}
]
}

Invalid filter, time range or token

Media typeapplication/json
object
error
boolean
message
string
Example
{
"error": true
}

Unauthenticated

Token lacks the projects:read scope or the user lacks browse_projects

Edge events are not available for this project

Media typeapplication/json
object
error
boolean
message
string
Example
{
"error": true
}

Validation error