Skip to main content
POST
/
api
/
v1
/
workflow
/
{workflowId}
/
execution
Create workflow execution
curl --request POST \
  --url https://prod.featherhq.com/api/v1/workflow/{workflowId}/execution \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "customerLeadId": "<string>",
  "primaryPhone": "<string>",
  "zipcode": "<string>",
  "state": "<string>",
  "forwardingPhoneNumber": "<string>",
  "variables": {},
  "metadata": {
    "firstName": "<string>",
    "lastName": "<string>"
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workflowId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "CREATED",
  "temporalWorkflowId": "<string>",
  "startedAt": "<string>",
  "completedAt": "<string>",
  "customerLeadId": "<string>",
  "metadata": {
    "firstName": "<string>",
    "lastName": "<string>"
  },
  "disposition": "COULD_NOT_CONNECT",
  "definition": {
    "steps": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "type": "CALL",
        "order": 2,
        "delayInSecs": 0,
        "finishOn": [],
        "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "leaveVoicemail": false
      }
    ]
  },
  "stepExecutions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workflowExecutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "PENDING",
      "type": "CALL",
      "order": 123,
      "delayInSecs": 123,
      "finishOn": [
        "COULD_NOT_CONNECT"
      ],
      "startedAt": "<string>",
      "completedAt": "<string>",
      "leaveVoicemail": true,
      "disposition": "COULD_NOT_CONNECT",
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "agentCall": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "status": "<string>",
        "callStartedAt": "<string>",
        "callEndedAt": "<string>",
        "callDuration": 123,
        "callEndedReason": "COULD_NOT_CONNECT",
        "recordingUrl": "<string>",
        "summary": "<string>"
      }
    }
  ],
  "createdAt": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

workflowId
string<uuid>
required

Body

application/json
customerLeadId
string
required

Customer lead identifier

primaryPhone
string
required
zipcode
string | null
state
string | null
forwardingPhoneNumber
string
variables
object

Variables for the execution

metadata
object

Additional metadata for the execution

Response

Agent workflow execution created successfully

id
string<uuid>
required

Execution ID

workflowId
string<uuid>
required

Workflow ID

status
enum<string>
required

Execution status

Available options:
CREATED,
RUNNING,
COMPLETED,
FAILED,
CANCELLED,
PAUSED
temporalWorkflowId
string | null
required

Temporal workflow ID

startedAt
string
required

Execution start timestamp

completedAt
string | null
required

Execution completion timestamp

customerLeadId
string | null
required

Customer lead identifier

metadata
required

Execution metadata

disposition
enum<string> | null
required

Final execution disposition

Available options:
COULD_NOT_CONNECT,
NO_ANSWER,
LEFT_VOICEMAIL,
VOICEMAIL_DETECTED,
SILENCE_TIMEOUT,
BAD_NUMBER,
NOT_INTERESTED,
WARM_TRANSFER,
CALENDLY,
DNC,
ENDED,
FRAUD,
LINE_BUSY,
TEXT_CONSENT,
CALL_AGAIN
definition
object
required

Workflow definition snapshot

stepExecutions
object[]
required

Step executions

createdAt
string
required

Creation timestamp