Dev sessions
Create a dev session (what `hcc dev` attaches with)
POST /v1/dev/sessions dev:connect
While it is attached, the test environment’s flow events go to it instead of the test flow endpoint URL, and it gets a copy of every test Event. One per workspace: the last one attached wins.
Body
-
hoststringThe machine
hcc devruns on, shown on the dashboard’s banner
Responses
- 201
Created; open
connectUrlwithin 60 sFields
-
dataDevSession requiredFields
-
idstring required -
connectUrlstring requiredThe WebSocket to open, with
tokenin thehcc-dev-tokenheader -
tokenstring requiredOne-time; opens the socket within 60 s
-
expiresAtstring requiredWhen
tokenstops working -
webhookSecretstring requiredSigns the copies of test Events the session forwards
-
workspaceobject required -
flowEndpointobject required
-
-
- 400
Invalid request
- 401
Missing or invalid API key
- 403
A live key (
test_mode_only): dev sessions run against the test environment only - 404
Not found
- 429
rate_limited, or another limit named byerror.code
Detach a dev session
DELETE /v1/dev/sessions/{id} dev:connect
Idempotent. Test flow events go to the test flow endpoint URL again.
Path
idstring required
Responses
- 204
Detached
- 400
Invalid request
- 401
Missing or invalid API key
- 403
A live key (
test_mode_only): dev sessions run against the test environment only - 404
Not found
- 429
rate_limited, or another limit named byerror.code