Deregister a runner
⚠️
Preview — this feature is being built; the design below is the spec.
DELETE https://app.syntic.ai/v1/environments/{environment_id}/runners/{runner_id}Revoke the runner’s token and remove it. With drain=true (the default) the runner first stops claiming new work and is removed when its active sessions end; with drain=false its sessions fail over to another runner, or end with runner_lost if none is online.
For how this fits into a full workflow, see Self-hosted runners.
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <key>: a private inference key (sk_live_...). See Authentication. |
syntic-beta | Yes, while in preview | agents-2026-11-01. Without it the call fails with 400 beta_required. See Versioning. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
environment_id | string | The environment id, starting with env_. |
runner_id | string | The runner id, starting with rnr_. |
Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
drain | boolean | true | Wait for active sessions to finish before removing. |
Response
200 OK, Content-Type: application/json
{
"id": "rnr_01JCD0B2D4F6H8K0M2P4",
"type": "runner",
"status": "draining",
"deleted": false
}| Field | Type | Description |
|---|---|---|
deleted | boolean | true once removed; false while draining. |
Examples
curl -sS -X DELETE "https://app.syntic.ai/v1/environments/env_01JC5B2D4F6H8K0M2P4R/runners/rnr_01JCD0B2D4F6H8K0M2P4?drain=false" \
-H "Authorization: Bearer $SYNTIC_API_KEY" \
-H "syntic-beta: agents-2026-11-01"Errors
Errors use the error envelope and carry a request_id. Codes specific to this operation:
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request_error | beta_required | The syntic-beta header is missing. |
| 404 | not_found_error | runner_not_found | No runner with this id. |
| 401 | authentication_error | invalid_api_key | The key is missing, unknown, revoked or expired. |
| 429 | rate_limit_error | rate_limited | Too many requests; wait for Retry-After. See Rate-limit headers. |
Was this page helpful?