myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Add contacts to a workflow

POST

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

Start a workflow for up to 100 contacts.

Auth: Bearer access_token
Scope: automations.write

The contacts start after the workflow's trigger: its entry conditions are not checked, so the actions run for every contact you send. A contact already running in the workflow (or that finished it, when re-entry is off) is skipped; enrolled says how many actually started. Everything the workflow sends goes to real people.

Parameters

NameInTypeRequiredDescription
id
path
string
yes
The workflow id from List workflows.
workspace_id
body
number
yes
The workspace the workflow and contacts belong to.
contact_ids
body
array<number>
yes
Up to 100 contact ids in that workspace.

Responses

StatusWhen
200
OK
400
Missing workspace_id or contact_ids
401
Missing or invalid token
403
Missing scope
404
Workspace, workflow or a contact not found (or not yours)
502
The automation service did not answer
Request
curl -X POST "https://backend.mysmsgateway.app/api/v1/ext/workflows/{id}/contacts" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "workspace_id": 7,
  "contact_ids": [
    1234,
    1235
  ]
}'
Responses
OK
{
  "success": true,
  "message": "2 contact(s) added to the workflow.",
  "data": {
    "workflow_id": "wf_9a1",
    "requested": 2,
    "enrolled": 2
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

The workflow id from List workflows.

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

« Delete workflow

Next

Remove a contact from a workflow »