Dispatch issue
POST
/workspaces/{organizationId}/issues/{id}/dispatchAuthorization
AuthorizationBearer token · headerrequiredWorkspace API key (Authorization: Bearer <key>). Issue keys under Settings → Developer or POST /workspaces/{organizationId}/tokens.
Path parameters
organizationIdstringrequiredidstringrequiredRequest body
application/jsonagentIdstringproviderstringmodelstringrepostring | nullbranchstring | nullinstructionsstringstepKeystringmin length 1
preflightbooleansecondaryReposobject[]max items 5
Show propertiesHide properties
Array of
objectrepostringrequiredmatches ^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$
accessstringdefault: "read"
Allowed:
readwritemodestringAllowed:
buildplanimplement_planeffortstringAllowed:
lowmediumhighmaxmaxDurationintegerWall-clock run budget in minutes; past it the lane is canceled and escalated on the issue
min 1 · max 1440
resultSchemastring | objectJSON Schema (draft-07) the lane's final output must validate against, or "lane" for the built-in {verdict, summary, filesChanged} shape. The validated value lands on session.structuredResult.
Show propertiesHide properties
Any of:
string
stringobject
objectResponses
201
Session created
idstringrequiredorganizationIdstringrequiredissueIdstringrequiredagentIdstringrequiredproviderstringrequiredactorIdstringrequiredactorTypestringrequiredAllowed:
useragentstatusstringrequiredAllowed:
createdrunningstalewaitingcompletedfailedcanceledresultstring | nullrequiredurlstring | nullrequiredproviderSessionIdstring | nullrequiredprUrlstring | nullrequiredprStatestring | nullrequiredbranchstring | nullrequiredpurposestring | nullsecondaryReposstring | nullmaxDurationMinutesinteger | nulleffortstring | nullAllowed:
lowmediumhighmaxnulllabelstring | nullresultSchemaobject | nullstructuredResultany | nullresultSchemaErrorsstring[] | nullcreatedAtstringrequiredupdatedAtstringrequiredlastProgressAtstring | nulllastStateHashstring | nullawaitingActivityIdstring | nullawaitingEscalatedAtstring | nullpausednumberstepKeystring | nullplanobject[] | nullShow propertiesHide properties
Array of
objectcontentstringrequiredmin length 1 · max length 500
statusstringrequiredAllowed:
pendinginProgresscompletedcanceledguidanceobject[] | nullShow propertiesHide properties
Array of
objectidstringrequirednamestringrequiredscopestringrequiredAllowed:
workspaceteamstatusstepscopeKeystring | nullrequiredversionintegerrequiredderivedStatusstring | nullAllowed:
stalledneeds_inputnullawaitingFirstAckbooleanfirstActivityAtstring | nullqueuedAfterstring | nullreceiptobject | nullShow propertiesHide properties
idstringrequiredorganizationIdstringrequiredsessionIdstringrequiredissueIdstringrequiredagentIdstringrequiredstepKeystring | nullrequireddealIdstring | nullrequiredstatusstringrequiredmodelstring | nullrequiredeffortstring | nullrequiredinputTokensinteger | nullrequiredoutputTokensinteger | nullrequiredtotalTokensinteger | nullrequiredtoolCallsinteger | nullrequiredcostMicrosinteger | nullrequiredexternalSpendMicrosinteger | nullrequiredtotalCostMicrosinteger | nullrequiredcostSourcestring | nullrequiredAllowed:
reportedrate_mapnullcapExceededintegerrequiredstopReasonstring | nullrequiredstartedAtstring | nullrequiredendedAtstring | nullrequireddurationMsinteger | nullrequiredcreatedAtstringrequiredupdatedAtstringrequiredactivitiesobject[]Show propertiesHide properties
Array of
objectidstringrequiredsessionIdstringrequiredactorIdstring | nullrequiredtypestringrequiredAllowed:
thoughtresponseerrorelicitationpromptactionstatusartifactmessagestringrequiredpayloadany | nullparentIdstring | nullrequiredstartedAtstring | nullrequiredendedAtstring | nullrequireddurationMsnumber | nullrequiredcreatedAtstringrequiredpreflightobjectrequiredShow propertiesHide properties
readybooleanrequiredmissingstring[]required