myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Activate workflow

POST

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

Turn a workflow on.

Auth: Bearer access_token
Scope: automations.write

From now on its triggers start it and it sends to real contacts. A workflow with an Auto Trigger runs once, right now, as it is switched on (activating one that is already active does not run it again).

Parameters

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

Responses

StatusWhen
200
OK
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}/activate" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7
}'
Responses
OK
{
  "success": true,
  "message": "Workflow activated",
  "data": {
    "id": 1201,
    "status": "active"
  }
}
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/activate
Previous

« Update workflow

Next

Deactivate workflow »