> 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/create-call-flow.md).

# Create Call Flow

## GET or POST Request

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

Send us a GET or POST request with your key and the numbers (in the URI as key or as http password)

Create a call flow with a specific call flow name.

| Argument       | Required | Type     |
| -------------- | -------- | -------- |
| callflow\_name | no       | int      |
| key            | yes      | api\_key |

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

```php
curl -X POST https://v1.api19.com/dids/callflow/create\
 -d 'callflow_name=my+call_flow' \
 -d 'key=your-api-key'
```

{% endtab %}
{% endtabs %}

Responses

{% tabs %}
{% tab title="Success" %}

```javascript
{"status":"ok","call_flow_id":"31888"}

Message is your newly created callflow ID
```

{% endtab %}

{% tab title="Invalid" %}

```php
{'status': 'error', 'error':'callflow name exists'}
```

{% endtab %}
{% endtabs %}
