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


---

# 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/call-apis/set-incoming-url.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.
