# Set Incoming URL

Incoming calls for numbers can be set either:

1. In the Call Flows under Numbers in the portal
2. On an individual DID basis

## By API Call

{% hint style="info" %}
&#x20;URI: <https://v1.api19.com/dids/set/callurl>
{% endhint %}

**Supported Operations**: **HTTP POST**

Sets the URL for a specific phone number to route to when needed.

**Request Parameters**

| Parameter | Description                                                |
| --------- | ---------------------------------------------------------- |
| token     | Your customer API Token                                    |
| did       | The phone number to set the URL for or none to set no url. |
| url       | The HTTP/HTTPS URL to set route the call to.               |

Example CURL call:

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

```php
curl -X POST https://v1.api19.com/dids/my/callurl
   -d 'key=API_Token' \
   -d 'did=number' \
   -d 'url=http_url'
```

{% endtab %}
{% endtabs %}
