Register a runner
⚠️
Preview — this feature is being built; the design below is the spec.
POST https://app.syntic.ai/v1/environments/{environment_id}/runnersRegister a machine you operate as a runner for a self-hosted environment. The response holds the runner token (srt_...) that the runner process uses to claim work; it is shown only once. Only environments created with hosting: self_hosted accept runners.
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. |
Content-Type | Yes | application/json |
Idempotency-Key | No | Up to 255 characters. Retrying with the same key within 24 hours returns the first result instead of acting twice. See Idempotency. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
environment_id | string | The environment id, starting with env_. |
Body parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
name | string | Yes | 1 to 64 characters, unique within the environment. |
labels | array of strings | No | Up to 10 labels, each up to 32 characters. |
max_concurrent_sessions | integer | No | Default 1, up to 64. |
Response
201 Created, Content-Type: application/json
{
"id": "rnr_01JCD0B2D4F6H8K0M2P4",
"type": "runner",
"environment_id": "env_01JC5B2D4F6H8K0M2P4R",
"name": "dc1-build-01",
"labels": [
"gpu",
"eu"
],
"max_concurrent_sessions": 4,
"status": "offline",
"version": null,
"active_sessions": 0,
"last_seen_at": null,
"created_at": "2026-11-01T08:00:00Z",
"token": "srt_live_4Hc9…redacted"
}| Field | Type | Description |
|---|---|---|
id | string | Starts with rnr_. |
labels | array | Free-form tags. Sessions can require labels through runner_selector on the environment. |
max_concurrent_sessions | integer | How many sessions the runner accepts at once, 1 to 64. |
status | string | online (heartbeat within 60 s), offline or draining. |
version | string | The runner software version it reported. |
last_seen_at | string or null | Time of the last claim or heartbeat. |
token | string | The runner’s credential. Returned only by this call. Store it on the runner host only. |
Examples
curl -sS "https://app.syntic.ai/v1/environments/env_01JC5B2D4F6H8K0M2P4R/runners" \
-H "Authorization: Bearer $SYNTIC_API_KEY" \
-H "syntic-beta: agents-2026-11-01" \
-H "Idempotency-Key: 8d6f0c1e-4b2a-4a57-9f0e-2f1d3c4b5a69" \
-H "Content-Type: application/json" \
-d '{
"name": "dc1-build-01",
"labels": [
"gpu",
"eu"
],
"max_concurrent_sessions": 4
}'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. |
| 400 | invalid_request_error | environment_not_self_hosted | The environment is hosted by Syntic. |
| 409 | conflict_error | runner_name_taken | Another runner in the environment has this name. |
| 404 | not_found_error | environment_not_found | No environment with this id in the key’s workspace. |
| 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?