Drex
Cancel a browser run
Cancels a queued or running run and stops its browser. A queued run is not charged; a running one is charged its browser seconds so far. Cancelling a cancelled run answers the same again.
Authorization
bearerAuth AuthorizationBearer <token>
Your API key, sent as Authorization: Bearer nace_sk_...
- Where: the dashboard's API Keys page. It is shown once, when you create it.
- Format:
nace_sk_followed by 43 URL-safe characters (A-Z,a-z,0-9,_and-). - Limit: an account can hold at most 3 active keys.
- Wrong or missing key: returns
401 authentication_error.
In: header
Path Parameters
idstringrequired
The run's id (brun_...).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/browser/runs/string/cancel"{ "id": "string", "object": "browser_run", "status": "queued", "created_at": "2019-08-24T14:15:22Z"}