# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.api19.com/my-inventory/change-call-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
