# Toll Free Offnet

## GET or POST Request

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

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

This will immediately attempt to order numbers. You can send the dids field as either a comma list of the numbers OR a json object of the numbers

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

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

```php
curl -X POST https://v1.api19.com/dids/tfoffnet/order \
 -d 'dids=3038821111,3038883333' \
 -d 'callflow=444' \
 -d 'key=your-api-key'
 
OR

curl -X POST https://v1.api19.com/dids/tfoffnet/order  \
 -d 'dids=[3038821111,3038883333]' \
 -d 'callflow=444' \
 -d 'key=your-api-key'

```

{% endtab %}
{% endtabs %}

Responses

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

```javascript
{
    "status": "ok",
    "success": {
        "8003332222": "yes"
    },
    "errors": {
        "8883332222": "8883332222 is already in your orders",
        "3334443333": "3334443333 is not a tollfree number"
    }
}
```

{% endtab %}

{% tab title="Invalid" %}

```php
{'status': 'error', 'error':'no numbers found in dids'}

OR

{'status': 'error', 'error':'system error'}

OR

{'status': 'error', 'error':'json in dids is invalid'}
```

{% 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/numbers-ordering/toll-free-offnet.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.
