Skip to main content
POST
/
runs
Create a canonical durable run
curl --request POST \
  --url https://api.veryfront.com/runs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "kind": "agent",
  "owner": {
    "kind": "conversation",
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "request": {
    "mode": "default_chat",
    "agent_id": "<string>",
    "initial_status": "pending",
    "source_target_kind": "project",
    "source_target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "source_target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "runtime_target_kind": "production",
    "runtime_target_environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "runtime_target_branch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "public_id": "<string>",
  "parent_run_id": "<string>",
  "trigger": {
    "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "tool_call_id": "<string>"
  }
}
'
{
  "accepted": true,
  "run": {
    "run_id": "<string>",
    "kind": "agent",
    "status": "pending",
    "owner": {
      "kind": "conversation",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    },
    "parent_run_id": "<string>",
    "root_run_id": "<string>",
    "waiting_reason": "tool",
    "created_at": "<string>",
    "started_at": "<string>",
    "completed_at": "<string>",
    "metadata": null
  },
  "duplicate": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
kind
enum<string>
required
Available options:
agent
owner
object
required
request
object
required
public_id
string
Required string length: 1 - 128
parent_run_id
string
Required string length: 1 - 128
trigger
object

Response

202 - application/json

Run accepted

accepted
boolean
required
run
object
required
duplicate
boolean