Wexa AI
  1. Tasks
Wexa AI
  • Wexa AI
  • Getting Started with Wexa AI
  • Use Cases and Workflows
  • API Reference
  • Tutorials
  • Troubleshooting Guide
  • 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
      • get executions
      • execute agentflow
      • pause executeflow
      • resume execution
      • cancel executeflow
      • get execution by execution id
      • get execution details for monitoring
    • Customer
      • get customer
      • Get credit history
    • Actions
      • create action
      • get action
    • Files
      • upload files
      • get files by fileid
      • get connector by fileid
      • get files by connector_id
    • Inbox
      • get inbox
    • Tags
      • tags
    • Tasks
      • get tasks
        GET
      • get task by id
        GET
      • Pause running task
        POST
      • resume task
        POST
      • Stop task
        POST
    • 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
  1. Tasks

Stop task

POST
https://api.wexa.ai/task/{id}/stop
Last modified:2025-04-25 11:48:43

Stop a Specific Task#

Use this endpoint to stop a specific task within your Wexa.ai environment by providing its unique task_id. Stopping a task halts its current execution, allowing you to terminate operations that are no longer needed or are causing issues.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.wexa.ai/task//stop' \
--header 'x-api-key: {{x-api-key}}'
Response Response Example
{
  "_id": "680716d41a9ea363140a265c",
  "projectID": "67fdea40aac77be632954f13",
  "created_at": 1745295060.584305,
  "updated_at": 1745295060.584308,
  "status": "cancelled",
  "created_by": "67fdea40aac77be632954f0e",
  "execution_ids": [
    "3cbdb27a-8bff-4a65-a9d2-75702f9397fc"
  ],
  "execution_nodes": [
    {
      "execution_id": "3cbdb27a-8bff-4a65-a9d2-75702f9397fc",
      "_id": "680716d41a9ea363140a265b",
      "execution_type": "execution",
      "children": []
    }
  ],
  "name": "content creator testing"
}

Request

Path Params
id
string 
required
Header Params
x-api-key
string 
required
Example:
{{x-api-key}}

Responses

🟢201Stop task
application/json
Body
_id
string 
required
projectID
string 
required
created_at
number 
required
updated_at
number 
required
status
string 
required
created_by
string 
required
execution_ids
array[string]
required
execution_nodes
array [object {4}] 
required
execution_id
string 
optional
_id
string 
optional
execution_type
string 
optional
children
array
optional
name
string 
required
Modified at 2025-04-25 11:48:43
Previous
resume task
Next
create table