> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/my-inventory/change-call-flow.md).

# Change Call Flow

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/dids/callflow/change>
{% endhint %}

| Argument       | Required | Type |
| -------------- | -------- | ---- |
| did            | yes      | int  |
| call\_flow\_id | yes      | int  |
| fax\_flow\_id  | no       | int  |

Send us a POST or GET with the number and either the fax flow id or the call flow id.

{% tabs %}
{% tab title="Curl Post" %}

```javascript
curl -X POST https://v1.api19.com/dids/callflow/change \
 -d 'did=3038821111' \
 -d 'call_flow_id=10' \
 -d 'key=api_token'
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/dids/callflow/change?number=3039921111&call_flow_id=10&key=apitoken \
```

{% endtab %}

{% tab title="JSON Response" %}

```json
{"status":"ok"}

OR

{"status":"error", "error":"invalid callflow"}
```

{% endtab %}
{% endtabs %}
