Skip to main content

Claim pending jobs

POST 

/api/v1/certops/agent/jobs/claim

Outbound-only claim poll authenticated with the per-agent credential (bearer). Request body is the agent-protocol envelope with messageType claim (packages/contracts/certops/agent-protocol.schema.json, additionalProperties false); the body only expresses poll preferences (maxJobs, supportedActions), never a specific job selection. Server selects pending workspace jobs with FOR UPDATE SKIP LOCKED, leases them, and returns signed dispatch payloads: job-payload fields plus claimId, leaseExpiresAt, attemptCount, and the Ed25519 dispatch fields nonce, issuedAt, expiresAt, signingKeyId, signature. Dispatch is blocked while the workspace kill switch is on (409 CERTOPS_WORKSPACE_PAUSED); results reporting never is. A retired agent receives 410. Hidden with 404 while certops.enabled is disabled.

Request

Responses

Zero or more signed claimed jobs