Skip to content
agentsub
Esc
↑↓navigate↵open⌘Jpreview

Owner-triggered service execution

Owner-session proxy to POST /v1/services/execute (same body, same Idempotency-Key semantics, same metered hold/capture flow).

POST/v1/owner/run
Authorization
AuthorizationBearer token (JWT) · headerrequired

Clerk human owner session JWT; iss must equal the configured Clerk issuer and the identity must be a human (not agent) owner with a verified email.

or
AuthorizationBearer token (JWT) · headerrequired

Backend-verified Clerk AgentID social session, own-agent read/service actions only

or
AuthorizationOAuth2 access token · headerrequired
Scopes:agentsub:owner
Header parameters
Idempotency-Keystringrequired

Required only where this parameter is listed. Same payload/key recovers prior operation; secret replays omit plaintext.

matches ^[A-Za-z0-9._:-]{1,200}$
Request body
requiredapplication/json
serviceIdstringrequired
Allowed:agentmailgithub-public
actionstringrequired
Allowed:inboxes.listmessages.listmessages.getrepository.get
inputobjectrequired
agentIdstring

Required for owner sessions; agent sessions execute as themselves

max length 200
Responses
200

Completed metered execution with receipt

statestringrequired
resultobjectrequired
receiptCapturerequired
Show properties
idstring
agentIdstring
acceptorIdstring
offerIdstring
categorystring
amountUcMicrocredits

Integer microcredits as a decimal string. 1 credit = 1,000,000 microcredits = $0.01 USD.

matches ^[0-9]+$
statestring
Allowed:heldcapturedreleasedexpired
expiresAtinteger
createdAtinteger
capturedUcMicrocredits

Integer microcredits as a decimal string. 1 credit = 1,000,000 microcredits = $0.01 USD.

matches ^[0-9]+$
allocationsobject[]
Show properties
Array of object
lotIdstring
amountUcMicrocredits

Integer microcredits as a decimal string. 1 credit = 1,000,000 microcredits = $0.01 USD.

matches ^[0-9]+$
priceUcMicrocreditsrequired

Integer microcredits as a decimal string. 1 credit = 1,000,000 microcredits = $0.01 USD.

matches ^[0-9]+$
priceUsdstringrequired
paymentMethodstringrequired
400

invalid_input problem

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
401

unauthorized problem; live 401s advertise WWW-Authenticate: Bearer resource_metadata=...

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
402

approval_required problem with retained intent and Link payment instructions; no charge has occurred

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
statestring
intentIdstringrequired
intentServiceExecuteRequestrequired
Show properties
serviceIdstringrequired
Allowed:agentmailgithub-public
actionstringrequired
Allowed:inboxes.listmessages.listmessages.getrepository.get
inputobjectrequired
agentIdstring

Required for owner sessions; agent sessions execute as themselves

max length 200
paymentobject
paymentMethodsobject[]required
Show properties
Array of object
typestring
statusstring
instructionsstringrequired
503

Runtime or provider configuration unavailable (runtime_configuration_required, signing_configuration_required, runtime_unavailable, workspace_unavailable, provider_configuration_required)

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
Request
curl -X POST 'https://api.agentsub.dev/v1/owner/run' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Idempotency-Key: string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "serviceId": "agentmail",
  "action": "inboxes.list",
  "input": {},
  "agentId": "string"
}'
Response
{
  "state": "completed",
  "result": {},
  "receipt": {
    "id": "string",
    "agentId": "string",
    "acceptorId": "string",
    "offerId": "string",
    "category": "string",
    "amountUc": "string",
    "state": "held",
    "expiresAt": 0,
    "createdAt": 0,
    "capturedUc": "string",
    "allocations": [
      {
        "lotId": "string",
        "amountUc": "string"
      }
    ]
  },
  "priceUc": "string",
  "priceUsd": "0.01",
  "paymentMethod": "acs-credit"
}