Probe the live event stream
HEAD
/events
const url = 'https://example.com/api/v1/events';const options = {method: 'HEAD'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request HEAD \ --url https://example.com/api/v1/eventsRuns the same authentication, scope and capacity checks as GET without opening a stream.
Clients use it to classify an EventSource error (auth failure vs capacity vs network).
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Api-Key
string
Praxrr API token (prx_…) with the read scope.
Query Parameters
Section titled “Query Parameters”apikey
string
Praxrr API token with the read scope, for EventSource clients that cannot set headers.
Warning: the token leaks into proxy and access logs and browser history; prefer
X-Api-Key.
Responses
Section titled “Responses”A stream would be accepted.
Unauthenticated.
The API token lacks the read scope.
Too many concurrent streams for this principal.
Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.
The server-wide stream limit is reached.
Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.