Base URL
/v3/organizations/{orgId}. Get orgId once from GET /v3/self, which returns org_id.
Authentication
Send an API key as a bearer token:Start with these calls
Defaults
- A Session created without
targetruns in Reason’s cloud. Name atargetto run on your computer. - Session lists return newest first and exclude archived Sessions unless you pass
status=archivedorstatus=all. - Work starts asynchronously. Creating a Session returns at once with its ID, so poll for its state.
- A Session’s
outcomeis the task result.statusonly says whether execution finished: a Session can end withstatus: exitandoutcome: failure.
Polling, not streaming
Events are read by pollingGET .../events with after_seq and wait_ms. Each call returns the events after your cursor, and with wait_ms it waits for the next one. Read Events reference for the cursor, duplicates and ordering.
Errors
Errors return a JSON body with anerror object that has a type and a message. The status code tells you what to do:
Read the body before you retry. Do not widen a key’s scopes to get past an error that names a missing one.
Versions
This reference is version 3 of the API (info.version is 3.0.0). Deprecated operations say so in their description, and point to their replacement.
