myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Deactivate workflow

POST

/api/v1/ext/workflows/{id}/deactivate

Turn a workflow off (back to draft).

Auth: Bearer access_token
Scope: automations.write

Its triggers stop starting it, and the runs in progress are cancelled. A workflow an AI agent uses as a task cannot be turned off until it is removed from the agent (400).

Parameters

NameInTypeRequiredDescription
id
path
number
yes
Workflow id.
workspace_id
body
number
yes
A workspace of the installer.

Responses

StatusWhen
200
OK
400
Used by an AI agent
401
Missing or invalid token
403
Missing scope
404
workspace_id does not exist or is not the installer's (same response for both)
404
The workflow does not exist, is not the installer's, or is in another workspace
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/workflows/{id}/deactivate" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7
}'
Responses
OK
{
  "success": true,
  "message": "Workflow deactivated (draft). Runs in progress were cancelled.",
  "data": {
    "id": 1201,
    "status": "draft"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Workflow id.

Body (JSON)
Request URL
POSThttps://backend.mysmsgateway.app/api/v1/ext/workflows/%7Bid%7D/deactivate
Previous

« Activate workflow

Next

Delete workflow »