Skip to content
Select themeSelect language

`POST /api/organization/runners/{id}/offer` — offer an org-owned runner for rent. Owner/admin only (`authorize_org_runner(ManageMembers)`). Resolves the caller's seller profile (a `400` with the onboarding need if absent), auto-creates/reuses a backing catalog item, and REUSES `create_runner_offer` with `runner_pool_id={id}` + `secret_trust_policy='deny'` (the ADR-0048 baseline). The offer flips ONLY the seller side; the rented-runner edge/secret-denied gates stay enforced at dispatch.

POST
/api/organization/runners/{id}/offer
curl --request POST \
--url https://example.com/api/organization/runners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/offer \
--header 'Content-Type: application/json' \
--data '{ "capabilities": "example", "display_region": "example", "hardware": "example", "heartbeat_interval_secs": 1, "job_class_allowlist": [ "example" ], "max_concurrency": 1, "rate_minor_per_minute": 1, "terms_accepted": true, "trust_tier": "example" }'
id
required
string format: uuid

Runner ID

Media typeapplication/json

Body for POST /api/organization/runners/{id}/offer. Everything else (the backing catalog item, the seller binding, the runner binding, the ADR-0048 secret-deny baseline) is server-derived — the runner IS the binding, so there is no item-id input.

object
capabilities

Advertised capabilities (a JSON object; defaulted to {} if absent/invalid).

display_region

Display region label for the offer (informational).

string | null
hardware

Advertised hardware (a JSON object; defaulted to {} if absent/invalid).

heartbeat_interval_secs

Heartbeat interval seconds (>= 10; defaults 60).

integer | null format: int32
job_class_allowlist

Job-class allowlist (the renter job classes this runner accepts).

Array<string> | null
max_concurrency

Max concurrent rented runs (>= 1; defaults to 1).

integer | null format: int32
rate_minor_per_minute

Metered per-minute price (minor currency units). Absent/non-positive = unpriced.

number | null format: double
terms_accepted

Accept the marketplace runner terms at offer time (required before activation).

boolean | null
trust_tier

Trust tier (community | verified | official; defaults community).

string | null
Examplegenerated
{
"capabilities": "example",
"display_region": "example",
"hardware": "example",
"heartbeat_interval_secs": 1,
"job_class_allowlist": [
"example"
],
"max_concurrency": 1,
"rate_minor_per_minute": 1,
"terms_accepted": true,
"trust_tier": "example"
}

The created/updated runner offer (bound to the runner, secret-denied)

Media typeapplication/json

Runner offer capacity metadata for a runner_offer item. Owned by the catalog slice; later slices add FK constraints for seller_profile_id and runner_pool_id.

object
activation_status
required
string
active
required
boolean
capabilities
required
created_at
required
string format: date-time
display_region
string | null
hardware
required
health_status
required
string
heartbeat_interval_secs
required
integer format: int32
id
required
string format: uuid
item_id
required
string format: uuid
job_class_allowlist
required
Array<string>
last_heartbeat_at
string | null format: date-time
max_concurrency
required
integer format: int32
network_policy
required
runner_pool_id
string | null format: uuid
secret_trust_policy
required
string
seller_profile_id
string | null format: uuid
terms_accepted_at
string | null format: date-time
trust_tier
required
string
updated_at
required
string format: date-time
Examplegenerated
{
"activation_status": "example",
"active": true,
"capabilities": "example",
"created_at": "2026-04-15T12:00:00Z",
"display_region": "example",
"hardware": "example",
"health_status": "example",
"heartbeat_interval_secs": 1,
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"item_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"job_class_allowlist": [
"example"
],
"last_heartbeat_at": "2026-04-15T12:00:00Z",
"max_concurrency": 1,
"network_policy": "example",
"runner_pool_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"secret_trust_policy": "example",
"seller_profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"terms_accepted_at": "2026-04-15T12:00:00Z",
"trust_tier": "example",
"updated_at": "2026-04-15T12:00:00Z"
}

Seller onboarding required / invalid offer

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Authentication required

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Permission denied / not your org’s runner

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Unknown runner

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}

Structured server error

Media typeapplication/json

The canonical JSON body of every error response — the single source of truth the frontend binds to. Every AppError serializes as this exact shape, and the generated OpenAPI component ApiErrorBody (with its ErrorCode enum) is what the frontend error schema is generated from, so there is no hand-written error schema on either end.

object
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden bad_request unprocessable precondition_failed conflict method_not_allowed rate_limited quota_exceeded database_error docker_error vault_error internal_error
details
One of:
null
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
Example
{
"code": "not_found"
}