Open a watch stream ticket
Open a live event stream for a local agent: returns a websocket url (single use, valid 60 s) that sends one JSON line per new event of the given connections (webhook enabled with integrations.connections.inbound_webhook) and, with inbox=true, of your own inbox. A line is {id, source, kind, connection, refs}: ids only, read the details with the matching operation. Follow it with a monitor tool. When the stream ends, call watch.open again with since = the last id you received. {kind: overflow, id} means events were skipped: check the sources fully and go on from that id. kind source_unhealthy (refs {connection, state}) means the connection's webhook stopped delivering, source_recovered that it delivers again: check that source fully. kinds keeps only events of those kinds (e.g. message_created); overflow, source_unhealthy and source_recovered always arrive. Without since the stream starts at the current cursor: open it first, then check the sources fully once, so nothing falls between.
Authorization
bearerApiKey Create a scoped API key in the Adlass settings.
In: header
Path Parameters
Resource identifier: space_id.
uuidHeader Parameters
Optional correlation identifier.
length <= 128Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/spaces/123e4567-e89b-42d3-a456-426614174000/watch-tickets" \ -H "Content-Type: application/json" \ -d '{}'{ "url": "https://api.adlass.io/v1/workflows/hooks/example", "expires_in": 0, "cursor": 0}