Skip to main content
POST
Claim a work item

Authorizations

X-Outerlayer-App-Id
string
header
required

Factory id the request is scoped to.

Authorization
string
header
required

API key (sk_outerlayer_*)

Headers

Signature
string

HTTP Message Signature (RFC 9421) made with the runner key's host key: runner=:<base64>:.

Signature-Input
string

The signature's covered components and parameters: runner=("@method" "@path" "@query" "content-digest");created=<unix seconds>;nonce="<random>";keyid="<host key fingerprint>";alg="ed25519".

Content-Digest
string

RFC 9530 digest of the request body, always sent, including for a request with none: sha-256=:<base64>:.

Path Parameters

workItemId
string
required

Body

application/json
host
string
required
Required string length: 1 - 255
kind
enum<string>
required
Available options:
implement,
amend,
revise,
review,
criteria,
verify,
plan,
preview
agents
string[]

The ids of the agents the runner builds with. A claim for an item whose agent is not in the list is refused with agent_not_offered, and no lease is recorded. Leave it out for claude-code alone.

Maximum array length: 20
Required string length: 1 - 64
cliVersion
string
Required string length: 1 - 100
hostKey
string
Pattern: ^[A-Za-z0-9_-]{43}$
isolation
enum<string>

What the runner's builds run in. A revise or criteria claim from a runner that sends shared-user, or no isolation, is refused with run_isolation_not_allowed.

Available options:
container,
vm,
shared-user
runnerProtocol
integer
seconds
integer
Required range: 0 < x <= 2147483647

Response

A lease is recorded for this host (new, or the caller's own extended).

data
object
required