# Static Residential Proxies

### Making API Requests

{% hint style="info" %}
The **api\_token** can be found in our panel by going to your profile.
{% endhint %}

### Method PUT

To simulate PUT, set the Content-Type header to application/x-www-form-urlencoded and add a field named \_method with the value PUT.

**Example:**

```
$.ajax({
    url: "/api/v1/dedicated/{membership}/authorized-ips/?api_token=xxxx",
    data: "_method=PUT&ips[]=1.1.1.1&ips[]=2.2.2.2",
    dataType: "json",
    type : "POST",
    success : function(r) {
        console.log(r);
    }
});
```

### HTT Form Payload

**Content-Type:** x-www-form-urlencoded

**Method:** GET/PUT/POST

**Content:** \_method=PUT\&ips\[]=1.1.1.1\&geo\[]=2.2.2.2

**JSON Payload (must be PUT):**

```
{
    "key" : [
        "value1",
        "value2"
    ]
}
Example:
{
    "ips" : [
        "1.1.1.1",
        "2.2.2.2"
    ]
}
```

### GET Authorized IPs

<mark style="color:blue;">`GET`</mark> `https://shifter.io/api/v1/dedicated/{membership}/authorized-ips/`

#### Path Parameters

| Name                                         | Type   | Description                                 |
| -------------------------------------------- | ------ | ------------------------------------------- |
| membership<mark style="color:red;">\*</mark> | String | The ID can be found on the membership page. |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "error": null,
    "code": 200,
    "data": [
      "1.1.1.1",
      "1.1.1.2"
    ]
}
```

{% endtab %}

{% tab title="401: Unauthorized This error means that you have a missing or invalid api\_token, please check the making api requests section." %}

```javascript
{
    "error": "Unauthorized",
    "code": 401
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    "error": "Membership not found",
    "code": 404
}
```

{% endtab %}

{% tab title="503: Service Unavailable " %}

```javascript
{
    "error": "Membership status is: [Status]",
    "code": 503
}
```

{% endtab %}
{% endtabs %}

### PUT Authorized IPs

<details>

<summary>Payload Content</summary>

```
{
    "ips": [
        "1.1.1.1",
        "1.1.1.2"
    ]
}
```

</details>

<mark style="color:orange;">`PUT`</mark> `https://shifter.io/api/v1/dedicated/{membership}/authorized-ips/`

#### Path Parameters

| Name                                         | Type   | Description                                 |
| -------------------------------------------- | ------ | ------------------------------------------- |
| membership<mark style="color:red;">\*</mark> | String | The ID can be found on the membership page. |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "error": null,
    "code": 200,
    "data": [
      "1.1.1.1",
      "1.1.1.2"
    ]
}
```

{% endtab %}

{% tab title="401: Unauthorized " %}

```javascript
{
    "error": "Unauthorized",
    "code": 401
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    "error": "Membership not found",
    "code": 404
}
```

{% endtab %}

{% tab title="403: Forbidden " %}

```javascript
{
    "error": "Auth type is user/pass",
    "code": 403
}
```

{% endtab %}

{% tab title="503: Service Unavailable " %}

```javascript
{
    "error": "Membership status is: [Status]",
    "code": 503
}
```

{% endtab %}
{% endtabs %}

### GET Proxies

<mark style="color:blue;">`GET`</mark> `https://shifter.io/api/v1/dedicated/{membership}/proxies/`

#### Path Parameters

| Name                                         | Type   | Description                                 |
| -------------------------------------------- | ------ | ------------------------------------------- |
| membership<mark style="color:red;">\*</mark> | String | The ID can be found on the membership page. |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "error": null,
    "code": 200,
    "data": [
        "8.8.8.1:1",
        "8.8.8.2:1",
        "8.8.8.3:1",
        "8.8.8.4:1",
        "8.8.8.5:1"
    ]
}
```

{% endtab %}

{% tab title="401: Unauthorized This error means that you have a missing or invalid api\_token, please check the making api requests section." %}

```javascript
{
    "error": "Unauthorized",
    "code": 401
}
```

{% endtab %}

{% tab title="404: Not Found " %}

```javascript
{
    "error": "Membership not found",
    "code": 404
}
```

{% endtab %}

{% tab title="503: Service Unavailable " %}

```javascript
{
    "error": "Membership status is: [Status]",
    "code": 503
}
```

{% endtab %}
{% endtabs %}
