Skip to main content
POST
/
v2
/
workflow
/
steps
/
recordAgentResolution
Record Agent Resolution
curl --request POST \
  --url https://api.velt.dev/v2/workflow/steps/recordAgentResolution \
  --header 'Content-Type: application/json' \
  --header 'x-velt-api-key: <x-velt-api-key>' \
  --header 'x-velt-auth-token: <x-velt-auth-token>' \
  --data '
{
  "data": {
    "executionId": "<string>",
    "stepId": "<string>",
    "resolutionId": "<string>",
    "status": "<string>",
    "output": {},
    "errorMessage": "<string>"
  }
}
'
{
  "result": {
    "recorded": true,
    "aggregatorStatus": "resolved",
    "resumeScheduled": true
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.velt.dev/llms.txt

Use this file to discover all available pages before exploring further.

Use this API to record an external resolution for a blocking agent step. The agent step parks in waiting after dispatch; resolutions arriving through this endpoint advance the aggregator according to its resolutionPolicy (allResolved or minResolved).

Endpoint

POST https://api.velt.dev/v2/workflow/steps/recordAgentResolution

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body

Params

data
object
required

Example Requests

Successful resolution

{
  "data": {
    "executionId": "exec_1777374504255_xzy43k9q",
    "stepId": "step_blocking-agent_...",
    "resolutionId": "res_42",
    "status": "success",
    "output": { "summary": "Generated draft v3", "wordCount": 287 }
  }
}

Response

Success Response

{
  "result": {
    "recorded": true,
    "aggregatorStatus": "resolved",
    "resumeScheduled": true
  }
}

Failure Response

{
  "error": {
    "message": "ERROR_MESSAGE",
    "status": "FAILED_PRECONDITION"
  }
}
Errors: FAILED_PRECONDITION (step not waiting or not blocking) / INVALID_ARGUMENT / NOT_FOUND.
{
  "result": {
    "recorded": true,
    "aggregatorStatus": "resolved",
    "resumeScheduled": true
  }
}