# Add contacts to a workflow

> Start a workflow for up to 100 contacts.

Source: https://docs.mycrmsim.com/docs/automations/add-contacts-to-workflow

```http
POST https://backend.mysmsgateway.app/api/v1/ext/workflows/{id}/contacts
```

- Category: myCRMSIM Automations / Automations
- 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

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | The workflow id from List workflows. Example: `wf_9a1` |
| `workspace_id` | body | number | yes | The workspace the workflow and contacts belong to. Example: `7` |
| `contact_ids` | body | array<number> | yes | Up to 100 contact ids in that workspace. Example: `[1234, 1235]` |

## Request body

```json
{
  "workspace_id": 7,
  "contact_ids": [
    1234,
    1235
  ]
}
```

## Response 200

OK

```json
{
  "success": true,
  "message": "2 contact(s) added to the workflow.",
  "data": {
    "workflow_id": "wf_9a1",
    "requested": 2,
    "enrolled": 2
  }
}
```

## Response 400

Missing workspace_id or contact_ids

```json
{
  "success": false,
  "message": "contact_ids is required — an array of contact ids."
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): automations.write. This integration was granted: …"
}
```

## Response 404

Workspace, workflow or a contact not found (or not yours)

```json
{
  "success": false,
  "message": "Contact(s) not found in this workspace: 1236."
}
```

## Response 502

The automation service did not answer

```json
{
  "success": false,
  "message": "The automation service could not add the contacts. Try again later."
}
```
