Wexa AI
  1. Executeflow
Wexa AI
  • Wexa AI
  • Use Cases and Workflows
  • API Reference
  • Troubleshooting Guide
  • Onboarding
    • Getting Started with Wexa
    • Hire your AI Coworker
  • AI Coworker Creation
    • Create your First AI Coworker
    • Process Flows
    • Creating your First Agent
    • Schedule a Process Flow
    • Executing a Process Flow
    • Settings - Input Form
    • History
  • Tables
    • Intro to Tables
    • Adding records to Tables
    • Table Triggers
  • Knowledge Base
    • Intro to Knowledge Base
  • Connectors and MCP Servers
    • Adding a New Connector
    • Adding an MCP Server
    • Setting up Connectors Triggers
  • API Endpoints
    • Project
      • create project
      • Get all projects
      • Get project
      • update project
      • Delete project
    • Agentflows
      • create agentflow
      • get agentflows
      • Get agentflow by projectId and UserId
      • get agentflow by id
      • Add skilled agent to agentflow
      • Update skilled agent
    • Connectors
      • get connectors by projectid
      • get connector by Id
      • Delete a connector
      • connector update status
      • get all available trigger actions
    • Skills
      • create skill
      • get skills
      • get skills by category'
      • get skills by id
      • skills by name
    • Executeflow
      • create executeflow
        POST
      • get executions
        GET
      • execute agentflow
        POST
      • pause executeflow
        POST
      • resume execution
        POST
      • cancel executeflow
        POST
      • get execution by execution id
        GET
      • get execution details for monitoring
        GET
    • Customer
      • get customer
      • Get credit history
    • Actions
      • create action
      • get action
    • Files
      • Connectors and MCP Servers
      • upload files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
    • Inbox
      • get inbox
    • Tags
      • tags
    • Tasks
      • get tasks
      • get task by id
      • Pause running task
      • resume task
      • Stop task
    • Tables
      • create table
      • create database
      • get tables
      • get records list
      • get table names
      • delete record
      • delete a column
    • Dashboard
      • get dashboard
      • refresh dashboard
      • delete component in dashboard
    • Settings
      • get settings
    • Marketplace
      • get all connectors
      • get marketplace coworkers
      • get marketplace coworker by id
    • Coworker schedules
      • get schedules
      • create coworker schedule
      • get schedule coworker by its id
      • update schedule by its id
      • delete schedule by its id
    • Analytics
      • Get analytics
    • Marketplace coworkers
      • hire a coworker
      • check marketplace coworker update
    • Project member
      • project_member
    • Available Connectors
      • Actions
  1. Executeflow

pause executeflow

POST
https://api.wexa.ai/execute_flow/{execution_id}/pause
Last modified:2025-04-25 09:35:23

Pause Execution Flow#

Temporarily pause an ongoing execution flow by providing its unique execution_id. This endpoint allows you to halt the execution of an AgentFlow, enabling intervention for review, adjustments, or other necessary actions before resuming. Pausing an execution ensures that workflows can be managed with greater control and flexibility, aligning with dynamic operational requirements.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://api.wexa.ai/execute_flow//pause?projectID={{projectID}}' \
--header 'x-api-key: {{x-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "projectID":"67fdea40aac77be632954f13",
    "execution_id":"56d246cc-2803-41a7-a90d-c1c3d4672240"
}'
Response Response Example
{
    "execution_id": "56d246cc-2803-41a7-a90d-c1c3d4672240",
    "status": "paused"
}

Request

Path Params
execution_id
string 
required
Query Params
projectID
string 
required
Example:
{{projectID}}
Header Params
x-api-key
string 
required
Example:
{{x-api-key}}
Body Params application/json
projectID
string 
required
execution_id
string 
required
Examples

Responses

🟢200pause executeflow
application/json
Body
execution_id
string 
required
status
string 
required
Modified at 2025-04-25 09:35:23
Previous
execute agentflow
Next
resume execution