Making API Requests
The api_token can be found in our panel by going to your profile.
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/backconnect/{membership}/authorized-ips?api_token=xxxx",
data: "_method=PUT&ips[]=1.1.1.1&ips[]=1.1.1.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&geo[]=us&geo[]=uk&geo[]=ca
JSON Payload (must be PUT):
{
"key" : [
"value1",
"value2"
]
}
Example:
{
"geo" : [
"us",
"uk"
]
}
GET Authorized IPs
GET
https://shifter.io/api/v1/backconnect/{membership}/authorized-ips/
Path Parameters
Name | Type | Description |
---|
| | The ID can be found on the membership page. |
{
"error": null,
"code": 200,
"data": [
"1.1.1.1",
"1.1.1.2"
]
}
{
"error": "Unauthorized",
"code": 401
}
{
"error": "Membership not found",
"code": 404
}
{
"error": "Membership status is: [Status]",
"code": 503
}
PUT Authorized IPs
Payload Content
{
"ips": [
"1.1.1.1",
"1.1.1.2"
]
}
PUT
https://shifter.io/api/v1/backconnect/{membership}/authorized-ips/
Path Parameters
Name | Type | Description |
---|
| | The ID can be found on the membership page. |
{
"error": null,
"code": 200,
"data": [
"1.1.1.1",
"1.1.1.2"
]
}
{
"error": "Unauthorized",
"code": 401
}
{
"error": "Membership not found",
"code": 404
}
{
"error": "Membership status is: [Status]",
"code": 503
}
GET GEO
GET
https://shifter.io/api/v1/backconnect/{membership}/geo/
Path Parameters
Name | Type | Description |
---|
| | The ID can be found on the membership page. |
{
"error": null,
"code": 200,
"advanced_geo": null,
"data": [
"us",
"au",
"de"
]
}
{
"error": null,
"code": 200,
"advanced_geo": [
"6451:6454:ru",
"6455:6455:us,ca"
],
"data": [
"us",
"au",
"de"
]
}
{
"error": "Unauthorized",
"code": 401
}
{
"error": "Membership is not GEO",
"code": 403
}
{
"error": "Membership status is: [Status]",
"code": 503
}
{
"error": "Membership not found",
"code": 404
}
PUT GEO
Payload Content
{
"geo": [ "us", "gb" ],
"advanced_geo": [
"6451:6454:ru",
"6455:6455:us,ca"
]
}
PUT
https://shifter.io/api/v1/backconnect/{membership}/geo/
Path Parameters
Name | Type | Description |
---|
| | The ID can be found on the membership page. |
| | |
| | |
{
"error": null
"code": 200
"data": [
"us",
"uk",
"ca"
]
}
{
"error": "Unauthorized",
"code": 401
}
{
"error": "Membership not found",
"code": 404
}
{
"error": "GEO is required",
"code": 400
}
{
"error": "Membership is not GEO",
"code": 403
}
{
"error": "Membership status is: [Status]",
"code": 503
}
{
"error": "GEO must be array",
"code": 400
}
GET Proxies
GET
https://shifter.io/api/v1/backconnect/{membership}/proxies/
Path Parameters
Name | Type | Description |
---|
| | The ID can be found on the membership page. |
{
"error": null,
"code": 200,
"data": [
"8.8.8.8:1",
"8.8.8.8:2",
"8.8.8.8:3",
"8.8.8.8:4",
"8.8.8.8:5"
]
}
{
"error": "Unauthorized",
"code": 401
}
{
"error": "Membership not found",
"code": 404
}
{
"error": "Membership status is: [Status]",
"code": 503
}