Subscribe to Files events
GET
/api/v1/files/events
const url = 'https://example.com/api/v1/files/events';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://example.com/api/v1/files/events \ --header 'Authorization: Bearer <token>'Requires a signed-in User with the data scope. The server sends change notifications as an event stream; it returns 403 when access is denied or 429 when the stream limit is reached. Route: /api/v1/files/events. Inputs: Last-Event-ID. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Last-Event-ID
string
Responses
Section titled “Responses”Media typetext/event-stream
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}