Skip to main content
POST
/
conversations
/
{conversation_id}
/
runs
/
{run_id}
/
events
Append non-terminal events to a durable agent run
curl --request POST \
  --url https://api.veryfront.com/conversations/{conversation_id}/runs/{run_id}/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    {
      "type": "RUN_STARTED"
    }
  ],
  "expected_previous_event_id": 1,
  "expected_previous_external_event_sequence": 1
}
'
{
  "run": {
    "run_id": "<string>",
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "requested_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "agent_id": "<string>",
    "status": "completed",
    "runtime_target_kind": "production",
    "latest_event_id": 1,
    "created_at": "<string>",
    "source_target_kind": "project",
    "source_target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "source_target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "runtime_target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "runtime_target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "parent_conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "parent_run_id": "<string>",
    "spawned_from_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "spawned_from_tool_call_id": "<string>",
    "input_anchor_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "handoff_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "resolved_deployment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "latest_external_event_sequence": 1,
    "waiting_tool_call_id": "<string>",
    "waiting_tool_name": "<string>",
    "terminal_error_code": "<string>",
    "terminal_error_message": "<string>",
    "started_at": "<string>",
    "finished_at": "<string>"
  },
  "latest_event_id": 1,
  "appended_count": 1,
  "latest_external_event_sequence": 1
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

conversation_id
string<uuid>
required
run_id
string
required
Minimum string length: 1

Body

application/json
events
object[]
required
Required array length: 1 - 100 elements
expected_previous_event_id
integer | null
Required range: x >= 0
expected_previous_external_event_sequence
integer | null
Required range: x >= 0

Response

200 - application/json

Updated run cursor after appending events

run
object
required
latest_event_id
integer
required
Required range: x >= 0
appended_count
integer
required
Required range: x >= 0
latest_external_event_sequence
integer
Required range: x >= 0