# SIP IP Addresses

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/account/sip/ip>
{% endhint %}

Add or Delete a SIP IP on an account

## HTTP Post Variables Supported

<table data-header-hidden><thead><tr><th width="110.272705078125"></th><th width="108.54547119140625"></th><th></th></tr></thead><tbody><tr><td>Argument</td><td>Required</td><td>Type</td></tr><tr><td>name</td><td>yes</td><td>name this IP</td></tr><tr><td>ip</td><td>yes</td><td>IPV4 ip (3.3.3.3)</td></tr><tr><td>user_id</td><td>no</td><td>user_id to add ip to (your account is default)</td></tr><tr><td>type</td><td>yes</td><td>add or delete</td></tr><tr><td>key</td><td>yes</td><td>api key</td></tr></tbody></table>

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

```php
curl https://v1.api19.com/account/sip/ip \
 -d 'key=api_token' \
 -d 'name=myip' \
 -d 'user_id=300092' \
 -d 'type=add' \
 -d 'ip=3.3.3.3'
```

{% endtab %}

{% tab title="JSON Response" %}

```json
{"status":"ok"}

OR

{"status":"error","error":"IP 3.3.3.3 already exists"}

OR

{"status":"error","error":"Invalid ip address"}
```

{% 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/account/sip-ip-addresses.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.
