MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API. The documentation is work in progress and it's currently missing proper examples.

Authenticating requests

To authenticate requests, include an Authorization header with your API Token, example: Authorization: Bearer {YOUR_API_TOKEN}

To call user endpoints, include additional X-PanelAlpha-User header with the user's ID, example: X-PanelAlpha-User: 12

You can retrieve your token in Configuration -> Admins section of admin area.

Admin Endpoints

System

Show system configuration

Example request:
curl --request GET \
    --get "/api/admin/settings" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/settings'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/settings

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Update system configuration

Example request:
curl --request PUT \
    "/api/admin/settings" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/settings';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/settings'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/settings

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

SSL

List SSL providers

Example request:
curl --request GET \
    --get "/api/admin/ssl/providers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/ssl/providers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/ssl/providers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/ssl/providers'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/ssl/providers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List SSL orders

Example request:
curl --request GET \
    --get "/api/admin/ssl-orders" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/ssl-orders"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/ssl-orders';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/ssl-orders'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/ssl-orders

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List SSL logs

Example request:
curl --request GET \
    --get "/api/admin/ssl-orders/logs" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/ssl-orders/logs"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/ssl-orders/logs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/ssl-orders/logs'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/ssl-orders/logs

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Process SSL order

Example request:
curl --request PUT \
    "/api/admin/ssl-orders/13/process" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/ssl-orders/13/process"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/ssl-orders/13/process';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/ssl-orders/13/process'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/ssl-orders/{id}/process

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

SSL order ID. Example: 13

Abandon SSL Order

Example request:
curl --request PUT \
    "/api/admin/ssl-orders/7/abandon" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/ssl-orders/7/abandon"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/ssl-orders/7/abandon';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/ssl-orders/7/abandon'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/ssl-orders/{id}/abandon

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

SSL order ID. Example: 7

Users

List users

Example request:
curl --request GET \
    --get "/api/admin/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"filter\": \"excepturi\"
}"
const url = new URL(
    "/api/admin/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter": "excepturi"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'filter' => 'excepturi',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users'
payload = {
    "filter": "excepturi"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

filter   string  optional  

Example: excepturi

Create user

Example request:
curl --request POST \
    "/api/admin/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"nmfrakqcgbm\",
    \"last_name\": \"q\",
    \"company_name\": \"yoydmnqpe\",
    \"email\": \"[email protected]\",
    \"password\": \"$,~~D}vI*\"
}"
const url = new URL(
    "/api/admin/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "nmfrakqcgbm",
    "last_name": "q",
    "company_name": "yoydmnqpe",
    "email": "[email protected]",
    "password": "$,~~D}vI*"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'nmfrakqcgbm',
            'last_name' => 'q',
            'company_name' => 'yoydmnqpe',
            'email' => '[email protected]',
            'password' => '$,~~D}vI*',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users'
payload = {
    "first_name": "nmfrakqcgbm",
    "last_name": "q",
    "company_name": "yoydmnqpe",
    "email": "[email protected]",
    "password": "$,~~D}vI*"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

first_name   string  optional  

Must not be greater than 255 characters. Example: nmfrakqcgbm

last_name   string  optional  

Must not be greater than 255 characters. Example: q

company_name   string  optional  

Must not be greater than 255 characters. Example: yoydmnqpe

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: [email protected]

password   string   

Must be at least 8 characters. Example: $,~~D}vI*

List archived users

Example request:
curl --request GET \
    --get "/api/admin/users/archived" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/archived"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/archived';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/archived'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/archived

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Find user by email

Example request:
curl --request GET \
    --get "/api/admin/users/email?email=user%40example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/email"
);

const params = {
    "email": "[email protected]",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/email';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'query' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/email'
params = {
  'email': '[email protected]',
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/email

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Query Parameters

email   string   

Email address. Example: [email protected]

Show archived user details

Example request:
curl --request GET \
    --get "/api/admin/users/12/archived" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/12/archived"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/12/archived';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/12/archived'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{id}/archived

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 12

Show user details

Example request:
curl --request GET \
    --get "/api/admin/users/20" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/20"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/20';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/20'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 20

Get user's last activity

Example request:
curl --request GET \
    --get "/api/admin/users/10/last-activity" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/10/last-activity"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/10/last-activity';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/10/last-activity'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{id}/last-activity

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 10

Unarchive user

Example request:
curl --request PUT \
    "/api/admin/users/17/unarchive" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/17/unarchive"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/17/unarchive';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/17/unarchive'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/users/{id}/unarchive

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 17

Update user

Example request:
curl --request PUT \
    "/api/admin/users/4" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"rq\",
    \"last_name\": \"wjqvoxpbsyndwnvwjakhon\",
    \"company_name\": \"dskyty\",
    \"email\": \"[email protected]\",
    \"password\": \"m)W0CpAV^K@0ul+\'a{H\"
}"
const url = new URL(
    "/api/admin/users/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "rq",
    "last_name": "wjqvoxpbsyndwnvwjakhon",
    "company_name": "dskyty",
    "email": "[email protected]",
    "password": "m)W0CpAV^K@0ul+'a{H"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/4';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'rq',
            'last_name' => 'wjqvoxpbsyndwnvwjakhon',
            'company_name' => 'dskyty',
            'email' => '[email protected]',
            'password' => 'm)W0CpAV^K@0ul+\'a{H',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/4'
payload = {
    "first_name": "rq",
    "last_name": "wjqvoxpbsyndwnvwjakhon",
    "company_name": "dskyty",
    "email": "[email protected]",
    "password": "m)W0CpAV^K@0ul+'a{H"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 4

Body Parameters

first_name   string  optional  

Must not be greater than 255 characters. Example: rq

last_name   string  optional  

Must not be greater than 255 characters. Example: wjqvoxpbsyndwnvwjakhon

company_name   string  optional  

Must not be greater than 255 characters. Example: dskyty

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: [email protected]

password   string  optional  

Must be at least 8 characters. Example: m)W0CpAV^K@0ul+'a{H

Delete archived user

Example request:
curl --request DELETE \
    "/api/admin/users/1/delete" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/1/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/1/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/1/delete'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/users/{id}/delete

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 1

Delete user

Example request:
curl --request DELETE \
    "/api/admin/users/8" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/8';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/8'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/users/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 8

Create user SSO token

Example request:
curl --request POST \
    "/api/admin/users/3/sso-token" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/3/sso-token"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/3/sso-token';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/3/sso-token'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/users/{id}/sso-token

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 3

Create admin-as-user SSO token

Example request:
curl --request POST \
    "/api/admin/users/14/login-as-user-sso-token" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/14/login-as-user-sso-token"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/14/login-as-user-sso-token';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/14/login-as-user-sso-token'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/users/{id}/login-as-user-sso-token

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 14

List users with shared instances access

Example request:
curl --request GET \
    --get "/api/admin/users/7/sharing-with" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/7/sharing-with"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/7/sharing-with';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/7/sharing-with'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{id}/sharing-with

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 7

List instances shared with user

Example request:
curl --request GET \
    --get "/api/admin/users/5/sharing-with/3/shared-instances" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/5/sharing-with/3/shared-instances"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/5/sharing-with/3/shared-instances';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/5/sharing-with/3/shared-instances'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{id}/sharing-with/{sharingWithId}/shared-instances

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 5

sharingWithId   integer   

User ID. Example: 3

List all instances

Returns all instances the user has access to.

Example request:
curl --request GET \
    --get "/api/admin/users/15/all-instances" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/15/all-instances"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/15/all-instances';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/15/all-instances'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{id}/all-instances

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

User ID. Example: 15

List user services

Example request:
curl --request GET \
    --get "/api/admin/users/12/services" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/12/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/12/services';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/12/services'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/users/{userId}/services

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 12

Create user service

Example request:
curl --request POST \
    "/api/admin/users/17/services" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"plan_id\": 8
}"
const url = new URL(
    "/api/admin/users/17/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "plan_id": 8
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/17/services';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'plan_id' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/17/services'
payload = {
    "plan_id": 8
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/users/{userId}/services

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 17

Body Parameters

plan_id   integer   

Example: 8

Suspend user service

Example request:
curl --request PUT \
    "/api/admin/users/15/services/16/suspend" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/15/services/16/suspend"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/15/services/16/suspend';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/15/services/16/suspend'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/users/{userId}/services/{id}/suspend

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 15

id   integer   

Service ID. Example: 16

Unsuspend user service

Example request:
curl --request PUT \
    "/api/admin/users/12/services/7/unsuspend" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/12/services/7/unsuspend"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/12/services/7/unsuspend';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/12/services/7/unsuspend'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/users/{userId}/services/{id}/unsuspend

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 12

id   integer   

Service ID. Example: 7

Change user service's plan

Example request:
curl --request PUT \
    "/api/admin/users/11/services/1/change-plan" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"plan_id\": 11
}"
const url = new URL(
    "/api/admin/users/11/services/1/change-plan"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "plan_id": 11
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/11/services/1/change-plan';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'plan_id' => 11,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/11/services/1/change-plan'
payload = {
    "plan_id": 11
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/users/{userId}/services/{id}/change-plan

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 11

id   integer   

Service ID. Example: 1

Body Parameters

plan_id   integer   

Example: 11

Delete user service

Example request:
curl --request DELETE \
    "/api/admin/users/6/services/18" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/users/6/services/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/users/6/services/18';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/users/6/services/18'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/users/{userId}/services/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

userId   integer   

User ID. Example: 6

id   integer   

Service ID. Example: 18

Admins

List admin accounts

Example request:
curl --request GET \
    --get "/api/admin/admins" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admins"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admins';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admins'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/admins

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Add admin account

Example request:
curl --request POST \
    "/api/admin/admins" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"ynlzqjssfalggzkcmpduf\",
    \"admin_group_id\": 19,
    \"email\": \"[email protected]\",
    \"password\": \".$lQs-,\"
}"
const url = new URL(
    "/api/admin/admins"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ynlzqjssfalggzkcmpduf",
    "admin_group_id": 19,
    "email": "[email protected]",
    "password": ".$lQs-,"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admins';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'ynlzqjssfalggzkcmpduf',
            'admin_group_id' => 19,
            'email' => '[email protected]',
            'password' => '.$lQs-,',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admins'
payload = {
    "name": "ynlzqjssfalggzkcmpduf",
    "admin_group_id": 19,
    "email": "[email protected]",
    "password": ".$lQs-,"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/admins

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Must not be greater than 255 characters. Example: ynlzqjssfalggzkcmpduf

admin_group_id   integer   

Example: 19

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: [email protected]

password   string   

Must be at least 8 characters. Example: .$lQs-,

Show admin account details

Example request:
curl --request GET \
    --get "/api/admin/admins/7" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admins/7"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admins/7';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admins/7'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/admins/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin ID. Example: 7

Update admin account

Example request:
curl --request PUT \
    "/api/admin/admins/1" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"yorplftxxjrae\",
    \"admin_group_id\": 15,
    \"email\": \"[email protected]\",
    \"password\": \"-b_jNP\"
}"
const url = new URL(
    "/api/admin/admins/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "yorplftxxjrae",
    "admin_group_id": 15,
    "email": "[email protected]",
    "password": "-b_jNP"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admins/1';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'yorplftxxjrae',
            'admin_group_id' => 15,
            'email' => '[email protected]',
            'password' => '-b_jNP',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admins/1'
payload = {
    "name": "yorplftxxjrae",
    "admin_group_id": 15,
    "email": "[email protected]",
    "password": "-b_jNP"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/admins/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin ID. Example: 1

Body Parameters

name   string   

Must not be greater than 255 characters. Example: yorplftxxjrae

admin_group_id   integer   

Example: 15

email   string  optional  

Must be a valid email address. Must not be greater than 255 characters. Example: [email protected]

password   string  optional  

Must be at least 8 characters. Example: -b_jNP

Delete admin account

Example request:
curl --request DELETE \
    "/api/admin/admins/11" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admins/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admins/11';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admins/11'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/admins/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin ID. Example: 11

Change admin account status

Example request:
curl --request PUT \
    "/api/admin/admins/10/status" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"disabled\": false
}"
const url = new URL(
    "/api/admin/admins/10/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "disabled": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admins/10/status';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'disabled' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admins/10/status'
payload = {
    "disabled": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/admins/{id}/status

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin ID. Example: 10

Body Parameters

disabled   boolean   

Example: false

Enable API token

Example request:
curl --request POST \
    "/api/admin/api-tokens/6" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/api-tokens/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/api-tokens/6';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/api-tokens/6'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/api-tokens/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin ID. Example: 6

Disable API token

Example request:
curl --request DELETE \
    "/api/admin/api-tokens/3" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/api-tokens/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/api-tokens/3';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/api-tokens/3'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/api-tokens/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin ID. Example: 3

Hosting Servers

Test connection

Example request:
curl --request POST \
    "/api/admin/servers/test-connection" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"type\": \"nemo\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/servers/test-connection"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "nemo",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/test-connection';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => 'nemo',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/test-connection'
payload = {
    "type": "nemo",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/servers/test-connection

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

type   string   

Example: nemo

connection_config   object   

Test WP-CLI

Example request:
curl --request POST \
    "/api/admin/servers/test-wp-cli" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"type\": \"mollitia\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/servers/test-wp-cli"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "mollitia",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/test-wp-cli';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => 'mollitia',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/test-wp-cli'
payload = {
    "type": "mollitia",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/servers/test-wp-cli

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

type   string   

Example: mollitia

connection_config   object   

List server types

Example request:
curl --request GET \
    --get "/api/admin/servers/types" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/types"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/types'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/types

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Show server type details

Example request:
curl --request GET \
    --get "/api/admin/servers/types/cpanel" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/types/cpanel"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/types/cpanel';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/types/cpanel'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/types/{type}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

type   string   

Server type. Example: cpanel

List server logs

Example request:
curl --request GET \
    --get "/api/admin/servers/logs" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/logs"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/logs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/logs'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/logs

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List servers

Example request:
curl --request GET \
    --get "/api/admin/servers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"group_id\": 3
}"
const url = new URL(
    "/api/admin/servers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "group_id": 3
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'group_id' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers'
payload = {
    "group_id": 3
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

group_id   integer  optional  

Example: 3

Show server details

Example request:
curl --request GET \
    --get "/api/admin/servers/1" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/1';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/1'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 1

Show server config

Example request:
curl --request GET \
    --get "/api/admin/servers/14/config" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/14/config"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/14/config';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/14/config'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/{id}/config

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 14

Add server

Example request:
curl --request POST \
    "/api/admin/servers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"consequuntur\",
    \"type\": \"deleniti\",
    \"connection_config\": [],
    \"server_groups\": [
        \"in\"
    ]
}"
const url = new URL(
    "/api/admin/servers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "consequuntur",
    "type": "deleniti",
    "connection_config": [],
    "server_groups": [
        "in"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'consequuntur',
            'type' => 'deleniti',
            'connection_config' => [],
            'server_groups' => [
                'in',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers'
payload = {
    "name": "consequuntur",
    "type": "deleniti",
    "connection_config": [],
    "server_groups": [
        "in"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/servers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: consequuntur

type   string   

Example: deleniti

connection_config   object   
server_groups   integer[]   
id   integer   

Example: 16

name   string   

Example: in

server_type   string   

Example: quas

Update server

Example request:
curl --request PUT \
    "/api/admin/servers/8" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"dolores\",
    \"type\": \"ut\",
    \"connection_config\": [],
    \"server_groups\": [
        \"voluptates\"
    ]
}"
const url = new URL(
    "/api/admin/servers/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "dolores",
    "type": "ut",
    "connection_config": [],
    "server_groups": [
        "voluptates"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/8';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'dolores',
            'type' => 'ut',
            'connection_config' => [],
            'server_groups' => [
                'voluptates',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/8'
payload = {
    "name": "dolores",
    "type": "ut",
    "connection_config": [],
    "server_groups": [
        "voluptates"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 8

Body Parameters

name   string   

Example: dolores

type   string   

Example: ut

connection_config   object   
server_groups   integer[]   
id   integer   

Example: 9

name   string   

Example: inventore

server_type   string   

Example: commodi

Delete server

Example request:
curl --request DELETE \
    "/api/admin/servers/8" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/8';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/8'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 8

List PHP versions

Example request:
curl --request GET \
    --get "/api/admin/servers/3/php/versions" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/3/php/versions"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/3/php/versions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/3/php/versions'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/{id}/php/versions

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 3

List remote accounts

Example request:
curl --request GET \
    --get "/api/admin/servers/6/sync/accounts" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/6/sync/accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/6/sync/accounts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/6/sync/accounts'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/{id}/sync/accounts

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 6

Import service

Example request:
curl --request POST \
    "/api/admin/servers/10/sync/import-service" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"username\": \"dolor\",
    \"user_id\": 2,
    \"plan_id\": 5
}"
const url = new URL(
    "/api/admin/servers/10/sync/import-service"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "dolor",
    "user_id": 2,
    "plan_id": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/10/sync/import-service';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'username' => 'dolor',
            'user_id' => 2,
            'plan_id' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/10/sync/import-service'
payload = {
    "username": "dolor",
    "user_id": 2,
    "plan_id": 5
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/servers/{id}/sync/import-service

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 10

Body Parameters

username   string   

Example: dolor

user_id   integer   

Example: 2

plan_id   integer   

Example: 5

Find WordPress installations

Example request:
curl --request GET \
    --get "/api/admin/servers/9/sync/find-applications" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/servers/9/sync/find-applications"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/9/sync/find-applications';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/9/sync/find-applications'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/servers/{id}/sync/find-applications

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 9

Import WordPress installation

Example request:
curl --request POST \
    "/api/admin/servers/18/sync/import-instance" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"username\": \"animi\",
    \"domain\": \"odio\",
    \"path\": \"illum\",
    \"application\": \"et\"
}"
const url = new URL(
    "/api/admin/servers/18/sync/import-instance"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "animi",
    "domain": "odio",
    "path": "illum",
    "application": "et"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/servers/18/sync/import-instance';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'username' => 'animi',
            'domain' => 'odio',
            'path' => 'illum',
            'application' => 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/servers/18/sync/import-instance'
payload = {
    "username": "animi",
    "domain": "odio",
    "path": "illum",
    "application": "et"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/servers/{id}/sync/import-instance

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server ID. Example: 18

Body Parameters

username   string   

Example: animi

domain   string   

Example: odio

path   string   

Example: illum

application   string  optional  

Example: et

List server groups

Example request:
curl --request GET \
    --get "/api/admin/server-groups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/server-groups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/server-groups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/server-groups'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/server-groups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Show server group details

Example request:
curl --request GET \
    --get "/api/admin/server-groups/11" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/server-groups/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/server-groups/11';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/server-groups/11'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/server-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server group ID. Example: 11

Create server group

Example request:
curl --request POST \
    "/api/admin/server-groups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"quas\",
    \"server_type\": \"aut\"
}"
const url = new URL(
    "/api/admin/server-groups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "quas",
    "server_type": "aut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/server-groups';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'quas',
            'server_type' => 'aut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/server-groups'
payload = {
    "name": "quas",
    "server_type": "aut"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/server-groups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: quas

server_type   string   

Example: aut

servers   object  optional  

Update server group

Example request:
curl --request PUT \
    "/api/admin/server-groups/20" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"ea\",
    \"server_type\": \"maxime\"
}"
const url = new URL(
    "/api/admin/server-groups/20"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ea",
    "server_type": "maxime"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/server-groups/20';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'ea',
            'server_type' => 'maxime',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/server-groups/20'
payload = {
    "name": "ea",
    "server_type": "maxime"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/server-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server group ID. Example: 20

Body Parameters

name   string   

Example: ea

server_type   string   

Example: maxime

servers   object  optional  

Delete server group

Example request:
curl --request DELETE \
    "/api/admin/server-groups/11" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/server-groups/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/server-groups/11';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/server-groups/11'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/server-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Server group ID. Example: 11

DNS Servers

Test connection

Example request:
curl --request POST \
    "/api/admin/dns-servers/test-connection" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"veniam\",
    \"type\": \"maxime\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/dns-servers/test-connection"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "veniam",
    "type": "maxime",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/test-connection';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'veniam',
            'type' => 'maxime',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/test-connection'
payload = {
    "name": "veniam",
    "type": "maxime",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/dns-servers/test-connection

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: veniam

type   string   

Example: maxime

connection_config   object   

List DNS server types

Example request:
curl --request GET \
    --get "/api/admin/dns-servers/types" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-servers/types"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/types'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/dns-servers/types

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List DNS servers

Example request:
curl --request GET \
    --get "/api/admin/dns-servers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"type\": \"voluptate\"
}"
const url = new URL(
    "/api/admin/dns-servers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "voluptate"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => 'voluptate',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers'
payload = {
    "type": "voluptate"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/dns-servers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

type   string  optional  

Example: voluptate

Show DNS server details

Example request:
curl --request GET \
    --get "/api/admin/dns-servers/18" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-servers/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/18';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/18'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/dns-servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

DNS server ID. Example: 18

Add DNS server

Example request:
curl --request POST \
    "/api/admin/dns-servers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"qui\",
    \"type\": \"optio\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/dns-servers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "qui",
    "type": "optio",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'qui',
            'type' => 'optio',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers'
payload = {
    "name": "qui",
    "type": "optio",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/dns-servers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: qui

type   string   

Example: optio

connection_config   object   

Update DNS server

Example request:
curl --request PUT \
    "/api/admin/dns-servers/9" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"vitae\",
    \"type\": \"ea\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/dns-servers/9"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "vitae",
    "type": "ea",
    "connection_config": []
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/9';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'vitae',
            'type' => 'ea',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/9'
payload = {
    "name": "vitae",
    "type": "ea",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/dns-servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

DNS server ID. Example: 9

Body Parameters

name   string   

Example: vitae

type   string   

Example: ea

connection_config   object   

Delete DNS server

Example request:
curl --request DELETE \
    "/api/admin/dns-servers/6" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-servers/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/6'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/dns-servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

DNS server ID. Example: 6

List remote DNS zones

Example request:
curl --request GET \
    --get "/api/admin/dns-servers/6/sync/zones" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-servers/6/sync/zones"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/6/sync/zones';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/6/sync/zones'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/dns-servers/{id}/sync/zones

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

DNS server ID. Example: 6

Import DNS zone

Example request:
curl --request POST \
    "/api/admin/dns-servers/14/sync/import-zone" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"in\",
    \"service_id\": 6
}"
const url = new URL(
    "/api/admin/dns-servers/14/sync/import-zone"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "in",
    "service_id": 6
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-servers/14/sync/import-zone';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'in',
            'service_id' => 6,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-servers/14/sync/import-zone'
payload = {
    "name": "in",
    "service_id": 6
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/dns-servers/{id}/sync/import-zone

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

DNS server ID. Example: 14

Body Parameters

name   string   

Example: in

service_id   integer   

Example: 6

List DNS zone templates

Example request:
curl --request GET \
    --get "/api/admin/dns-zone-templates" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-zone-templates"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-zone-templates';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-zone-templates'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/dns-zone-templates

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Create DNS zone template

Example request:
curl --request POST \
    "/api/admin/dns-zone-template" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"ut\",
    \"records\": [
        \"culpa\"
    ]
}"
const url = new URL(
    "/api/admin/dns-zone-template"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ut",
    "records": [
        "culpa"
    ]
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-zone-template';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'ut',
            'records' => [
                'culpa',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-zone-template'
payload = {
    "name": "ut",
    "records": [
        "culpa"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/dns-zone-template

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: ut

records   string[]  optional  
name   string   

Example: necessitatibus

type   string   

Example: NS

Must be one of:
  • A
  • AAAA
  • CNAME
  • TXT
  • MX
  • NS
ttl   integer   

Example: 1

rdata   string   

Example: laudantium

Update DNS zone template

Example request:
curl --request PUT \
    "/api/admin/dns-zone-template/4" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"qui\",
    \"records\": [
        \"ut\"
    ]
}"
const url = new URL(
    "/api/admin/dns-zone-template/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "qui",
    "records": [
        "ut"
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-zone-template/4';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'qui',
            'records' => [
                'ut',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-zone-template/4'
payload = {
    "name": "qui",
    "records": [
        "ut"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/dns-zone-template/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Zone template ID. Example: 4

Body Parameters

name   string   

Example: qui

records   string[]  optional  
name   string   

Example: hic

type   string   

Example: TXT

Must be one of:
  • A
  • AAAA
  • CNAME
  • TXT
  • MX
  • NS
ttl   integer   

Example: 9

rdata   string   

Example: qui

Delete zone template

Example request:
curl --request DELETE \
    "/api/admin/dns-zone-template/20" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-zone-template/20"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-zone-template/20';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-zone-template/20'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/dns-zone-template/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Zone template ID. Example: 20

List DNS zones

Example request:
curl --request GET \
    --get "/api/admin/dns-zones" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/dns-zones"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/dns-zones';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/dns-zones'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/dns-zones

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Email Servers

Test connection

Example request:
curl --request POST \
    "/api/admin/email-servers/test-connection" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"omnis\",
    \"type\": \"harum\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/email-servers/test-connection"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "omnis",
    "type": "harum",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/test-connection';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'omnis',
            'type' => 'harum',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/test-connection'
payload = {
    "name": "omnis",
    "type": "harum",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/email-servers/test-connection

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: omnis

type   string   

Example: harum

connection_config   object   

List email server types

Example request:
curl --request GET \
    --get "/api/admin/email-servers/types" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/email-servers/types"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/types'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/email-servers/types

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List email servers

Example request:
curl --request GET \
    --get "/api/admin/email-servers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"type\": \"dolores\"
}"
const url = new URL(
    "/api/admin/email-servers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "dolores"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => 'dolores',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers'
payload = {
    "type": "dolores"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/email-servers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

type   string  optional  

Example: dolores

Show email server details

Example request:
curl --request GET \
    --get "/api/admin/email-servers/in" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/email-servers/in"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/in';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/in'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/email-servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the email server. Example: in

Add email server

Example request:
curl --request POST \
    "/api/admin/email-servers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"provident\",
    \"type\": \"unde\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/email-servers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "provident",
    "type": "unde",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'provident',
            'type' => 'unde',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers'
payload = {
    "name": "provident",
    "type": "unde",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/email-servers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: provident

type   string   

Example: unde

connection_config   object   

Update email server

Example request:
curl --request PUT \
    "/api/admin/email-servers/7" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"est\",
    \"type\": \"sapiente\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/email-servers/7"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "est",
    "type": "sapiente",
    "connection_config": []
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/7';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'est',
            'type' => 'sapiente',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/7'
payload = {
    "name": "est",
    "type": "sapiente",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/email-servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Email server ID. Example: 7

Body Parameters

name   string   

Example: est

type   string   

Example: sapiente

connection_config   object   

Delete email server

Example request:
curl --request DELETE \
    "/api/admin/email-servers/18" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/email-servers/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/18';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/18'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/email-servers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Email server ID. Example: 18

List remote email domains

Example request:
curl --request GET \
    --get "/api/admin/email-servers/et/sync/domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/email-servers/et/sync/domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/et/sync/domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/et/sync/domains'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/email-servers/{id}/sync/domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the email server. Example: et

Import email domain

Example request:
curl --request POST \
    "/api/admin/email-servers/id/sync/import-domain" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"illo\",
    \"service_id\": 11
}"
const url = new URL(
    "/api/admin/email-servers/id/sync/import-domain"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "illo",
    "service_id": 11
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/email-servers/id/sync/import-domain';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'illo',
            'service_id' => 11,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/email-servers/id/sync/import-domain'
payload = {
    "name": "illo",
    "service_id": 11
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/email-servers/{id}/sync/import-domain

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the email server. Example: id

Body Parameters

name   string   

Example: illo

service_id   integer   

Example: 11

Remote Backups

List remote backup types

Example request:
curl --request GET \
    --get "/api/admin/remote-backups/types" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/remote-backups/types"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/remote-backups/types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/remote-backups/types'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/remote-backups/types

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Test connection

Example request:
curl --request POST \
    "/api/admin/remote-backups/test-connection" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"voluptatem\",
    \"type\": \"qui\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/remote-backups/test-connection"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "voluptatem",
    "type": "qui",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/remote-backups/test-connection';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'voluptatem',
            'type' => 'qui',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/remote-backups/test-connection'
payload = {
    "name": "voluptatem",
    "type": "qui",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/remote-backups/test-connection

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: voluptatem

type   string   

Example: qui

connection_config   object   

List remote backup connections

Example request:
curl --request GET \
    --get "/api/admin/remote-backups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/remote-backups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/remote-backups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/remote-backups'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/remote-backups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Add remote backup connection

Example request:
curl --request POST \
    "/api/admin/remote-backups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"repudiandae\",
    \"type\": \"et\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/remote-backups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "repudiandae",
    "type": "et",
    "connection_config": []
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/remote-backups';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'repudiandae',
            'type' => 'et',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/remote-backups'
payload = {
    "name": "repudiandae",
    "type": "et",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/remote-backups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: repudiandae

type   string   

Example: et

connection_config   object   

Update remote backup connection

Example request:
curl --request PUT \
    "/api/admin/remote-backups/14" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"enim\",
    \"type\": \"dolores\",
    \"connection_config\": []
}"
const url = new URL(
    "/api/admin/remote-backups/14"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "enim",
    "type": "dolores",
    "connection_config": []
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/remote-backups/14';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'enim',
            'type' => 'dolores',
            'connection_config' => [],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/remote-backups/14'
payload = {
    "name": "enim",
    "type": "dolores",
    "connection_config": []
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/remote-backups/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Remote backup connection ID. Example: 14

Body Parameters

name   string   

Example: enim

type   string   

Example: dolores

connection_config   object   

Delete remote backup connection

Example request:
curl --request DELETE \
    "/api/admin/remote-backups/4" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/remote-backups/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/remote-backups/4';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/remote-backups/4'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/remote-backups/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Remote backup connection ID. Example: 4

List backup containers

Example request:
curl --request GET \
    --get "/api/admin/backup-containers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/backup-containers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/backup-containers';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/backup-containers'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/backup-containers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Create backup container

Example request:
curl --request POST \
    "/api/admin/backup-containers" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"remote_backup_id\": 12,
    \"name\": \"temporibus\",
    \"location\": \"cum\",
    \"is_local_storage\": true,
    \"max_size_backups_per_site\": 12,
    \"max_number_backups_per_site\": 7,
    \"backup_type\": \"full\"
}"
const url = new URL(
    "/api/admin/backup-containers"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remote_backup_id": 12,
    "name": "temporibus",
    "location": "cum",
    "is_local_storage": true,
    "max_size_backups_per_site": 12,
    "max_number_backups_per_site": 7,
    "backup_type": "full"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/backup-containers';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'remote_backup_id' => 12,
            'name' => 'temporibus',
            'location' => 'cum',
            'is_local_storage' => true,
            'max_size_backups_per_site' => 12,
            'max_number_backups_per_site' => 7,
            'backup_type' => 'full',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/backup-containers'
payload = {
    "remote_backup_id": 12,
    "name": "temporibus",
    "location": "cum",
    "is_local_storage": true,
    "max_size_backups_per_site": 12,
    "max_number_backups_per_site": 7,
    "backup_type": "full"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/backup-containers

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

remote_backup_id   integer   

Example: 12

name   string   

Example: temporibus

location   string   

Example: cum

is_local_storage   boolean   

Example: true

max_size_backups_per_site   integer   

Example: 12

max_number_backups_per_site   integer   

Example: 7

backup_type   string   

Example: full

Must be one of:
  • full
  • incremental
backup_type_rules   object  optional  
rules   object  optional  

Update backup container

Example request:
curl --request PUT \
    "/api/admin/backup-containers/10" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"remote_backup_id\": 7,
    \"name\": \"delectus\",
    \"location\": \"incidunt\",
    \"is_local_storage\": true,
    \"max_size_backups_per_site\": 15,
    \"max_number_backups_per_site\": 16,
    \"backup_type\": \"incremental\"
}"
const url = new URL(
    "/api/admin/backup-containers/10"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remote_backup_id": 7,
    "name": "delectus",
    "location": "incidunt",
    "is_local_storage": true,
    "max_size_backups_per_site": 15,
    "max_number_backups_per_site": 16,
    "backup_type": "incremental"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/backup-containers/10';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'remote_backup_id' => 7,
            'name' => 'delectus',
            'location' => 'incidunt',
            'is_local_storage' => true,
            'max_size_backups_per_site' => 15,
            'max_number_backups_per_site' => 16,
            'backup_type' => 'incremental',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/backup-containers/10'
payload = {
    "remote_backup_id": 7,
    "name": "delectus",
    "location": "incidunt",
    "is_local_storage": true,
    "max_size_backups_per_site": 15,
    "max_number_backups_per_site": 16,
    "backup_type": "incremental"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/backup-containers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Backup container ID. Example: 10

Body Parameters

remote_backup_id   integer   

Example: 7

name   string   

Example: delectus

location   string   

Example: incidunt

is_local_storage   boolean   

Example: true

max_size_backups_per_site   integer   

Example: 15

max_number_backups_per_site   integer   

Example: 16

backup_type   string   

Example: incremental

Must be one of:
  • full
  • incremental
backup_type_rules   object  optional  
rules   object  optional  

Delete backup container ID

Example request:
curl --request DELETE \
    "/api/admin/backup-containers/8" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/backup-containers/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/backup-containers/8';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/backup-containers/8'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/backup-containers/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Backup container ID. Example: 8

Update backup container rules

Example request:
curl --request PUT \
    "/api/admin/backup-containers/18/rules" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"*\": {
        \"type\": \"client\",
        \"values\": [
            18
        ]
    }
}"
const url = new URL(
    "/api/admin/backup-containers/18/rules"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "*": {
        "type": "client",
        "values": [
            18
        ]
    }
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/backup-containers/18/rules';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            '*' => [
                'type' => 'client',
                'values' => [
                    18,
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/backup-containers/18/rules'
payload = {
    "*": {
        "type": "client",
        "values": [
            18
        ]
    }
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/backup-containers/{id}/rules

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Backup container ID. Example: 18

Body Parameters

*   object   
type   string   

Example: client

Must be one of:
  • instance
  • service
  • client
  • plan
  • server
  • server_group
values   integer[]   

List backup logs

Example request:
curl --request GET \
    --get "/api/admin/backup-logs" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"search_term\": \"quo\",
    \"plan_id\": 9,
    \"server_id\": 3,
    \"instance_id\": 6,
    \"container_id\": 12,
    \"remote_backup_id\": 14
}"
const url = new URL(
    "/api/admin/backup-logs"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "search_term": "quo",
    "plan_id": 9,
    "server_id": 3,
    "instance_id": 6,
    "container_id": 12,
    "remote_backup_id": 14
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/backup-logs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'search_term' => 'quo',
            'plan_id' => 9,
            'server_id' => 3,
            'instance_id' => 6,
            'container_id' => 12,
            'remote_backup_id' => 14,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/backup-logs'
payload = {
    "search_term": "quo",
    "plan_id": 9,
    "server_id": 3,
    "instance_id": 6,
    "container_id": 12,
    "remote_backup_id": 14
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/backup-logs

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

search_term   string  optional  

Example: quo

plan_id   integer  optional  

Example: 9

server_id   integer  optional  

Example: 3

instance_id   integer  optional  

Example: 6

container_id   integer  optional  

Example: 12

remote_backup_id   integer  optional  

Example: 14

Plans

List plans

Example request:
curl --request GET \
    --get "/api/admin/plans" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/plans"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/plans';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/plans'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/plans

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Create plan

Example request:
curl --request POST \
    "/api/admin/plans" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"error\",
    \"application_limit\": 16,
    \"server_type\": \"reiciendis\",
    \"server_group_id\": 6,
    \"server_assign_rule\": \"random\",
    \"server_id\": 10,
    \"remote_suspend\": false,
    \"dns_server_internal\": false,
    \"dns_server_type\": \"sed\",
    \"dns_server_id\": 19,
    \"dns_zone_template_id\": 19,
    \"email_server_internal\": false,
    \"email_server_type\": \"necessitatibus\",
    \"email_server_id\": 5,
    \"scan_interval\": 15,
    \"is_automatic_backups_enabled\": false,
    \"is_automatic_backups_editable\": false,
    \"automatic_backups_frequency\": \"daily\"
}"
const url = new URL(
    "/api/admin/plans"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "error",
    "application_limit": 16,
    "server_type": "reiciendis",
    "server_group_id": 6,
    "server_assign_rule": "random",
    "server_id": 10,
    "remote_suspend": false,
    "dns_server_internal": false,
    "dns_server_type": "sed",
    "dns_server_id": 19,
    "dns_zone_template_id": 19,
    "email_server_internal": false,
    "email_server_type": "necessitatibus",
    "email_server_id": 5,
    "scan_interval": 15,
    "is_automatic_backups_enabled": false,
    "is_automatic_backups_editable": false,
    "automatic_backups_frequency": "daily"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/plans';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'error',
            'application_limit' => 16,
            'server_type' => 'reiciendis',
            'server_group_id' => 6,
            'server_assign_rule' => 'random',
            'server_id' => 10,
            'remote_suspend' => false,
            'dns_server_internal' => false,
            'dns_server_type' => 'sed',
            'dns_server_id' => 19,
            'dns_zone_template_id' => 19,
            'email_server_internal' => false,
            'email_server_type' => 'necessitatibus',
            'email_server_id' => 5,
            'scan_interval' => 15,
            'is_automatic_backups_enabled' => false,
            'is_automatic_backups_editable' => false,
            'automatic_backups_frequency' => 'daily',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/plans'
payload = {
    "name": "error",
    "application_limit": 16,
    "server_type": "reiciendis",
    "server_group_id": 6,
    "server_assign_rule": "random",
    "server_id": 10,
    "remote_suspend": false,
    "dns_server_internal": false,
    "dns_server_type": "sed",
    "dns_server_id": 19,
    "dns_zone_template_id": 19,
    "email_server_internal": false,
    "email_server_type": "necessitatibus",
    "email_server_id": 5,
    "scan_interval": 15,
    "is_automatic_backups_enabled": false,
    "is_automatic_backups_editable": false,
    "automatic_backups_frequency": "daily"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/plans

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: error

application_limit   integer   

Example: 16

server_type   string   

Example: reiciendis

server_group_id   integer  optional  

Example: 6

server_assign_rule   string  optional  

Example: random

Must be one of:
  • random
  • least_accounts
  • specific_server
server_id   integer  optional  

Example: 10

account_config   object  optional  
remote_suspend   boolean  optional  

Example: false

dns_server_internal   boolean  optional  

Example: false

dns_server_type   string  optional  

Example: sed

dns_server_id   integer  optional  

Example: 19

dns_account_config   object  optional  
dns_zone_template_id   integer  optional  

Example: 19

email_server_internal   boolean  optional  

Example: false

email_server_type   string  optional  

Example: necessitatibus

email_server_id   integer  optional  

Example: 5

email_account_config   object  optional  
config   object  optional  
packages   object  optional  
automatic_install_plugins   object  optional  
automatic_install_themes   object  optional  
blacklist_plugins   object  optional  
delete_blacklisted_plugins   object  optional  
delete_blacklisted_themes   object  optional  
scan_interval   integer  optional  

Example: 15

is_automatic_backups_enabled   boolean  optional  

Example: false

is_automatic_backups_editable   boolean  optional  

Example: false

automatic_backups_frequency   string  optional  

Example: daily

Must be one of:
  • daily
  • weekly
  • monthly

Show plan details

Example request:
curl --request GET \
    --get "/api/admin/plans/7" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/plans/7"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/plans/7';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/plans/7'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/plans/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Plan ID. Example: 7

Update plan

Example request:
curl --request PUT \
    "/api/admin/plans/2" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"doloremque\",
    \"application_limit\": 10,
    \"server_type\": \"nam\",
    \"server_group_id\": 4,
    \"server_assign_rule\": \"random\",
    \"server_id\": 2,
    \"remote_suspend\": false,
    \"dns_server_internal\": true,
    \"dns_server_type\": \"sit\",
    \"dns_server_id\": 15,
    \"dns_zone_template_id\": 10,
    \"email_server_internal\": false,
    \"email_server_type\": \"magni\",
    \"email_server_id\": 9,
    \"scan_interval\": 13,
    \"is_automatic_backups_enabled\": true,
    \"is_automatic_backups_editable\": false,
    \"automatic_backups_frequency\": \"weekly\"
}"
const url = new URL(
    "/api/admin/plans/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "doloremque",
    "application_limit": 10,
    "server_type": "nam",
    "server_group_id": 4,
    "server_assign_rule": "random",
    "server_id": 2,
    "remote_suspend": false,
    "dns_server_internal": true,
    "dns_server_type": "sit",
    "dns_server_id": 15,
    "dns_zone_template_id": 10,
    "email_server_internal": false,
    "email_server_type": "magni",
    "email_server_id": 9,
    "scan_interval": 13,
    "is_automatic_backups_enabled": true,
    "is_automatic_backups_editable": false,
    "automatic_backups_frequency": "weekly"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/plans/2';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'doloremque',
            'application_limit' => 10,
            'server_type' => 'nam',
            'server_group_id' => 4,
            'server_assign_rule' => 'random',
            'server_id' => 2,
            'remote_suspend' => false,
            'dns_server_internal' => true,
            'dns_server_type' => 'sit',
            'dns_server_id' => 15,
            'dns_zone_template_id' => 10,
            'email_server_internal' => false,
            'email_server_type' => 'magni',
            'email_server_id' => 9,
            'scan_interval' => 13,
            'is_automatic_backups_enabled' => true,
            'is_automatic_backups_editable' => false,
            'automatic_backups_frequency' => 'weekly',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/plans/2'
payload = {
    "name": "doloremque",
    "application_limit": 10,
    "server_type": "nam",
    "server_group_id": 4,
    "server_assign_rule": "random",
    "server_id": 2,
    "remote_suspend": false,
    "dns_server_internal": true,
    "dns_server_type": "sit",
    "dns_server_id": 15,
    "dns_zone_template_id": 10,
    "email_server_internal": false,
    "email_server_type": "magni",
    "email_server_id": 9,
    "scan_interval": 13,
    "is_automatic_backups_enabled": true,
    "is_automatic_backups_editable": false,
    "automatic_backups_frequency": "weekly"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/plans/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Plan ID. Example: 2

Body Parameters

name   string   

Example: doloremque

application_limit   integer   

Example: 10

server_type   string   

Example: nam

server_group_id   integer  optional  

Example: 4

server_assign_rule   string  optional  

Example: random

Must be one of:
  • random
  • least_accounts
  • specific_server
server_id   integer  optional  

Example: 2

account_config   object  optional  
remote_suspend   boolean  optional  

Example: false

dns_server_internal   boolean  optional  

Example: true

dns_server_type   string  optional  

Example: sit

dns_server_id   integer  optional  

Example: 15

dns_account_config   object  optional  
dns_zone_template_id   integer  optional  

Example: 10

email_server_internal   boolean  optional  

Example: false

email_server_type   string  optional  

Example: magni

email_server_id   integer  optional  

Example: 9

email_account_config   object  optional  
config   object  optional  
packages   object  optional  
automatic_install_plugins   object  optional  
automatic_install_themes   object  optional  
blacklist_plugins   object  optional  
delete_blacklisted_plugins   object  optional  
delete_blacklisted_themes   object  optional  
scan_interval   integer  optional  

Example: 13

is_automatic_backups_enabled   boolean  optional  

Example: true

is_automatic_backups_editable   boolean  optional  

Example: false

automatic_backups_frequency   string  optional  

Example: weekly

Must be one of:
  • daily
  • weekly
  • monthly

Delete plan

Example request:
curl --request DELETE \
    "/api/admin/plans/11" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/plans/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/plans/11';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/plans/11'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/plans/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Plan ID. Example: 11

Instances

List instances

Example request:
curl --request GET \
    --get "/api/admin/instances" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"filter\": \"est\",
    \"user_id\": 3,
    \"hosting_account_id\": 7,
    \"plan_id\": 3,
    \"service_id\": 5,
    \"server_id\": 1,
    \"status\": \"nobis\"
}"
const url = new URL(
    "/api/admin/instances"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter": "est",
    "user_id": 3,
    "hosting_account_id": 7,
    "plan_id": 3,
    "service_id": 5,
    "server_id": 1,
    "status": "nobis"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'filter' => 'est',
            'user_id' => 3,
            'hosting_account_id' => 7,
            'plan_id' => 3,
            'service_id' => 5,
            'server_id' => 1,
            'status' => 'nobis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances'
payload = {
    "filter": "est",
    "user_id": 3,
    "hosting_account_id": 7,
    "plan_id": 3,
    "service_id": 5,
    "server_id": 1,
    "status": "nobis"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

filter   string  optional  

Example: est

user_id   integer  optional  

Example: 3

hosting_account_id   integer  optional  

Example: 7

plan_id   integer  optional  

Example: 3

service_id   integer  optional  

Example: 5

server_id   integer  optional  

Example: 1

status   string  optional  

Example: nobis

List failed instances

Example request:
curl --request GET \
    --get "/api/admin/instances/failed" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"filter\": \"voluptatem\",
    \"hosting_account_id\": 18,
    \"plan_id\": 20,
    \"service_id\": 20,
    \"server_id\": 17
}"
const url = new URL(
    "/api/admin/instances/failed"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter": "voluptatem",
    "hosting_account_id": 18,
    "plan_id": 20,
    "service_id": 20,
    "server_id": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/failed';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'filter' => 'voluptatem',
            'hosting_account_id' => 18,
            'plan_id' => 20,
            'service_id' => 20,
            'server_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/failed'
payload = {
    "filter": "voluptatem",
    "hosting_account_id": 18,
    "plan_id": 20,
    "service_id": 20,
    "server_id": 17
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/failed

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

filter   string  optional  

Example: voluptatem

hosting_account_id   integer  optional  

Example: 18

plan_id   integer  optional  

Example: 20

service_id   integer  optional  

Example: 20

server_id   integer  optional  

Example: 17

Show failed instance details

Example request:
curl --request GET \
    --get "/api/admin/instances/failed/6" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/failed/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/failed/6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/failed/6'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/failed/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 6

Delete failed instance

Example request:
curl --request DELETE \
    "/api/admin/instances/failed/6" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/failed/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/failed/6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/failed/6'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/instances/failed/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 6

Retry install failed instance

Example request:
curl --request PUT \
    "/api/admin/instances/failed/14/retry" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/failed/14/retry"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/failed/14/retry';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/failed/14/retry'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/instances/failed/{id}/retry

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 14

List archived instances

Example request:
curl --request GET \
    --get "/api/admin/instances/archived" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"filter\": \"suscipit\",
    \"user_id\": 18,
    \"hosting_account_id\": 15,
    \"plan_id\": 4,
    \"service_id\": 5,
    \"server_id\": 5
}"
const url = new URL(
    "/api/admin/instances/archived"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter": "suscipit",
    "user_id": 18,
    "hosting_account_id": 15,
    "plan_id": 4,
    "service_id": 5,
    "server_id": 5
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/archived';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'filter' => 'suscipit',
            'user_id' => 18,
            'hosting_account_id' => 15,
            'plan_id' => 4,
            'service_id' => 5,
            'server_id' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/archived'
payload = {
    "filter": "suscipit",
    "user_id": 18,
    "hosting_account_id": 15,
    "plan_id": 4,
    "service_id": 5,
    "server_id": 5
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/archived

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

filter   string  optional  

Example: suscipit

user_id   integer  optional  

Example: 18

hosting_account_id   integer  optional  

Example: 15

plan_id   integer  optional  

Example: 4

service_id   integer  optional  

Example: 5

server_id   integer  optional  

Example: 5

Show archived instance details

Example request:
curl --request GET \
    --get "/api/admin/instances/archived/18" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/archived/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/archived/18';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/archived/18'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/archived/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 18

Delete archived instance

Example request:
curl --request DELETE \
    "/api/admin/instances/archived/10/delete" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/archived/10/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/archived/10/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/archived/10/delete'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/instances/archived/{id}/delete

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

Show instance details

Example request:
curl --request GET \
    --get "/api/admin/instances/8" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/8';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/8'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 8

Delete instance

Example request:
curl --request DELETE \
    "/api/admin/instances/3" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"remove_data\": true,
    \"remove_database\": true
}"
const url = new URL(
    "/api/admin/instances/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remove_data": true,
    "remove_database": true
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/3';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'remove_data' => true,
            'remove_database' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/3'
payload = {
    "remove_data": true,
    "remove_database": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Request   

DELETE api/admin/instances/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 3

Body Parameters

remove_data   boolean  optional  

Example: true

remove_database   boolean  optional  

Example: true

Get installed SSL certificate

Example request:
curl --request GET \
    --get "/api/admin/instances/5/installed-ssl-cert" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/5/installed-ssl-cert"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/5/installed-ssl-cert';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/5/installed-ssl-cert'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/{id}/installed-ssl-cert

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 5

List WordPress users

Example request:
curl --request GET \
    --get "/api/admin/instances/12/wordpress/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/instances/12/wordpress/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/12/wordpress/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/12/wordpress/users'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/instances/{id}/wordpress/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 12

Create WordPress SSO URL

Example request:
curl --request POST \
    "/api/admin/instances/9/wordpress/sso-url" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"user\": 14
}"
const url = new URL(
    "/api/admin/instances/9/wordpress/sso-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user": 14
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/instances/9/wordpress/sso-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'user' => 14,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/instances/9/wordpress/sso-url'
payload = {
    "user": 14
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/instances/{id}/wordpress/sso-url

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 9

Body Parameters

user   integer   

Example: 14

Services

List services

Example request:
curl --request GET \
    --get "/api/admin/services" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"search_term\": \"eius\",
    \"user_id\": 6,
    \"plan_id\": 3,
    \"archived\": false
}"
const url = new URL(
    "/api/admin/services"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "search_term": "eius",
    "user_id": 6,
    "plan_id": 3,
    "archived": false
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/services';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'search_term' => 'eius',
            'user_id' => 6,
            'plan_id' => 3,
            'archived' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/services'
payload = {
    "search_term": "eius",
    "user_id": 6,
    "plan_id": 3,
    "archived": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/services

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

search_term   string  optional  

Example: eius

user_id   integer  optional  

Example: 6

plan_id   integer  optional  

Example: 3

archived   boolean  optional  

Example: false

List archived services

Example request:
curl --request GET \
    --get "/api/admin/services/archived" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"search_term\": \"quibusdam\",
    \"user_id\": 17
}"
const url = new URL(
    "/api/admin/services/archived"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "search_term": "quibusdam",
    "user_id": 17
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/services/archived';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'search_term' => 'quibusdam',
            'user_id' => 17,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/services/archived'
payload = {
    "search_term": "quibusdam",
    "user_id": 17
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/services/archived

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

search_term   string  optional  

Example: quibusdam

user_id   integer  optional  

Example: 17

Show service details

Example request:
curl --request GET \
    --get "/api/admin/services/16" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/services/16"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/services/16';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/services/16'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/services/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Service ID. Example: 16

Show archived service details

Example request:
curl --request GET \
    --get "/api/admin/services/4/archived" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/services/4/archived"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/services/4/archived';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/services/4/archived'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/services/{id}/archived

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Service ID. Example: 4

Add package to service

Example request:
curl --request POST \
    "/api/admin/service/20/package" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"package_id\": 8
}"
const url = new URL(
    "/api/admin/service/20/package"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "package_id": 8
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/service/20/package';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'package_id' => 8,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/service/20/package'
payload = {
    "package_id": 8
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/service/{id}/package

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Service ID. Example: 20

Body Parameters

package_id   integer   

Example: 8

Delete package from service

Example request:
curl --request DELETE \
    "/api/admin/service/18/package/culpa" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/service/18/package/culpa"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/service/18/package/culpa';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/service/18/package/culpa'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/service/{id}/package/{packageId}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Service ID. Example: 18

packageId   string   

Example: culpa

Delete service

Example request:
curl --request DELETE \
    "/api/admin/services/1" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/services/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/services/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/services/1'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/services/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Service ID. Example: 1

Delete archived service

Example request:
curl --request DELETE \
    "/api/admin/services/16/delete" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/services/16/delete"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/services/16/delete';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/services/16/delete'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/services/{id}/delete

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Service ID. Example: 16

Hosting Accounts

Show hosting account details

Example request:
curl --request GET \
    --get "/api/admin/hosting-accounts/3" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/hosting-accounts/3"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/hosting-accounts/3';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/hosting-accounts/3'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/hosting-accounts/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting Account ID. Example: 3

List hosting account domains

Example request:
curl --request GET \
    --get "/api/admin/hosting-accounts/17/domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/hosting-accounts/17/domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/hosting-accounts/17/domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/hosting-accounts/17/domains'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/hosting-accounts/{id}/domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting Account ID. Example: 17

List hosting account SSL domains

Example request:
curl --request GET \
    --get "/api/admin/hosting-accounts/3/ssl-domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/hosting-accounts/3/ssl-domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/hosting-accounts/3/ssl-domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/hosting-accounts/3/ssl-domains'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/hosting-accounts/{id}/ssl-domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting Account ID. Example: 3

Show hosting account usage

Example request:
curl --request GET \
    --get "/api/admin/hosting-accounts/20/usage" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/hosting-accounts/20/usage"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/hosting-accounts/20/usage';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/hosting-accounts/20/usage'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/hosting-accounts/{id}/usage

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting Account ID. Example: 20

Reinstall hosting account

Example request:
curl --request PUT \
    "/api/admin/hosting-accounts/10/reinstall" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/hosting-accounts/10/reinstall"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/hosting-accounts/10/reinstall';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/hosting-accounts/10/reinstall'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/hosting-accounts/{id}/reinstall

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting Account ID. Example: 10

Notifications

Get list of notification templates assigned to recipient

Example request:
curl --request GET \
    --get "/api/admin/notification-templates/delectus" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"filter\": \"nostrum\"
}"
const url = new URL(
    "/api/admin/notification-templates/delectus"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "filter": "nostrum"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-templates/delectus';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'filter' => 'nostrum',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-templates/delectus'
payload = {
    "filter": "nostrum"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/notification-templates/{recipient}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

recipient   string   

Example: delectus

Body Parameters

filter   string  optional  

Example: nostrum

Get single notification template to edit

Example request:
curl --request GET \
    --get "/api/admin/notification-template/eius" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notification-template/eius"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-template/eius';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-template/eius'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/notification-template/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the notification template. Example: eius

Update notification template

Example request:
curl --request PUT \
    "/api/admin/notification-template/id/update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"messages\": [
        {
            \"message\": \"ducimus\",
            \"subject\": \"adipisci\"
        }
    ]
}"
const url = new URL(
    "/api/admin/notification-template/id/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "messages": [
        {
            "message": "ducimus",
            "subject": "adipisci"
        }
    ]
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-template/id/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'messages' => [
                [
                    'message' => 'ducimus',
                    'subject' => 'adipisci',
                ],
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-template/id/update'
payload = {
    "messages": [
        {
            "message": "ducimus",
            "subject": "adipisci"
        }
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/notification-template/{id}/update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the notification template. Example: id

Body Parameters

messages   object[]  optional  
message   string  optional  

Example: ducimus

subject   string  optional  

Example: adipisci

Show preview of email

Example request:
curl --request POST \
    "/api/admin/notification-template/preview" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notification-template/preview"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-template/preview';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-template/preview'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/notification-template/preview

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Send test email

Example request:
curl --request GET \
    --get "/api/admin/notification-template/fugiat/test" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notification-template/fugiat/test"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-template/fugiat/test';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-template/fugiat/test'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/notification-template/{id}/test

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the notification template. Example: fugiat

Change notification template status

Example request:
curl --request PUT \
    "/api/admin/notification-template/maiores/status" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"enabled\": false
}"
const url = new URL(
    "/api/admin/notification-template/maiores/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "enabled": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-template/maiores/status';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'enabled' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-template/maiores/status'
payload = {
    "enabled": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/notification-template/{id}/status

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the notification template. Example: maiores

Body Parameters

enabled   boolean   

Example: false

Restore notification message to default

Example request:
curl --request POST \
    "/api/admin/notification-template/corrupti/restore" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notification-template/corrupti/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notification-template/corrupti/restore';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notification-template/corrupti/restore'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/notification-template/{id}/restore

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   string   

The ID of the notification template. Example: corrupti

Show email settings

Example request:
curl --request GET \
    --get "/api/admin/notifications/settings" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notifications/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notifications/settings';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notifications/settings'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/notifications/settings

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Update email settings

Example request:
curl --request PUT \
    "/api/admin/notifications/settings" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notifications/settings"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notifications/settings';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notifications/settings'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/admin/notifications/settings

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Test connection

Example request:
curl --request POST \
    "/api/admin/notifications/test-connection" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/notifications/test-connection"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/notifications/test-connection';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/notifications/test-connection'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/notifications/test-connection

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Admin Groups

List admin group types

Example request:
curl --request GET \
    --get "/api/admin/admin-groups/types" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admin-groups/types"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-groups/types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-groups/types'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/admin-groups/types

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List admin groups

Example request:
curl --request GET \
    --get "/api/admin/admin-groups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admin-groups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-groups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-groups'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/admin-groups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

List admin group permissions and notifications

Example request:
curl --request GET \
    --get "/api/admin/admin-groups/permissions" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admin-groups/permissions"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-groups/permissions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-groups/permissions'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/admin-groups/permissions

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Show admin group details

Example request:
curl --request GET \
    --get "/api/admin/admin-groups/8" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admin-groups/8"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-groups/8';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-groups/8'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/admin-groups/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin Group ID. Example: 8

Create admin group

Example request:
curl --request POST \
    "/api/admin/admin-group" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"accusantium\"
}"
const url = new URL(
    "/api/admin/admin-group"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "accusantium"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-group';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'accusantium',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-group'
payload = {
    "name": "accusantium"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/admin-group

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: accusantium

permissions   object  optional  
notifications   object  optional  

Update admin group

Example request:
curl --request PUT \
    "/api/admin/admin-group/10" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"natus\"
}"
const url = new URL(
    "/api/admin/admin-group/10"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "natus"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-group/10';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'natus',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-group/10'
payload = {
    "name": "natus"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/admin-group/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin Group ID. Example: 10

Body Parameters

name   string   

Example: natus

permissions   object  optional  
notifications   object  optional  

Delete admin group

Example request:
curl --request DELETE \
    "/api/admin/admin-group/18" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/admin-group/18"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/admin-group/18';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/admin-group/18'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/admin-group/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Admin Group ID. Example: 18

Tasks

List tasks

Example request:
curl --request GET \
    --get "/api/admin/tasks" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"search_term\": \"ea\",
    \"date_range\": \"quo\",
    \"filter_types\": \"esse\",
    \"filter_statuses\": \"nobis\"
}"
const url = new URL(
    "/api/admin/tasks"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "search_term": "ea",
    "date_range": "quo",
    "filter_types": "esse",
    "filter_statuses": "nobis"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/tasks';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'search_term' => 'ea',
            'date_range' => 'quo',
            'filter_types' => 'esse',
            'filter_statuses' => 'nobis',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/tasks'
payload = {
    "search_term": "ea",
    "date_range": "quo",
    "filter_types": "esse",
    "filter_statuses": "nobis"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/tasks

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

search_term   string  optional  

Example: ea

date_range   string  optional  

Example: quo

filter_types   string  optional  

Example: esse

filter_statuses   string  optional  

Example: nobis

List running tasks

Example request:
curl --request GET \
    --get "/api/admin/tasks/running" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/tasks/running"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/tasks/running';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/tasks/running'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/tasks/running

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Cancel task

Example request:
curl --request DELETE \
    "/api/admin/tasks/18/cancel" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/tasks/18/cancel"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/tasks/18/cancel';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/tasks/18/cancel'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/tasks/{id}/cancel

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Task ID. Example: 18

Check worker status

Example request:
curl --request GET \
    --get "/api/admin/tasks/worker-status" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/tasks/worker-status"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/tasks/worker-status';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/tasks/worker-status'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/tasks/worker-status

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Check task status

Example request:
curl --request GET \
    --get "/api/admin/tasks/19/status" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/tasks/19/status"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/tasks/19/status';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/tasks/19/status'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/tasks/{id}/status

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Task ID. Example: 19

Retry task

Example request:
curl --request GET \
    --get "/api/admin/tasks/18/retry" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/tasks/18/retry"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/tasks/18/retry';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/tasks/18/retry'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/tasks/{id}/retry

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Task ID. Example: 18

WordPress Plugins and Themes

List theme categories

Example request:
curl --request GET \
    --get "/api/admin/theme-categories" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/theme-categories"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-categories';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-categories'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/theme-categories

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Create theme category

Example request:
curl --request POST \
    "/api/admin/theme-category" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"illo\"
}"
const url = new URL(
    "/api/admin/theme-category"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "illo"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-category';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'illo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-category'
payload = {
    "name": "illo"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/theme-category

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: illo

Delete theme category

Example request:
curl --request DELETE \
    "/api/admin/theme-category/6" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/theme-category/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-category/6';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-category/6'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/theme-category/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Category ID. Example: 6

List themes from category

Example request:
curl --request GET \
    --get "/api/admin/theme-category/20/themes" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/theme-category/20/themes"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-category/20/themes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-category/20/themes'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/theme-category/{id}/themes

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Category ID. Example: 20

Update theme category

Example request:
curl --request PUT \
    "/api/admin/theme-category/2/update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"soluta\"
}"
const url = new URL(
    "/api/admin/theme-category/2/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "soluta"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-category/2/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'soluta',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-category/2/update'
payload = {
    "name": "soluta"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/theme-category/{id}/update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Category ID. Example: 2

Body Parameters

name   string   

Example: soluta

Delete theme from category

Example request:
curl --request DELETE \
    "/api/admin/theme-category/20/delete-theme/odio" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/theme-category/20/delete-theme/odio"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-category/20/delete-theme/odio';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-category/20/delete-theme/odio'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/theme-category/{id}/delete-theme/{theme_id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Category ID. Example: 20

theme_id   string   

The ID of the theme. Example: odio

Add theme to category

Example request:
curl --request POST \
    "/api/admin/theme-category/18/add-theme" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"consectetur\",
    \"slug\": \"dhl-iyr_g\",
    \"description\": \"Nihil asperiores voluptatum deleniti est perspiciatis sed qui.\",
    \"screenshot_url\": \"http:\\/\\/wisozk.org\\/quasi-id-ab-tenetur\",
    \"preview_url\": \"http:\\/\\/www.reilly.com\\/consequuntur-consequatur-accusantium-odio-illum-exercitationem-dolor\",
    \"homepage\": \"nihil\"
}"
const url = new URL(
    "/api/admin/theme-category/18/add-theme"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "consectetur",
    "slug": "dhl-iyr_g",
    "description": "Nihil asperiores voluptatum deleniti est perspiciatis sed qui.",
    "screenshot_url": "http:\/\/wisozk.org\/quasi-id-ab-tenetur",
    "preview_url": "http:\/\/www.reilly.com\/consequuntur-consequatur-accusantium-odio-illum-exercitationem-dolor",
    "homepage": "nihil"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/theme-category/18/add-theme';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'consectetur',
            'slug' => 'dhl-iyr_g',
            'description' => 'Nihil asperiores voluptatum deleniti est perspiciatis sed qui.',
            'screenshot_url' => 'http://wisozk.org/quasi-id-ab-tenetur',
            'preview_url' => 'http://www.reilly.com/consequuntur-consequatur-accusantium-odio-illum-exercitationem-dolor',
            'homepage' => 'nihil',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/theme-category/18/add-theme'
payload = {
    "name": "consectetur",
    "slug": "dhl-iyr_g",
    "description": "Nihil asperiores voluptatum deleniti est perspiciatis sed qui.",
    "screenshot_url": "http:\/\/wisozk.org\/quasi-id-ab-tenetur",
    "preview_url": "http:\/\/www.reilly.com\/consequuntur-consequatur-accusantium-odio-illum-exercitationem-dolor",
    "homepage": "nihil"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/theme-category/{id}/add-theme

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Category ID. Example: 18

Body Parameters

name   string   

Example: consectetur

slug   string   

Must contain only letters, numbers, dashes and underscores. Example: dhl-iyr_g

description   string   

Example: Nihil asperiores voluptatum deleniti est perspiciatis sed qui.

screenshot_url   string  optional  

Example: http://wisozk.org/quasi-id-ab-tenetur

preview_url   string  optional  

Example: http://www.reilly.com/consequuntur-consequatur-accusantium-odio-illum-exercitationem-dolor

homepage   string  optional  

Example: nihil

List packages

Example request:
curl --request GET \
    --get "/api/admin/packages" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/packages"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/packages';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/packages'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/packages

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Create package

Example request:
curl --request POST \
    "/api/admin/package" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"sunt\",
    \"plugin_automation\": \"nostrum\",
    \"theme_automation\": \"mollitia\"
}"
const url = new URL(
    "/api/admin/package"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "sunt",
    "plugin_automation": "nostrum",
    "theme_automation": "mollitia"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/package';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'sunt',
            'plugin_automation' => 'nostrum',
            'theme_automation' => 'mollitia',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/package'
payload = {
    "name": "sunt",
    "plugin_automation": "nostrum",
    "theme_automation": "mollitia"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/admin/package

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

name   string   

Example: sunt

plugin_automation   string  optional  

Example: nostrum

theme_automation   string  optional  

Example: mollitia

plugins   object  optional  
themes   object  optional  

Show package details

Example request:
curl --request GET \
    --get "/api/admin/package/14" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/package/14"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/package/14';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/package/14'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/admin/package/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Package ID. Example: 14

Update package

Example request:
curl --request PUT \
    "/api/admin/package/11" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"facilis\",
    \"plugin_automation\": \"explicabo\",
    \"theme_automation\": \"est\"
}"
const url = new URL(
    "/api/admin/package/11"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "facilis",
    "plugin_automation": "explicabo",
    "theme_automation": "est"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/package/11';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'facilis',
            'plugin_automation' => 'explicabo',
            'theme_automation' => 'est',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/package/11'
payload = {
    "name": "facilis",
    "plugin_automation": "explicabo",
    "theme_automation": "est"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/admin/package/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Package ID. Example: 11

Body Parameters

name   string   

Example: facilis

plugin_automation   string  optional  

Example: explicabo

theme_automation   string  optional  

Example: est

plugins   object  optional  
themes   object  optional  

Delete package

Example request:
curl --request DELETE \
    "/api/admin/package/14" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/package/14"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/package/14';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/package/14'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/admin/package/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Package ID. Example: 14

Force install package

Example request:
curl --request POST \
    "/api/admin/package/7/force-install" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/admin/package/7/force-install"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/admin/package/7/force-install';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/admin/package/7/force-install'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/admin/package/{id}/force-install

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Package ID. Example: 7

User Endpoints

Instances

List instances

Example request:
curl --request GET \
    --get "/api/instances" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"labels\": \"rerum\",
    \"server_account_id\": 19
}"
const url = new URL(
    "/api/instances"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "labels": "rerum",
    "server_account_id": 19
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'labels' => 'rerum',
            'server_account_id' => 19,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances'
payload = {
    "labels": "rerum",
    "server_account_id": 19
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

labels   string  optional  

Example: rerum

server_account_id   integer  optional  

Example: 19

Create instance

Example request:
curl --request POST \
    "/api/instances/install" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"service_id\": 18,
    \"install_method\": \"standard\",
    \"install_type\": \"clone\",
    \"template_id\": 10,
    \"clone_instance_id\": 3,
    \"version\": \"modi\",
    \"name\": \"ea\",
    \"protocol\": \"http:\\/\\/\",
    \"domain\": \"example.com\",
    \"dir\": \"odio\",
    \"language\": \"quis\",
    \"db_name\": \"ducimus\",
    \"db_prefix\": \"atque\",
    \"admin_username\": \"sit\",
    \"admin_email\": \"[email protected]\",
    \"admin_password\": \"nobis\",
    \"theme\": \"et\"
}"
const url = new URL(
    "/api/instances/install"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "service_id": 18,
    "install_method": "standard",
    "install_type": "clone",
    "template_id": 10,
    "clone_instance_id": 3,
    "version": "modi",
    "name": "ea",
    "protocol": "http:\/\/",
    "domain": "example.com",
    "dir": "odio",
    "language": "quis",
    "db_name": "ducimus",
    "db_prefix": "atque",
    "admin_username": "sit",
    "admin_email": "[email protected]",
    "admin_password": "nobis",
    "theme": "et"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/install';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'service_id' => 18,
            'install_method' => 'standard',
            'install_type' => 'clone',
            'template_id' => 10,
            'clone_instance_id' => 3,
            'version' => 'modi',
            'name' => 'ea',
            'protocol' => 'http://',
            'domain' => 'example.com',
            'dir' => 'odio',
            'language' => 'quis',
            'db_name' => 'ducimus',
            'db_prefix' => 'atque',
            'admin_username' => 'sit',
            'admin_email' => '[email protected]',
            'admin_password' => 'nobis',
            'theme' => 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/install'
payload = {
    "service_id": 18,
    "install_method": "standard",
    "install_type": "clone",
    "template_id": 10,
    "clone_instance_id": 3,
    "version": "modi",
    "name": "ea",
    "protocol": "http:\/\/",
    "domain": "example.com",
    "dir": "odio",
    "language": "quis",
    "db_name": "ducimus",
    "db_prefix": "atque",
    "admin_username": "sit",
    "admin_email": "[email protected]",
    "admin_password": "nobis",
    "theme": "et"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/install

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

service_id   integer   

Example: 18

install_method   string  optional  

Example: standard

Must be one of:
  • quick
  • standard
install_type   string  optional  

Example: clone

Must be one of:
  • clean
  • from_template
  • clone
template_id   integer  optional  

Example: 10

clone_instance_id   integer  optional  

Example: 3

version   string  optional  

Example: modi

name   string   

Example: ea

protocol   string  optional  

Example: http://

Must be one of:
  • https://
  • http://
domain   string  optional  

Domain name. Example: example.com

dir   string  optional  

Example: odio

language   string  optional  

Example: quis

db_name   string  optional  

Example: ducimus

db_prefix   string  optional  

Example: atque

admin_username   string  optional  

Example: sit

admin_email   string  optional  

Example: [email protected]

admin_password   string  optional  

Example: nobis

theme   string  optional  

Example: et

Show instance details

Example request:
curl --request GET \
    --get "/api/instances/2" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/2';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/2'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 2

Retry create instance

Example request:
curl --request PUT \
    "/api/instances/19/retry-install" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"install_type\": \"clone\",
    \"version\": \"dolorem\",
    \"template_id\": 5,
    \"clone_instance_id\": 16,
    \"name\": \"nam\",
    \"protocol\": \"http:\\/\\/\",
    \"domain\": \"example.com\",
    \"dir\": \"blanditiis\",
    \"language\": \"minima\",
    \"db_name\": \"consequatur\",
    \"db_prefix\": \"quos\",
    \"admin_username\": \"cupiditate\",
    \"admin_email\": \"[email protected]\",
    \"admin_password\": \"voluptatem\",
    \"theme\": \"sed\"
}"
const url = new URL(
    "/api/instances/19/retry-install"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "install_type": "clone",
    "version": "dolorem",
    "template_id": 5,
    "clone_instance_id": 16,
    "name": "nam",
    "protocol": "http:\/\/",
    "domain": "example.com",
    "dir": "blanditiis",
    "language": "minima",
    "db_name": "consequatur",
    "db_prefix": "quos",
    "admin_username": "cupiditate",
    "admin_email": "[email protected]",
    "admin_password": "voluptatem",
    "theme": "sed"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/19/retry-install';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'install_type' => 'clone',
            'version' => 'dolorem',
            'template_id' => 5,
            'clone_instance_id' => 16,
            'name' => 'nam',
            'protocol' => 'http://',
            'domain' => 'example.com',
            'dir' => 'blanditiis',
            'language' => 'minima',
            'db_name' => 'consequatur',
            'db_prefix' => 'quos',
            'admin_username' => 'cupiditate',
            'admin_email' => '[email protected]',
            'admin_password' => 'voluptatem',
            'theme' => 'sed',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/19/retry-install'
payload = {
    "install_type": "clone",
    "version": "dolorem",
    "template_id": 5,
    "clone_instance_id": 16,
    "name": "nam",
    "protocol": "http:\/\/",
    "domain": "example.com",
    "dir": "blanditiis",
    "language": "minima",
    "db_name": "consequatur",
    "db_prefix": "quos",
    "admin_username": "cupiditate",
    "admin_email": "[email protected]",
    "admin_password": "voluptatem",
    "theme": "sed"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/retry-install

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 19

Body Parameters

install_type   string  optional  

Example: clone

Must be one of:
  • clean
  • from_template
  • clone
version   string  optional  

Example: dolorem

template_id   integer  optional  

Example: 5

clone_instance_id   integer  optional  

Example: 16

name   string   

Example: nam

protocol   string  optional  

Example: http://

Must be one of:
  • https://
  • http://
domain   string  optional  

Domain name. Example: example.com

dir   string  optional  

Example: blanditiis

language   string  optional  

Example: minima

db_name   string  optional  

Example: consequatur

db_prefix   string  optional  

Example: quos

admin_username   string  optional  

Example: cupiditate

admin_email   string  optional  

Example: [email protected]

admin_password   string  optional  

Example: voluptatem

theme   string  optional  

Example: sed

Get website screenshot

Example request:
curl --request GET \
    --get "/api/instances/13/screenshot" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/13/screenshot"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/13/screenshot';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/13/screenshot'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/screenshot

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 13

Assign label to instance

Example request:
curl --request POST \
    "/api/instances/6/labels" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"My Label\"
}"
const url = new URL(
    "/api/instances/6/labels"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "My Label"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/6/labels';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => 'My Label',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/6/labels'
payload = {
    "title": "My Label"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/labels

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 6

Body Parameters

title   string   

Label name. Example: My Label

Unassign label from instance

Example request:
curl --request DELETE \
    "/api/instances/12/labels" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"My Label\"
}"
const url = new URL(
    "/api/instances/12/labels"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "My Label"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/12/labels';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => 'My Label',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/12/labels'
payload = {
    "title": "My Label"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Request   

DELETE api/instances/{id}/labels

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 12

Body Parameters

title   string   

Label name. Example: My Label

Create staging instance

Example request:
curl --request POST \
    "/api/instances/11/staging" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"protocol\": \"velit\",
    \"domain\": \"example.com\",
    \"dir\": \"uxf-knt_g\"
}"
const url = new URL(
    "/api/instances/11/staging"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "protocol": "velit",
    "domain": "example.com",
    "dir": "uxf-knt_g"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/11/staging';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'protocol' => 'velit',
            'domain' => 'example.com',
            'dir' => 'uxf-knt_g',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/11/staging'
payload = {
    "protocol": "velit",
    "domain": "example.com",
    "dir": "uxf-knt_g"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/staging

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 11

Body Parameters

protocol   string   

Example: velit

domain   string   

Domain name. Example: example.com

dir   string  optional  

Must contain only letters, numbers, dashes and underscores. Example: uxf-knt_g

Retry create staging instance

Example request:
curl --request PUT \
    "/api/instances/1/retry-staging/sapiente" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"protocol\": \"et\",
    \"domain\": \"example.com\",
    \"dir\": \"wve-jgp_c\"
}"
const url = new URL(
    "/api/instances/1/retry-staging/sapiente"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "protocol": "et",
    "domain": "example.com",
    "dir": "wve-jgp_c"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/1/retry-staging/sapiente';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'protocol' => 'et',
            'domain' => 'example.com',
            'dir' => 'wve-jgp_c',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/1/retry-staging/sapiente'
payload = {
    "protocol": "et",
    "domain": "example.com",
    "dir": "wve-jgp_c"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/retry-staging/{stagingId}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 1

stagingId   string   

Example: sapiente

Body Parameters

protocol   string   

Example: et

domain   string   

Domain name. Example: example.com

dir   string  optional  

Must contain only letters, numbers, dashes and underscores. Example: wve-jgp_c

Push staging instance to live

Example request:
curl --request PUT \
    "/api/instances/7/push-to-live" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/7/push-to-live"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/push-to-live';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/push-to-live'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/push-to-live

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

Show staging changes

Example request:
curl --request GET \
    --get "/api/instances/8/push-to-live" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/8/push-to-live"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/8/push-to-live';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/8/push-to-live'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/push-to-live

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 8

List instance logs

Example request:
curl --request GET \
    --get "/api/instances/15/logs" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/15/logs"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/15/logs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/15/logs'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/logs

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 15

Get bandwidth usage

Example request:
curl --request GET \
    --get "/api/instances/9/reporting/bandwidth/last-week" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/9/reporting/bandwidth/last-week"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/9/reporting/bandwidth/last-week';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/9/reporting/bandwidth/last-week'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/reporting/bandwidth/{period}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 9

period   string  optional  

Example: last-week

Must be one of:
  • last-week
  • last-month
  • last-year

Get visitors statistics

Example request:
curl --request GET \
    --get "/api/instances/20/reporting/visitors/last-month" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/20/reporting/visitors/last-month"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/20/reporting/visitors/last-month';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/20/reporting/visitors/last-month'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/reporting/visitors/{period}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 20

period   string  optional  

Example: last-month

Must be one of:
  • last-week
  • last-month
  • last-year

Get visitors details

Example request:
curl --request GET \
    --get "/api/instances/20/reporting/visits-by-page/last-week" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/20/reporting/visits-by-page/last-week"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/20/reporting/visits-by-page/last-week';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/20/reporting/visits-by-page/last-week'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/reporting/{type}/{period}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 20

type   string  optional  

Example: visits-by-page

Must be one of:
  • visits-by-page
  • visitors-by-country
  • visitors-by-continent
  • visitors-by-region
  • visitors-by-referrer'
  • visitors-by-device
  • visitors-by-device-brand
  • visitors-by-device-os
  • visitors-by-device-browser
period   string  optional  

Example: last-week

Must be one of:
  • last-week
  • last-month
  • last-year

Delete instance

Example request:
curl --request DELETE \
    "/api/instances/1" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"remove_data\": false,
    \"remove_database\": false
}"
const url = new URL(
    "/api/instances/1"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "remove_data": false,
    "remove_database": false
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/1';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'remove_data' => false,
            'remove_database' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/1'
payload = {
    "remove_data": false,
    "remove_database": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Request   

DELETE api/instances/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 1

Body Parameters

remove_data   boolean  optional  

Example: false

remove_database   boolean  optional  

Example: false

Show installation details

Example request:
curl --request GET \
    --get "/api/instances/15/installation-details" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/15/installation-details"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/15/installation-details';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/15/installation-details'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/installation-details

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 15

Show website details

Example request:
curl --request GET \
    --get "/api/instances/5/website-details" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/5/website-details"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/5/website-details';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/5/website-details'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/website-details

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 5

List labels

Example request:
curl --request GET \
    --get "/api/labels" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/labels"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/labels';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/labels'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/labels

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Create label

Example request:
curl --request POST \
    "/api/labels" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"tzotsmhrsuzbrbxkylq\",
    \"color\": \"#(0559cb\"
}"
const url = new URL(
    "/api/labels"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "tzotsmhrsuzbrbxkylq",
    "color": "#(0559cb"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/labels';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => 'tzotsmhrsuzbrbxkylq',
            'color' => '#(0559cb',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/labels'
payload = {
    "title": "tzotsmhrsuzbrbxkylq",
    "color": "#(0559cb"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/labels

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

title   string   

Must not be greater than 255 characters. Example: tzotsmhrsuzbrbxkylq

color   string   

Must match the regex /^#([A-Fa-f0-9]{6}. Example: #(0559cb

Delete label

Example request:
curl --request DELETE \
    "/api/labels" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"title\": \"qxcxijfrfhramxkgrhsbccl\"
}"
const url = new URL(
    "/api/labels"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "title": "qxcxijfrfhramxkgrhsbccl"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/labels';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'title' => 'qxcxijfrfhramxkgrhsbccl',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/labels'
payload = {
    "title": "qxcxijfrfhramxkgrhsbccl"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Request   

DELETE api/labels

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

title   string   

Must not be greater than 255 characters. Example: qxcxijfrfhramxkgrhsbccl

Other

List available WordPress versions

Example request:
curl --request GET \
    --get "/api/instances/wordpress-versions" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/wordpress-versions"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/wordpress-versions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/wordpress-versions'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/wordpress-versions

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

WordPress

Retry WordPress import

Example request:
curl --request PUT \
    "/api/instances/2/import/quick-retry" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/2/import/quick-retry"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/2/import/quick-retry';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/2/import/quick-retry'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/import/quick-retry

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 2

Create WordPress SSO URL

Example request:
curl --request POST \
    "/api/instances/2/sso-url" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"user\": 10
}"
const url = new URL(
    "/api/instances/2/sso-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/2/sso-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'user' => 10,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/2/sso-url'
payload = {
    "user": 10
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/sso-url

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 2

Body Parameters

user   integer   

Example: 10

List available updates

Example request:
curl --request GET \
    --get "/api/instances/16/wordpress/updates" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/16/wordpress/updates"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/16/wordpress/updates';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/16/wordpress/updates'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/updates

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 16

Update WordPress

Example request:
curl --request PUT \
    "/api/instances/10/wordpress/update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"version\": \"6.0.0\",
    \"create_backup\": true
}"
const url = new URL(
    "/api/instances/10/wordpress/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "version": "6.0.0",
    "create_backup": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/10/wordpress/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'version' => '6.0.0',
            'create_backup' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/10/wordpress/update'
payload = {
    "version": "6.0.0",
    "create_backup": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

Body Parameters

version   string   

Example: 6.0.0

create_backup   boolean  optional  

Example: true

Return auto-update status

Example request:
curl --request GET \
    --get "/api/instances/20/wordpress/auto-update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/20/wordpress/auto-update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/20/wordpress/auto-update';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/20/wordpress/auto-update'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/auto-update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 20

Toggle auto-update

Example request:
curl --request PUT \
    "/api/instances/19/wordpress/auto-update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"auto_update\": \"2\",
    \"auto_update_plugins\": \"1\",
    \"auto_update_themes\": \"1\"
}"
const url = new URL(
    "/api/instances/19/wordpress/auto-update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "auto_update": "2",
    "auto_update_plugins": "1",
    "auto_update_themes": "1"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/19/wordpress/auto-update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'auto_update' => '2',
            'auto_update_plugins' => '1',
            'auto_update_themes' => '1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/19/wordpress/auto-update'
payload = {
    "auto_update": "2",
    "auto_update_plugins": "1",
    "auto_update_themes": "1"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/auto-update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 19

Body Parameters

auto_update   integer   

Example: 2

Must be one of:
  • 0
  • 1
  • 2
auto_update_plugins   integer   

Example: 1

Must be one of:
  • 0
  • 1
auto_update_themes   integer   

Example: 1

Must be one of:
  • 0
  • 1

List backups

Example request:
curl --request GET \
    --get "/api/instances/1/wordpress/backups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/1/wordpress/backups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/1/wordpress/backups';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/1/wordpress/backups'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/backups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 1

Download Backup

Example request:
curl --request GET \
    --get "/api/instances/6/wordpress/backups/18/download" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/6/wordpress/backups/18/download"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/6/wordpress/backups/18/download';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/6/wordpress/backups/18/download'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/backups/{backupId}/download

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 6

backupId   integer   

Backup ID. Example: 18

Restore backup

Example request:
curl --request PUT \
    "/api/instances/19/wordpress/backups/16/restore" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"restoreDatabase\": true,
    \"restoreDirectory\": false,
    \"deleteExistingFiles\": false
}"
const url = new URL(
    "/api/instances/19/wordpress/backups/16/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "restoreDatabase": true,
    "restoreDirectory": false,
    "deleteExistingFiles": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/19/wordpress/backups/16/restore';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'restoreDatabase' => true,
            'restoreDirectory' => false,
            'deleteExistingFiles' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/19/wordpress/backups/16/restore'
payload = {
    "restoreDatabase": true,
    "restoreDirectory": false,
    "deleteExistingFiles": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/backups/{backupId}/restore

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 19

backupId   integer   

Backup ID. Example: 16

Body Parameters

restoreDatabase   boolean  optional  

Example: true

restoreDirectory   boolean  optional  

Example: false

deleteExistingFiles   boolean  optional  

Example: false

Delete backup

Example request:
curl --request DELETE \
    "/api/instances/10/wordpress/backups/4" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/10/wordpress/backups/4"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/10/wordpress/backups/4';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/10/wordpress/backups/4'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/instances/{id}/wordpress/backups/{backupId}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

backupId   integer   

Backup ID. Example: 4

Create backup

Example request:
curl --request POST \
    "/api/instances/7/wordpress/backups" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"backupDirectory\": true,
    \"backupDatabase\": false,
    \"backupNote\": \"expedita\",
    \"retry_id\": 14
}"
const url = new URL(
    "/api/instances/7/wordpress/backups"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "backupDirectory": true,
    "backupDatabase": false,
    "backupNote": "expedita",
    "retry_id": 14
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/wordpress/backups';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'backupDirectory' => true,
            'backupDatabase' => false,
            'backupNote' => 'expedita',
            'retry_id' => 14,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/wordpress/backups'
payload = {
    "backupDirectory": true,
    "backupDatabase": false,
    "backupNote": "expedita",
    "retry_id": 14
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/wordpress/backups

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

Body Parameters

backupDirectory   boolean  optional  

Example: true

backupDatabase   boolean  optional  

Example: false

backupNote   string  optional  

Example: expedita

retry_id   integer  optional  

Example: 14

Show automatic backup settings

Example request:
curl --request GET \
    --get "/api/instances/9/wordpress/automatic-backup" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/9/wordpress/automatic-backup"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/9/wordpress/automatic-backup';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/9/wordpress/automatic-backup'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (200):


{
    "data": {
        "location": null,
        "frequency": "weekly",
        "cron_frequency": "0 0 * * 0",
        "cron_minute": "0",
        "cron_hour": "0",
        "cron_day_of_month": "*",
        "cron_day_of_week": "0",
        "rotation": null
    }
}
 

Request   

GET api/instances/{id}/wordpress/automatic-backup

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 9

Update automatic backup settings

Example request:
curl --request PUT \
    "/api/instances/2/wordpress/automatic-backup" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"frequency\": \"never\",
    \"cron_hour\": 9,
    \"cron_minute\": 15,
    \"cron_day_of_month\": 14,
    \"cron_day_of_week\": 6
}"
const url = new URL(
    "/api/instances/2/wordpress/automatic-backup"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "frequency": "never",
    "cron_hour": 9,
    "cron_minute": 15,
    "cron_day_of_month": 14,
    "cron_day_of_week": 6
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/2/wordpress/automatic-backup';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'frequency' => 'never',
            'cron_hour' => 9,
            'cron_minute' => 15,
            'cron_day_of_month' => 14,
            'cron_day_of_week' => 6,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/2/wordpress/automatic-backup'
payload = {
    "frequency": "never",
    "cron_hour": 9,
    "cron_minute": 15,
    "cron_day_of_month": 14,
    "cron_day_of_week": 6
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/automatic-backup

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 2

Body Parameters

frequency   string   

Example: never

Must be one of:
  • never
  • daily
  • weekly
  • monthly
  • custom
cron_hour   integer  optional  

Must be at least 0. Must not be greater than 23. Example: 9

cron_minute   integer  optional  

Must be at least 0. Must not be greater than 59. Example: 15

cron_day_of_month   integer  optional  

Must be at least 1. Must not be greater than 28. Example: 14

cron_day_of_week   integer  optional  

Must be at least 0. Must not be greater than 6. Example: 6

Update site name

Example request:
curl --request PUT \
    "/api/instances/2/wordpress/site-name" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"non\"
}"
const url = new URL(
    "/api/instances/2/wordpress/site-name"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "non"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/2/wordpress/site-name';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'non',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/2/wordpress/site-name'
payload = {
    "name": "non"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/site-name

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 2

Body Parameters

name   string   

Example: non

Clear cache

Example request:
curl --request PUT \
    "/api/instances/10/clear-cache" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/10/clear-cache"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/10/clear-cache';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/10/clear-cache'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/clear-cache

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

Show maintenance mode status

Example request:
curl --request GET \
    --get "/api/instances/10/wordpress/maintenance-mode" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/10/wordpress/maintenance-mode"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/10/wordpress/maintenance-mode';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/10/wordpress/maintenance-mode'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/maintenance-mode

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

Toggle maintenance mode

Example request:
curl --request PUT \
    "/api/instances/14/wordpress/maintenance-mode" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"status\": false
}"
const url = new URL(
    "/api/instances/14/wordpress/maintenance-mode"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": false
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/14/wordpress/maintenance-mode';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'status' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/14/wordpress/maintenance-mode'
payload = {
    "status": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/maintenance-mode

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 14

Body Parameters

status   boolean   

Example: false

Show debug mode status

Example request:
curl --request GET \
    --get "/api/instances/7/wordpress/debug-mode" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/7/wordpress/debug-mode"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/wordpress/debug-mode';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/wordpress/debug-mode'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/debug-mode

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

Toggle debug mode

Example request:
curl --request PUT \
    "/api/instances/19/wordpress/debug-mode" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"status\": true
}"
const url = new URL(
    "/api/instances/19/wordpress/debug-mode"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "status": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/19/wordpress/debug-mode';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'status' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/19/wordpress/debug-mode'
payload = {
    "status": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/debug-mode

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 19

Body Parameters

status   boolean   

Example: true

List installed themes

Example request:
curl --request GET \
    --get "/api/instances/7/wordpress/themes" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/7/wordpress/themes"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/wordpress/themes';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/wordpress/themes'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/themes

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

Get theme screenshot

Example request:
curl --request GET \
    --get "/api/instances/9/wordpress/themes/twentytwentytwo/screenshot" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/9/wordpress/themes/twentytwentytwo/screenshot"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/9/wordpress/themes/twentytwentytwo/screenshot';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/9/wordpress/themes/twentytwentytwo/screenshot'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/themes/{themeName}/screenshot

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 9

themeName   string   

Example: twentytwentytwo

Activate theme

Example request:
curl --request PUT \
    "/api/instances/5/wordpress/themes/twentytwentytwo/activate" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/5/wordpress/themes/twentytwentytwo/activate"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/5/wordpress/themes/twentytwentytwo/activate';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/5/wordpress/themes/twentytwentytwo/activate'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/wordpress/themes/{themeName}/activate

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 5

themeName   string   

Example: twentytwentytwo

Update theme

Example request:
curl --request PUT \
    "/api/instances/7/wordpress/themes/twentytwentytwo/update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/7/wordpress/themes/twentytwentytwo/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/wordpress/themes/twentytwentytwo/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/wordpress/themes/twentytwentytwo/update'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/wordpress/themes/{themeName}/update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

themeName   string   

Example: twentytwentytwo

Delete theme

Example request:
curl --request DELETE \
    "/api/instances/5/wordpress/themes/twentytwentytwo" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/5/wordpress/themes/twentytwentytwo"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/5/wordpress/themes/twentytwentytwo';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/5/wordpress/themes/twentytwentytwo'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/instances/{id}/wordpress/themes/{themeName}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 5

themeName   string   

Example: twentytwentytwo

Search for new themes

Example request:
curl --request GET \
    --get "/api/instances/12/wordpress/themes/new/search/quae" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/12/wordpress/themes/new/search/quae"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/12/wordpress/themes/new/search/quae';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/12/wordpress/themes/new/search/quae'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/themes/new/search/{term}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 12

term   string   

Example: quae

Install theme

Example request:
curl --request POST \
    "/api/instances/5/wordpress/themes/new/twentytwentytwo/install" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/5/wordpress/themes/new/twentytwentytwo/install"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/5/wordpress/themes/new/twentytwentytwo/install';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/5/wordpress/themes/new/twentytwentytwo/install'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/instances/{id}/wordpress/themes/new/{themeName}/install

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 5

themeName   string   

Example: twentytwentytwo

Example request:
curl --request GET \
    --get "/api/instances/15/wordpress/themes/new/featured" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/15/wordpress/themes/new/featured"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/15/wordpress/themes/new/featured';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/15/wordpress/themes/new/featured'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

List installed plugins

Example request:
curl --request GET \
    --get "/api/instances/16/wordpress/plugins" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/16/wordpress/plugins"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/16/wordpress/plugins';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/16/wordpress/plugins'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/plugins

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 16

Activate plugin

Example request:
curl --request PUT \
    "/api/instances/10/wordpress/plugins/hello-dolly/activate" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/10/wordpress/plugins/hello-dolly/activate"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/10/wordpress/plugins/hello-dolly/activate';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/10/wordpress/plugins/hello-dolly/activate'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/wordpress/plugins/{pluginName}/activate

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

pluginName   string   

Example: hello-dolly

Deactivate plugin

Example request:
curl --request PUT \
    "/api/instances/19/wordpress/plugins/hello-dolly/deactivate" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/19/wordpress/plugins/hello-dolly/deactivate"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/19/wordpress/plugins/hello-dolly/deactivate';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/19/wordpress/plugins/hello-dolly/deactivate'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/wordpress/plugins/{pluginName}/deactivate

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 19

pluginName   string   

Example: hello-dolly

Update plugin

Example request:
curl --request PUT \
    "/api/instances/3/wordpress/plugins/hello-dolly/update" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/3/wordpress/plugins/hello-dolly/update"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/3/wordpress/plugins/hello-dolly/update';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/3/wordpress/plugins/hello-dolly/update'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers)
response.json()

Request   

PUT api/instances/{id}/wordpress/plugins/{pluginName}/update

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 3

pluginName   string   

Example: hello-dolly

Delete plugin

Example request:
curl --request DELETE \
    "/api/instances/12/wordpress/plugins/hello-dolly" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/12/wordpress/plugins/hello-dolly"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/12/wordpress/plugins/hello-dolly';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/12/wordpress/plugins/hello-dolly'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/instances/{id}/wordpress/plugins/{pluginName}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 12

pluginName   string   

Example: hello-dolly

Search for new plugins

Example request:
curl --request GET \
    --get "/api/instances/20/wordpress/plugins/new/search/hello-dolly" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/20/wordpress/plugins/new/search/hello-dolly"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/20/wordpress/plugins/new/search/hello-dolly';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/20/wordpress/plugins/new/search/hello-dolly'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/plugins/new/search/{term}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 20

term   string   

Example: hello-dolly

Install plugin

Example request:
curl --request POST \
    "/api/instances/17/wordpress/plugins/new/hello-dolly/install" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/17/wordpress/plugins/new/hello-dolly/install"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/17/wordpress/plugins/new/hello-dolly/install';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/17/wordpress/plugins/new/hello-dolly/install'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/instances/{id}/wordpress/plugins/new/{pluginName}/install

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 17

pluginName   string   

Example: hello-dolly

Example request:
curl --request GET \
    --get "/api/instances/17/wordpress/plugins/new/featured" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/17/wordpress/plugins/new/featured"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/17/wordpress/plugins/new/featured';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/17/wordpress/plugins/new/featured'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

List config entries

Example request:
curl --request GET \
    --get "/api/instances/13/wordpress/config" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/13/wordpress/config"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/13/wordpress/config';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/13/wordpress/config'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/config

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 13

Add config entry

Example request:
curl --request POST \
    "/api/instances/14/wordpress/config" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"ab\",
    \"value\": \"voluptatem\",
    \"type\": \"variable\"
}"
const url = new URL(
    "/api/instances/14/wordpress/config"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "ab",
    "value": "voluptatem",
    "type": "variable"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/14/wordpress/config';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'ab',
            'value' => 'voluptatem',
            'type' => 'variable',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/14/wordpress/config'
payload = {
    "name": "ab",
    "value": "voluptatem",
    "type": "variable"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/wordpress/config

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 14

Body Parameters

name   string   

Example: ab

value   string   

Example: voluptatem

type   string   

Example: variable

Must be one of:
  • constant
  • variable

Update config entry

Example request:
curl --request PUT \
    "/api/instances/1/wordpress/config/mollitia" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"value\": \"autem\",
    \"type\": \"constant\"
}"
const url = new URL(
    "/api/instances/1/wordpress/config/mollitia"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "autem",
    "type": "constant"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/1/wordpress/config/mollitia';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'value' => 'autem',
            'type' => 'constant',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/1/wordpress/config/mollitia'
payload = {
    "value": "autem",
    "type": "constant"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/config/{name}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 1

name   string   

Example: mollitia

Body Parameters

value   string   

Example: autem

type   string   

Example: constant

Must be one of:
  • constant
  • variable

Delete config entry

Example request:
curl --request DELETE \
    "/api/instances/8/wordpress/config/ut" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"type\": \"constant\"
}"
const url = new URL(
    "/api/instances/8/wordpress/config/ut"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "type": "constant"
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/8/wordpress/config/ut';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'type' => 'constant',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/8/wordpress/config/ut'
payload = {
    "type": "constant"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Request   

DELETE api/instances/{id}/wordpress/config/{name}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 8

name   string   

Example: ut

Body Parameters

type   string   

Example: constant

Must be one of:
  • constant
  • variable

List users

Example request:
curl --request GET \
    --get "/api/instances/8/wordpress/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"role\": \"administrator\"
}"
const url = new URL(
    "/api/instances/8/wordpress/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "role": "administrator"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/8/wordpress/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'role' => 'administrator',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/8/wordpress/users'
payload = {
    "role": "administrator"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 8

Body Parameters

role   string  optional  

Example: administrator

Must be one of:
  • super-admin
  • administrator
  • editor
  • author
  • contributor
  • subscriber

Create user

Example request:
curl --request POST \
    "/api/instances/7/wordpress/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"username\": \"illo\",
    \"email\": \"[email protected]\",
    \"display_name\": \"non\",
    \"password\": \"~mz3e^1aOfrof\",
    \"role\": \"administrator\",
    \"send_email\": true
}"
const url = new URL(
    "/api/instances/7/wordpress/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "illo",
    "email": "[email protected]",
    "display_name": "non",
    "password": "~mz3e^1aOfrof",
    "role": "administrator",
    "send_email": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/wordpress/users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'username' => 'illo',
            'email' => '[email protected]',
            'display_name' => 'non',
            'password' => '~mz3e^1aOfrof',
            'role' => 'administrator',
            'send_email' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/wordpress/users'
payload = {
    "username": "illo",
    "email": "[email protected]",
    "display_name": "non",
    "password": "~mz3e^1aOfrof",
    "role": "administrator",
    "send_email": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/wordpress/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

Body Parameters

username   string   

Example: illo

email   string   

Must be a valid email address. Example: [email protected]

display_name   string   

Example: non

password   string   

Example: ~mz3e^1aOfrof

role   string   

Example: administrator

Must be one of:
  • administrator
  • editor
  • author
  • contributor
  • subscriber
send_email   boolean  optional  

Example: true

Update user

Example request:
curl --request PUT \
    "/api/instances/17/wordpress/users/2" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"display_name\": \"perspiciatis\",
    \"role\": \"administrator\"
}"
const url = new URL(
    "/api/instances/17/wordpress/users/2"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]",
    "display_name": "perspiciatis",
    "role": "administrator"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/17/wordpress/users/2';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
            'display_name' => 'perspiciatis',
            'role' => 'administrator',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/17/wordpress/users/2'
payload = {
    "email": "[email protected]",
    "display_name": "perspiciatis",
    "role": "administrator"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/users/{userId}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 17

userId   integer   

Example: 2

Body Parameters

email   string   

Must be a valid email address. Example: [email protected]

display_name   string   

Example: perspiciatis

role   string   

Example: administrator

Must be one of:
  • administrator
  • editor
  • author
  • contributor
  • subscriber

Delete user

Example request:
curl --request DELETE \
    "/api/instances/18/wordpress/users/15" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/18/wordpress/users/15"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/18/wordpress/users/15';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/18/wordpress/users/15'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/instances/{id}/wordpress/users/{userId}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 18

userId   integer   

Example: 15

Reset user password

Example request:
curl --request PUT \
    "/api/instances/10/wordpress/users/6/reset-password" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"display_name\": \"id\",
    \"role\": \"contributor\"
}"
const url = new URL(
    "/api/instances/10/wordpress/users/6/reset-password"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]",
    "display_name": "id",
    "role": "contributor"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/10/wordpress/users/6/reset-password';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
            'display_name' => 'id',
            'role' => 'contributor',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/10/wordpress/users/6/reset-password'
payload = {
    "email": "[email protected]",
    "display_name": "id",
    "role": "contributor"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/wordpress/users/{userId}/reset-password

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 10

userId   integer   

Example: 6

Body Parameters

email   string   

Must be a valid email address. Example: [email protected]

display_name   string   

Example: id

role   string   

Example: contributor

Must be one of:
  • administrator
  • editor
  • author
  • contributor
  • subscriber

Show Cloudflare settings

Example request:
curl --request GET \
    --get "/api/instances/15/wordpress/cloudflare/security" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/15/wordpress/cloudflare/security"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/15/wordpress/cloudflare/security';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/15/wordpress/cloudflare/security'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/cloudflare/security

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 15

Update Cloudflare settings

Example request:
curl --request PATCH \
    "/api/instances/4/wordpress/cloudflare/security" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"value\": \"off\"
}"
const url = new URL(
    "/api/instances/4/wordpress/cloudflare/security"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": "off"
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/4/wordpress/cloudflare/security';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'value' => 'off',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/4/wordpress/cloudflare/security'
payload = {
    "value": "off"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Request   

PATCH api/instances/{id}/wordpress/cloudflare/security

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 4

Body Parameters

value   string   

Example: off

Must be one of:
  • off
  • essentially_off
  • low
  • medium
  • high
  • under_attack

Show Cloudflare browser check setting

Example request:
curl --request GET \
    --get "/api/instances/9/wordpress/cloudflare/browser-check" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/9/wordpress/cloudflare/browser-check"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/9/wordpress/cloudflare/browser-check';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/9/wordpress/cloudflare/browser-check'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/cloudflare/browser-check

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 9

Update Cloudflare browser check setting

Example request:
curl --request PATCH \
    "/api/instances/14/wordpress/cloudflare/browser-check" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"value\": false
}"
const url = new URL(
    "/api/instances/14/wordpress/cloudflare/browser-check"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": false
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/14/wordpress/cloudflare/browser-check';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'value' => false,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/14/wordpress/cloudflare/browser-check'
payload = {
    "value": false
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Request   

PATCH api/instances/{id}/wordpress/cloudflare/browser-check

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 14

Body Parameters

value   boolean   

Example: false

Show Cloudflare development mode setting

Example request:
curl --request GET \
    --get "/api/instances/1/wordpress/cloudflare/development-mode" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/1/wordpress/cloudflare/development-mode"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/1/wordpress/cloudflare/development-mode';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/1/wordpress/cloudflare/development-mode'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/wordpress/cloudflare/development-mode

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 1

Update Cloudflare development mode setting

Example request:
curl --request PATCH \
    "/api/instances/2/wordpress/cloudflare/development-mode" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"value\": true
}"
const url = new URL(
    "/api/instances/2/wordpress/cloudflare/development-mode"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "value": true
};

fetch(url, {
    method: "PATCH",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/2/wordpress/cloudflare/development-mode';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'value' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/2/wordpress/cloudflare/development-mode'
payload = {
    "value": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PATCH', url, headers=headers, json=payload)
response.json()

Request   

PATCH api/instances/{id}/wordpress/cloudflare/development-mode

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 2

Body Parameters

value   boolean   

Example: true

Purge Cloudflare cache

Example request:
curl --request POST \
    "/api/instances/1/wordpress/cloudflare/purge-cache" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/1/wordpress/cloudflare/purge-cache"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/1/wordpress/cloudflare/purge-cache';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/1/wordpress/cloudflare/purge-cache'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/instances/{id}/wordpress/cloudflare/purge-cache

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 1

Shared access

List users with instance's shared access

Example request:
curl --request GET \
    --get "/api/instances/19/shared-access" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/19/shared-access"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/19/shared-access';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/19/shared-access'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/shared-access

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 19

Share instance access

Example request:
curl --request POST \
    "/api/instances/20/shared-access" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"emails\": [
        \"[email protected]\"
    ],
    \"role\": \"view_only\"
}"
const url = new URL(
    "/api/instances/20/shared-access"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "emails": [
        "[email protected]"
    ],
    "role": "view_only"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/20/shared-access';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'emails' => [
                '[email protected]',
            ],
            'role' => 'view_only',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/20/shared-access'
payload = {
    "emails": [
        "[email protected]"
    ],
    "role": "view_only"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/shared-access

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 20

Body Parameters

emails   string[]   

Must be a valid email address.

role   string   

Example: view_only

Must be one of:
  • view_only
  • view_and_sso
  • developer
  • full_access
  • custom

Resend invitation

Example request:
curl --request POST \
    "/api/instances/5/shared-access/resend-invite" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\"
}"
const url = new URL(
    "/api/instances/5/shared-access/resend-invite"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/5/shared-access/resend-invite';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/5/shared-access/resend-invite'
payload = {
    "email": "[email protected]"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/instances/{id}/shared-access/resend-invite

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 5

Body Parameters

email   string   

Must be a valid email address. Example: [email protected]

Remove access

Example request:
curl --request DELETE \
    "/api/instances/7/shared-access" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"users\": [
        \"dignissimos\"
    ]
}"
const url = new URL(
    "/api/instances/7/shared-access"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "users": [
        "dignissimos"
    ]
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/7/shared-access';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'users' => [
                'dignissimos',
            ],
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/7/shared-access'
payload = {
    "users": [
        "dignissimos"
    ]
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers, json=payload)
response.json()

Request   

DELETE api/instances/{id}/shared-access

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Instance ID. Example: 7

Body Parameters

users   string[]   
email   string   

Must be a valid email address. Example: [email protected]

Change instance's domain

List available options for changing domain

Example request:
curl --request GET \
    --get "/api/instances/12/change-domain/options" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/instances/12/change-domain/options"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/12/change-domain/options';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/12/change-domain/options'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/instances/{id}/change-domain/options

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 12

Change instance's domain to custom domain

Example request:
curl --request PUT \
    "/api/instances/11/change-domain/domain" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"domain\": \"my-own-domain.com\"
}"
const url = new URL(
    "/api/instances/11/change-domain/domain"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "domain": "my-own-domain.com"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/11/change-domain/domain';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'domain' => 'my-own-domain.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/11/change-domain/domain'
payload = {
    "domain": "my-own-domain.com"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/change-domain/domain

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 11

Body Parameters

domain   string   

Example: my-own-domain.com

Change instance's domain to subdomain

Example request:
curl --request PUT \
    "/api/instances/20/change-domain/subdomain" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"subdomain\": \"my-sudomain\",
    \"domain\": \"example.com\"
}"
const url = new URL(
    "/api/instances/20/change-domain/subdomain"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "subdomain": "my-sudomain",
    "domain": "example.com"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/instances/20/change-domain/subdomain';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'subdomain' => 'my-sudomain',
            'domain' => 'example.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/instances/20/change-domain/subdomain'
payload = {
    "subdomain": "my-sudomain",
    "domain": "example.com"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/instances/{id}/change-domain/subdomain

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Example: 20

Body Parameters

subdomain   string   

Example: my-sudomain

domain   string   

Example: example.com

Hosting

List hosting accounts

Example request:
curl --request GET \
    --get "/api/server-accounts" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Show hosting account details

Example request:
curl --request GET \
    --get "/api/server-accounts/6" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/6"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/6';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/6'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 6

Get hosting account usage

Example request:
curl --request GET \
    --get "/api/server-accounts/10/usage" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/10/usage"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/10/usage';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/10/usage'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/usage

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 10

List available PHP versions

Example request:
curl --request GET \
    --get "/api/server-accounts/17/php-versions" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/17/php-versions"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/17/php-versions';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/17/php-versions'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/php-versions

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 17

Show installed SSL certificate

Example request:
curl --request GET \
    --get "/api/server-accounts/5/ssl?domain=example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/5/ssl"
);

const params = {
    "domain": "example.com",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/5/ssl';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'query' => [
            'domain' => 'example.com',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/5/ssl'
params = {
  'domain': 'example.com',
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, params=params)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/ssl

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 5

Query Parameters

domain   string   

Domain name. Example: example.com

List SSL domains

Example request:
curl --request GET \
    --get "/api/server-accounts/1/ssl/domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/1/ssl/domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/1/ssl/domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/1/ssl/domains'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/ssl/domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 1

List SSL certificates

Example request:
curl --request GET \
    --get "/api/server-accounts/10/ssl/certificates?domain=example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"domain\": \"consectetur\"
}"
const url = new URL(
    "/api/server-accounts/10/ssl/certificates"
);

const params = {
    "domain": "example.com",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "domain": "consectetur"
};

fetch(url, {
    method: "GET",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/10/ssl/certificates';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'query' => [
            'domain' => 'example.com',
        ],
        'json' => [
            'domain' => 'consectetur',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/10/ssl/certificates'
payload = {
    "domain": "consectetur"
}
params = {
  'domain': 'example.com',
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers, json=payload, params=params)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/ssl/certificates

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 10

Query Parameters

domain   string  optional  

Domain name. Example: example.com

Body Parameters

domain   string  optional  

Example: consectetur

Install SSL certtficate

Example request:
curl --request PUT \
    "/api/server-accounts/5/ssl/certificates/install" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"domain\": \"molestiae\",
    \"certificate_id\": \"non\",
    \"certificate\": \"deserunt\",
    \"key\": \"tempore\",
    \"cabundle\": \"labore\"
}"
const url = new URL(
    "/api/server-accounts/5/ssl/certificates/install"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "domain": "molestiae",
    "certificate_id": "non",
    "certificate": "deserunt",
    "key": "tempore",
    "cabundle": "labore"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/5/ssl/certificates/install';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'domain' => 'molestiae',
            'certificate_id' => 'non',
            'certificate' => 'deserunt',
            'key' => 'tempore',
            'cabundle' => 'labore',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/5/ssl/certificates/install'
payload = {
    "domain": "molestiae",
    "certificate_id": "non",
    "certificate": "deserunt",
    "key": "tempore",
    "cabundle": "labore"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/ssl/certificates/install

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 5

Body Parameters

domain   string   

Example: molestiae

certificate_id   string  optional  

Example: non

certificate   string  optional  

Example: deserunt

key   string  optional  

Example: tempore

cabundle   string  optional  

Example: labore

Order SSL certificate

Example request:
curl --request POST \
    "/api/server-accounts/10/ssl/certificates/order" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"domain\": \"esse\",
    \"provider_id\": 3
}"
const url = new URL(
    "/api/server-accounts/10/ssl/certificates/order"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "domain": "esse",
    "provider_id": 3
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/10/ssl/certificates/order';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'domain' => 'esse',
            'provider_id' => 3,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/10/ssl/certificates/order'
payload = {
    "domain": "esse",
    "provider_id": 3
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/ssl/certificates/order

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 10

Body Parameters

domain   string   

Example: esse

provider_id   integer   

Example: 3

Show domain SSL settings

Example request:
curl --request GET \
    --get "/api/server-accounts/16/ssl/settings/example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/16/ssl/settings/example.com"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/16/ssl/settings/example.com';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/16/ssl/settings/example.com'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/ssl/settings/{domain}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 16

domain   string  optional  

Domain name. Example: example.com

Update domain SSL settings

Example request:
curl --request PUT \
    "/api/server-accounts/17/ssl/settings/example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"force_https_redirect\": true
}"
const url = new URL(
    "/api/server-accounts/17/ssl/settings/example.com"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "force_https_redirect": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/17/ssl/settings/example.com';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'force_https_redirect' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/17/ssl/settings/example.com'
payload = {
    "force_https_redirect": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/ssl/settings/{domain}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 17

domain   string  optional  

Domain name. Example: example.com

Body Parameters

force_https_redirect   boolean   

Example: true

List domains

Example request:
curl --request GET \
    --get "/api/server-accounts/10/domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/10/domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/10/domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/10/domains'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 10

Add domain

Example request:
curl --request POST \
    "/api/server-accounts/18/domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"domain\": \"sit\",
    \"parent_domain\": \"dolorem\",
    \"type\": \"addon\"
}"
const url = new URL(
    "/api/server-accounts/18/domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "domain": "sit",
    "parent_domain": "dolorem",
    "type": "addon"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/18/domains';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'domain' => 'sit',
            'parent_domain' => 'dolorem',
            'type' => 'addon',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/18/domains'
payload = {
    "domain": "sit",
    "parent_domain": "dolorem",
    "type": "addon"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 18

Body Parameters

domain   string   

Example: sit

parent_domain   string  optional  

Example: dolorem

type   string   

Example: addon

Must be one of:
  • addon
  • sub
  • alias

Update domain settings

Example request:
curl --request PUT \
    "/api/server-accounts/1/domains/example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"document_root\": \"voluptatem\",
    \"redirect_enabled\": true,
    \"redirect_url\": \"http:\\/\\/www.carter.info\\/dolorem-consequuntur-facilis-illum-dolorem-laborum-quibusdam\"
}"
const url = new URL(
    "/api/server-accounts/1/domains/example.com"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "document_root": "voluptatem",
    "redirect_enabled": true,
    "redirect_url": "http:\/\/www.carter.info\/dolorem-consequuntur-facilis-illum-dolorem-laborum-quibusdam"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/1/domains/example.com';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'document_root' => 'voluptatem',
            'redirect_enabled' => true,
            'redirect_url' => 'http://www.carter.info/dolorem-consequuntur-facilis-illum-dolorem-laborum-quibusdam',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/1/domains/example.com'
payload = {
    "document_root": "voluptatem",
    "redirect_enabled": true,
    "redirect_url": "http:\/\/www.carter.info\/dolorem-consequuntur-facilis-illum-dolorem-laborum-quibusdam"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/domains/{domain}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 1

domain   string  optional  

Domain name. Example: example.com

Body Parameters

document_root   string   

Example: voluptatem

redirect_enabled   boolean  optional  

Example: true

redirect_url   string  optional  

Example: http://www.carter.info/dolorem-consequuntur-facilis-illum-dolorem-laborum-quibusdam

Delete domain

Example request:
curl --request DELETE \
    "/api/server-accounts/14/domains/example.com" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/14/domains/example.com"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/14/domains/example.com';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/14/domains/example.com'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/domains/{domain}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 14

domain   string  optional  

Domain name. Example: example.com

Get PHP version

Example request:
curl --request GET \
    --get "/api/server-accounts/8/domains/example.com/php-version" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/8/domains/example.com/php-version"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/8/domains/example.com/php-version';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/8/domains/example.com/php-version'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/domains/{domain}/php-version

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 8

domain   string  optional  

Domain name. Example: example.com

Set PHP version

Example request:
curl --request PUT \
    "/api/server-accounts/10/domains/example.com/php-version" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"php_version\": \"8.1\"
}"
const url = new URL(
    "/api/server-accounts/10/domains/example.com/php-version"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "php_version": "8.1"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/10/domains/example.com/php-version';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'php_version' => '8.1',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/10/domains/example.com/php-version'
payload = {
    "php_version": "8.1"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/domains/{domain}/php-version

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 10

domain   string  optional  

Domain name. Example: example.com

Body Parameters

php_version   string  optional  

PHP version. Example: 8.1

List FTP accounts

Example request:
curl --request GET \
    --get "/api/server-accounts/19/ftp-accounts" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/19/ftp-accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/19/ftp-accounts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/19/ftp-accounts'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/ftp-accounts

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 19

Create FTP account

Example request:
curl --request POST \
    "/api/server-accounts/20/ftp-accounts" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"user\": \"et\",
    \"domain\": \"sint\",
    \"password\": \"3:gx!#sh#\",
    \"directory\": \"sunt\",
    \"quota\": 5
}"
const url = new URL(
    "/api/server-accounts/20/ftp-accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "user": "et",
    "domain": "sint",
    "password": "3:gx!#sh#",
    "directory": "sunt",
    "quota": 5
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/20/ftp-accounts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'user' => 'et',
            'domain' => 'sint',
            'password' => '3:gx!#sh#',
            'directory' => 'sunt',
            'quota' => 5,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/20/ftp-accounts'
payload = {
    "user": "et",
    "domain": "sint",
    "password": "3:gx!#sh#",
    "directory": "sunt",
    "quota": 5
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/ftp-accounts

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 20

Body Parameters

user   string   

Example: et

domain   string   

Example: sint

password   string   

Example: 3:gx!#sh#

directory   string  optional  

Example: sunt

quota   integer  optional  

Example: 5

Delete FTP account

Example request:
curl --request DELETE \
    "/api/server-accounts/4/ftp-accounts/[email protected]" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/4/ftp-accounts/[email protected]"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/4/ftp-accounts/[email protected]';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/4/ftp-accounts/[email protected]'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/ftp-accounts/{user}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 4

user   string   

FTP username. Example: [email protected]

Update FTP account

Example request:
curl --request PUT \
    "/api/server-accounts/19/ftp-accounts/[email protected]" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"unlimited_quota\": false,
    \"quota\": 2,
    \"password\": \"O`!4QkP\"
}"
const url = new URL(
    "/api/server-accounts/19/ftp-accounts/[email protected]"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "unlimited_quota": false,
    "quota": 2,
    "password": "O`!4QkP"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/19/ftp-accounts/[email protected]';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'unlimited_quota' => false,
            'quota' => 2,
            'password' => 'O`!4QkP',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/19/ftp-accounts/[email protected]'
payload = {
    "unlimited_quota": false,
    "quota": 2,
    "password": "O`!4QkP"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/ftp-accounts/{user}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 19

user   string   

FTP username. Example: [email protected]

Body Parameters

unlimited_quota   boolean  optional  

Example: false

quota   integer  optional  

This field is required when unlimited_quota is true. Example: 2

password   string  optional  

Example: O!4QkP`

quote   string  optional  

Show FTP server details

Example request:
curl --request GET \
    --get "/api/server-accounts/18/ftp-accounts/server-info" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/18/ftp-accounts/server-info"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/18/ftp-accounts/server-info';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/18/ftp-accounts/server-info'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/ftp-accounts/server-info

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 18

Create PHPMyAdmin SSO URL

Example request:
curl --request POST \
    "/api/server-accounts/2/mysql/phpmyadmin-sso-url" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/2/mysql/phpmyadmin-sso-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/2/mysql/phpmyadmin-sso-url';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/2/mysql/phpmyadmin-sso-url'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers)
response.json()

Request   

POST api/server-accounts/{id}/mysql/phpmyadmin-sso-url

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 2

List MySQL databases

Example request:
curl --request GET \
    --get "/api/server-accounts/16/mysql/databases" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/16/mysql/databases"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/16/mysql/databases';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/16/mysql/databases'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/mysql/databases

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 16

Create MySQL database

Example request:
curl --request POST \
    "/api/server-accounts/4/mysql/databases" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"suscipit\"
}"
const url = new URL(
    "/api/server-accounts/4/mysql/databases"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "suscipit"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/4/mysql/databases';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'suscipit',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/4/mysql/databases'
payload = {
    "name": "suscipit"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/mysql/databases

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 4

Body Parameters

name   string   

Example: suscipit

Delete MySQL database

Example request:
curl --request DELETE \
    "/api/server-accounts/7/mysql/databases/user_wordpress" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/7/mysql/databases/user_wordpress"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/7/mysql/databases/user_wordpress';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/7/mysql/databases/user_wordpress'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/mysql/databases/{name}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 7

name   string   

Database name. Example: user_wordpress

Rename MySQL database

Example request:
curl --request PUT \
    "/api/server-accounts/17/mysql/databases/user_wordpress/name" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"nemo\"
}"
const url = new URL(
    "/api/server-accounts/17/mysql/databases/user_wordpress/name"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "nemo"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/17/mysql/databases/user_wordpress/name';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'nemo',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/17/mysql/databases/user_wordpress/name'
payload = {
    "name": "nemo"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/mysql/databases/{name}/name

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 17

name   string   

Database name. Example: user_wordpress

Body Parameters

name   string   

Example: nemo

Show MySQL server details

Example request:
curl --request GET \
    --get "/api/server-accounts/18/mysql/server-info" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/18/mysql/server-info"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/18/mysql/server-info';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/18/mysql/server-info'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/mysql/server-info

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 18

List MySQL users

Example request:
curl --request GET \
    --get "/api/server-accounts/19/mysql/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/19/mysql/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/19/mysql/users';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/19/mysql/users'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/mysql/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 19

Create MySQL user

Example request:
curl --request POST \
    "/api/server-accounts/13/mysql/users" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"rerum\",
    \"password\": \"5Q]e)?sMe9!`cE<q!}y\",
    \"database\": \"qui\"
}"
const url = new URL(
    "/api/server-accounts/13/mysql/users"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "rerum",
    "password": "5Q]e)?sMe9!`cE<q!}y",
    "database": "qui"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/13/mysql/users';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'rerum',
            'password' => '5Q]e)?sMe9!`cE<q!}y',
            'database' => 'qui',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/13/mysql/users'
payload = {
    "name": "rerum",
    "password": "5Q]e)?sMe9!`cE<q!}y",
    "database": "qui"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/mysql/users

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 13

Body Parameters

name   string   

Example: rerum

password   string   

Example: 5Q]e)?sMe9!cE<q!}y`

database   string  optional  

Example: qui

Delete MySQL user

Example request:
curl --request DELETE \
    "/api/server-accounts/1/mysql/users/user_wordpress" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/1/mysql/users/user_wordpress"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/1/mysql/users/user_wordpress';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/1/mysql/users/user_wordpress'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/mysql/users/{name}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 1

name   string   

Username. Example: user_wordpress

Update MySQL user

Example request:
curl --request PUT \
    "/api/server-accounts/6/mysql/users/user_wordpress" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"pariatur\",
    \"password\": \"|Y9TNev{{lMIG!\"
}"
const url = new URL(
    "/api/server-accounts/6/mysql/users/user_wordpress"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "pariatur",
    "password": "|Y9TNev{{lMIG!"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/6/mysql/users/user_wordpress';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'pariatur',
            'password' => '|Y9TNev{{lMIG!',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/6/mysql/users/user_wordpress'
payload = {
    "name": "pariatur",
    "password": "|Y9TNev{{lMIG!"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/mysql/users/{name}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 6

name   string   

Database name. Example: user_wordpress

Body Parameters

name   string  optional  

Example: pariatur

password   string  optional  

Example: |Y9TNev{{lMIG!

Show MySQL user privileges

Example request:
curl --request GET \
    --get "/api/server-accounts/8/mysql/privileges/user_wordpress/user_wordpress" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/8/mysql/privileges/user_wordpress/user_wordpress"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/8/mysql/privileges/user_wordpress/user_wordpress';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/8/mysql/privileges/user_wordpress/user_wordpress'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/mysql/privileges/{user}/{database}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 8

user   string   

Username. Example: user_wordpress

database   string   

Database name. Example: user_wordpress

Update MySQL user privileges

Example request:
curl --request PUT \
    "/api/server-accounts/6/mysql/privileges/user_wordpress/user_wordpress" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"privileges\": \"et\"
}"
const url = new URL(
    "/api/server-accounts/6/mysql/privileges/user_wordpress/user_wordpress"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "privileges": "et"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/6/mysql/privileges/user_wordpress/user_wordpress';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'privileges' => 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/6/mysql/privileges/user_wordpress/user_wordpress'
payload = {
    "privileges": "et"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/mysql/privileges/{user}/{database}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 6

user   string   

Username. Example: user_wordpress

database   string   

Database name. Example: user_wordpress

Body Parameters

privileges   string   

Example: et

Remove MySQL user privileges

Example request:
curl --request DELETE \
    "/api/server-accounts/11/mysql/privileges/user_wordpress/user_wordpress" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/11/mysql/privileges/user_wordpress/user_wordpress"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/11/mysql/privileges/user_wordpress/user_wordpress';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/11/mysql/privileges/user_wordpress/user_wordpress'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/mysql/privileges/{user}/{database}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 11

user   string   

Username. Example: user_wordpress

database   string   

Database name. Example: user_wordpress

List cron jobs

Example request:
curl --request GET \
    --get "/api/server-accounts/11/cron-jobs" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/11/cron-jobs"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/11/cron-jobs';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/11/cron-jobs'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/cron-jobs

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 11

Create cron job

Example request:
curl --request POST \
    "/api/server-accounts/10/cron-jobs" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"minute\": \"doloremque\",
    \"hour\": \"officia\",
    \"day_of_month\": \"nemo\",
    \"month\": \"nostrum\",
    \"day_of_week\": \"itaque\",
    \"command\": \"non\"
}"
const url = new URL(
    "/api/server-accounts/10/cron-jobs"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "minute": "doloremque",
    "hour": "officia",
    "day_of_month": "nemo",
    "month": "nostrum",
    "day_of_week": "itaque",
    "command": "non"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/10/cron-jobs';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'minute' => 'doloremque',
            'hour' => 'officia',
            'day_of_month' => 'nemo',
            'month' => 'nostrum',
            'day_of_week' => 'itaque',
            'command' => 'non',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/10/cron-jobs'
payload = {
    "minute": "doloremque",
    "hour": "officia",
    "day_of_month": "nemo",
    "month": "nostrum",
    "day_of_week": "itaque",
    "command": "non"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/cron-jobs

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 10

Body Parameters

minute   string   

Example: doloremque

hour   string   

Example: officia

day_of_month   string   

Example: nemo

month   string   

Example: nostrum

day_of_week   string   

Example: itaque

command   string   

Example: non

Delete cron job

Example request:
curl --request DELETE \
    "/api/server-accounts/2/cron-jobs/qui" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/2/cron-jobs/qui"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/2/cron-jobs/qui';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/2/cron-jobs/qui'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/cron-jobs/{line}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 2

line   string   

Example: qui

Update cron job

Example request:
curl --request PUT \
    "/api/server-accounts/12/cron-jobs/eos" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"minute\": \"consequatur\",
    \"hour\": \"eaque\",
    \"day_of_month\": \"sunt\",
    \"month\": \"eum\",
    \"day_of_week\": \"facilis\",
    \"command\": \"et\"
}"
const url = new URL(
    "/api/server-accounts/12/cron-jobs/eos"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "minute": "consequatur",
    "hour": "eaque",
    "day_of_month": "sunt",
    "month": "eum",
    "day_of_week": "facilis",
    "command": "et"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/12/cron-jobs/eos';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'minute' => 'consequatur',
            'hour' => 'eaque',
            'day_of_month' => 'sunt',
            'month' => 'eum',
            'day_of_week' => 'facilis',
            'command' => 'et',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/12/cron-jobs/eos'
payload = {
    "minute": "consequatur",
    "hour": "eaque",
    "day_of_month": "sunt",
    "month": "eum",
    "day_of_week": "facilis",
    "command": "et"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/cron-jobs/{line}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 12

line   string   

Example: eos

Body Parameters

minute   string   

Example: consequatur

hour   string   

Example: eaque

day_of_month   string   

Example: sunt

month   string   

Example: eum

day_of_week   string   

Example: facilis

command   string   

Example: et

List DNS zones

Example request:
curl --request GET \
    --get "/api/server-accounts/13/dns-zones" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/13/dns-zones"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/13/dns-zones';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/13/dns-zones'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/dns-zones

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 13

List DNS record types

Example request:
curl --request GET \
    --get "/api/server-accounts/18/dns-zones/record-types" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/18/dns-zones/record-types"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/18/dns-zones/record-types';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/18/dns-zones/record-types'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/dns-zones/record-types

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 18

List DNS zone records

Example request:
curl --request GET \
    --get "/api/server-accounts/7/dns-zones/example.com/records" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/7/dns-zones/example.com/records"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/7/dns-zones/example.com/records';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/7/dns-zones/example.com/records'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/dns-zones/{name}/records

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 7

name   string   

Zone name. Example: example.com

Create DNS zone record

Example request:
curl --request POST \
    "/api/server-accounts/16/dns-zones/example.com/records" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"voluptatum\",
    \"type\": \"corrupti\",
    \"rdata\": \"nihil\",
    \"txtdata\": \"qui\",
    \"target\": \"molestiae\",
    \"weight\": 5,
    \"port\": 15,
    \"priority\": 9,
    \"cname\": \"et\",
    \"address\": \"eaque\",
    \"flag\": true,
    \"tag\": \"est\",
    \"value\": \"nobis\",
    \"preference\": 11,
    \"exchange\": \"vel\",
    \"nameserver\": \"sit\",
    \"pointer\": \"et\",
    \"ttl\": 17,
    \"proxied\": true
}"
const url = new URL(
    "/api/server-accounts/16/dns-zones/example.com/records"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "voluptatum",
    "type": "corrupti",
    "rdata": "nihil",
    "txtdata": "qui",
    "target": "molestiae",
    "weight": 5,
    "port": 15,
    "priority": 9,
    "cname": "et",
    "address": "eaque",
    "flag": true,
    "tag": "est",
    "value": "nobis",
    "preference": 11,
    "exchange": "vel",
    "nameserver": "sit",
    "pointer": "et",
    "ttl": 17,
    "proxied": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/16/dns-zones/example.com/records';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'voluptatum',
            'type' => 'corrupti',
            'rdata' => 'nihil',
            'txtdata' => 'qui',
            'target' => 'molestiae',
            'weight' => 5,
            'port' => 15,
            'priority' => 9,
            'cname' => 'et',
            'address' => 'eaque',
            'flag' => true,
            'tag' => 'est',
            'value' => 'nobis',
            'preference' => 11,
            'exchange' => 'vel',
            'nameserver' => 'sit',
            'pointer' => 'et',
            'ttl' => 17,
            'proxied' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/16/dns-zones/example.com/records'
payload = {
    "name": "voluptatum",
    "type": "corrupti",
    "rdata": "nihil",
    "txtdata": "qui",
    "target": "molestiae",
    "weight": 5,
    "port": 15,
    "priority": 9,
    "cname": "et",
    "address": "eaque",
    "flag": true,
    "tag": "est",
    "value": "nobis",
    "preference": 11,
    "exchange": "vel",
    "nameserver": "sit",
    "pointer": "et",
    "ttl": 17,
    "proxied": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/dns-zones/{name}/records

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 16

name   string   

Zone name. Example: example.com

Body Parameters

name   string   

Example: voluptatum

type   string   

Example: corrupti

rdata   string  optional  

Example: nihil

txtdata   string  optional  

Example: qui

target   string  optional  

Example: molestiae

weight   integer  optional  

Example: 5

port   integer  optional  

Example: 15

priority   integer  optional  

Example: 9

cname   string  optional  

Example: et

address   string  optional  

Example: eaque

flag   boolean  optional  

Example: true

tag   string  optional  

Example: est

value   string  optional  

Example: nobis

preference   integer  optional  

Example: 11

exchange   string  optional  

Example: vel

nameserver   string  optional  

Example: sit

pointer   string  optional  

Example: et

ttl   integer  optional  

Example: 17

proxied   boolean  optional  

Example: true

Delete DNS zone record

Example request:
curl --request DELETE \
    "/api/server-accounts/16/dns-zones/example.com/records/sit" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/16/dns-zones/example.com/records/sit"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/16/dns-zones/example.com/records/sit';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/16/dns-zones/example.com/records/sit'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/dns-zones/{name}/records/{line}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 16

name   string   

Zone name. Example: example.com

line   string   

Example: sit

Update DNS zone record

Example request:
curl --request PUT \
    "/api/server-accounts/20/dns-zones/example.com/records/consequatur" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"name\": \"aut\",
    \"type\": \"tenetur\",
    \"rdata\": \"sint\",
    \"txtdata\": \"at\",
    \"target\": \"quia\",
    \"weight\": 17,
    \"port\": 5,
    \"priority\": 13,
    \"cname\": \"similique\",
    \"address\": \"placeat\",
    \"flag\": true,
    \"tag\": \"quasi\",
    \"value\": \"eaque\",
    \"preference\": 12,
    \"exchange\": \"vitae\",
    \"nameserver\": \"perspiciatis\",
    \"pointer\": \"magnam\",
    \"ttl\": 3,
    \"proxied\": true
}"
const url = new URL(
    "/api/server-accounts/20/dns-zones/example.com/records/consequatur"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "name": "aut",
    "type": "tenetur",
    "rdata": "sint",
    "txtdata": "at",
    "target": "quia",
    "weight": 17,
    "port": 5,
    "priority": 13,
    "cname": "similique",
    "address": "placeat",
    "flag": true,
    "tag": "quasi",
    "value": "eaque",
    "preference": 12,
    "exchange": "vitae",
    "nameserver": "perspiciatis",
    "pointer": "magnam",
    "ttl": 3,
    "proxied": true
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/20/dns-zones/example.com/records/consequatur';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'name' => 'aut',
            'type' => 'tenetur',
            'rdata' => 'sint',
            'txtdata' => 'at',
            'target' => 'quia',
            'weight' => 17,
            'port' => 5,
            'priority' => 13,
            'cname' => 'similique',
            'address' => 'placeat',
            'flag' => true,
            'tag' => 'quasi',
            'value' => 'eaque',
            'preference' => 12,
            'exchange' => 'vitae',
            'nameserver' => 'perspiciatis',
            'pointer' => 'magnam',
            'ttl' => 3,
            'proxied' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/20/dns-zones/example.com/records/consequatur'
payload = {
    "name": "aut",
    "type": "tenetur",
    "rdata": "sint",
    "txtdata": "at",
    "target": "quia",
    "weight": 17,
    "port": 5,
    "priority": 13,
    "cname": "similique",
    "address": "placeat",
    "flag": true,
    "tag": "quasi",
    "value": "eaque",
    "preference": 12,
    "exchange": "vitae",
    "nameserver": "perspiciatis",
    "pointer": "magnam",
    "ttl": 3,
    "proxied": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/dns-zones/{name}/records/{line}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 20

name   string   

Zone name. Example: example.com

line   string   

Example: consequatur

Body Parameters

name   string   

Example: aut

type   string   

Example: tenetur

rdata   string  optional  

Example: sint

txtdata   string  optional  

Example: at

target   string  optional  

Example: quia

weight   integer  optional  

Example: 17

port   integer  optional  

Example: 5

priority   integer  optional  

Example: 13

cname   string  optional  

Example: similique

address   string  optional  

Example: placeat

flag   boolean  optional  

Example: true

tag   string  optional  

Example: quasi

value   string  optional  

Example: eaque

preference   integer  optional  

Example: 12

exchange   string  optional  

Example: vitae

nameserver   string  optional  

Example: perspiciatis

pointer   string  optional  

Example: magnam

ttl   integer  optional  

Example: 3

proxied   boolean  optional  

Example: true

Toggle Cloudflare proxy

Example request:
curl --request PATCH \
    "/api/server-accounts/9/dns-zones/example.com/records/a/toggle-proxy" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/9/dns-zones/example.com/records/a/toggle-proxy"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/9/dns-zones/example.com/records/a/toggle-proxy';
$response = $client->patch(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/9/dns-zones/example.com/records/a/toggle-proxy'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PATCH', url, headers=headers)
response.json()

Request   

PATCH api/server-accounts/{id}/dns-zones/{name}/records/{line}/toggle-proxy

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 9

name   string   

Zone name. Example: example.com

line   string   

Example: a

List email domains

Example request:
curl --request GET \
    --get "/api/server-accounts/9/email/domains" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/9/email/domains"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/9/email/domains';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/9/email/domains'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/email/domains

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 9

List email accounts

Example request:
curl --request GET \
    --get "/api/server-accounts/5/email/accounts" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/5/email/accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/5/email/accounts';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/5/email/accounts'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/email/accounts

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 5

Create email account

Example request:
curl --request POST \
    "/api/server-accounts/15/email/accounts" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"password\": \"m:JmiIQP_@6w<UgNo\\\"7u\",
    \"domain\": \"assumenda\",
    \"quota\": 18,
    \"unlimited_quota\": true
}"
const url = new URL(
    "/api/server-accounts/15/email/accounts"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]",
    "password": "m:JmiIQP_@6w<UgNo\"7u",
    "domain": "assumenda",
    "quota": 18,
    "unlimited_quota": true
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/15/email/accounts';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
            'password' => 'm:JmiIQP_@6w<UgNo"7u',
            'domain' => 'assumenda',
            'quota' => 18,
            'unlimited_quota' => true,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/15/email/accounts'
payload = {
    "email": "[email protected]",
    "password": "m:JmiIQP_@6w<UgNo\"7u",
    "domain": "assumenda",
    "quota": 18,
    "unlimited_quota": true
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/email/accounts

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 15

Body Parameters

email   string   

Example: [email protected]

password   string   

Example: m:JmiIQP_@6w<UgNo"7u

domain   string   

Example: assumenda

quota   integer   

Example: 18

unlimited_quota   boolean  optional  

Example: true

Delete email account

Example request:
curl --request DELETE \
    "/api/server-accounts/6/email/accounts/[email protected]" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/6/email/accounts/[email protected]"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/6/email/accounts/[email protected]';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/6/email/accounts/[email protected]'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/email/accounts/{email}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 6

email   string   

Email address. Example [email protected] Example: [email protected]

Update email account

Example request:
curl --request PUT \
    "/api/server-accounts/9/email/accounts/[email protected]" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"quota\": 6,
    \"password\": \"`M\\\\l=\'pM94u:QO^O?o\"
}"
const url = new URL(
    "/api/server-accounts/9/email/accounts/[email protected]"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "quota": 6,
    "password": "`M\\l='pM94u:QO^O?o"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/9/email/accounts/[email protected]';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'quota' => 6,
            'password' => '`M\\l=\'pM94u:QO^O?o',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/9/email/accounts/[email protected]'
payload = {
    "quota": 6,
    "password": "`M\\l='pM94u:QO^O?o"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/server-accounts/{id}/email/accounts/{email}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 9

email   string   

Email address. Example [email protected] Example: [email protected]

Body Parameters

quota   integer   

Example: 6

password   string  optional  

Example: `M\l='pM94u:QO^O?o

Show email account details

Example request:
curl --request GET \
    --get "/api/server-accounts/3/email/accounts/[email protected]" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/3/email/accounts/[email protected]"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/3/email/accounts/[email protected]';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/3/email/accounts/[email protected]'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/email/accounts/{email}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 3

email   string   

Email address. Example [email protected] Example: [email protected]

Get webmail SSO URL

Example request:
curl --request GET \
    --get "/api/server-accounts/5/email/accounts/[email protected]/webmail-sso-url" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/5/email/accounts/[email protected]/webmail-sso-url"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/5/email/accounts/[email protected]/webmail-sso-url';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/5/email/accounts/[email protected]/webmail-sso-url'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/email/accounts/{email}/webmail-sso-url

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 5

email   string   

Email address. Example [email protected] Example: [email protected]

List email forwarders

Example request:
curl --request GET \
    --get "/api/server-accounts/17/email/forwarders" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/17/email/forwarders"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/17/email/forwarders';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/17/email/forwarders'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/server-accounts/{id}/email/forwarders

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 17

Create email forwarder

Example request:
curl --request POST \
    "/api/server-accounts/20/email/forwarders" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"domain\": \"rerum\",
    \"destination\": \"[email protected]\"
}"
const url = new URL(
    "/api/server-accounts/20/email/forwarders"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "email": "[email protected]",
    "domain": "rerum",
    "destination": "[email protected]"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/20/email/forwarders';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'email' => '[email protected]',
            'domain' => 'rerum',
            'destination' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/20/email/forwarders'
payload = {
    "email": "[email protected]",
    "domain": "rerum",
    "destination": "[email protected]"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/server-accounts/{id}/email/forwarders

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 20

Body Parameters

email   string   

Example: [email protected]

domain   string   

Example: rerum

destination   string   

Must be a valid email address. Example: [email protected]

Delete email forwarder

Example request:
curl --request DELETE \
    "/api/server-accounts/17/email/forwarders/[email protected]" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/server-accounts/17/email/forwarders/[email protected]"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/server-accounts/17/email/forwarders/[email protected]';
$response = $client->delete(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/server-accounts/17/email/forwarders/[email protected]'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('DELETE', url, headers=headers)
response.json()

Request   

DELETE api/server-accounts/{id}/email/forwarders/{email}

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

URL Parameters

id   integer   

Hosting account ID. Example: 17

email   string   

Email address. Example [email protected] Example: [email protected]

List SSL offer

Example request:
curl --request GET \
    --get "/api/ssl-offer" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/ssl-offer"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/ssl-offer';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/ssl-offer'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/ssl-offer

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

User account

Update personal information

Example request:
curl --request PUT \
    "/api/user/edit" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"first_name\": \"addndptr\",
    \"last_name\": \"pimnq\",
    \"company_name\": \"slcq\",
    \"language\": \"mollitia\",
    \"new_device_detection\": \"dolores\"
}"
const url = new URL(
    "/api/user/edit"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "first_name": "addndptr",
    "last_name": "pimnq",
    "company_name": "slcq",
    "language": "mollitia",
    "new_device_detection": "dolores"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/user/edit';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'first_name' => 'addndptr',
            'last_name' => 'pimnq',
            'company_name' => 'slcq',
            'language' => 'mollitia',
            'new_device_detection' => 'dolores',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/user/edit'
payload = {
    "first_name": "addndptr",
    "last_name": "pimnq",
    "company_name": "slcq",
    "language": "mollitia",
    "new_device_detection": "dolores"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/user/edit

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

first_name   string  optional  

Must not be greater than 255 characters. Example: addndptr

last_name   string  optional  

Must not be greater than 255 characters. Example: pimnq

company_name   string  optional  

Must not be greater than 255 characters. Example: slcq

language   string  optional  

Example: mollitia

new_device_detection   string  optional  

Example: dolores

Update email address

Example request:
curl --request PUT \
    "/api/user/edit/email" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"password\": \"<rFDdL~%muM?G(\",
    \"email\": \"[email protected]\"
}"
const url = new URL(
    "/api/user/edit/email"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "password": "<rFDdL~%muM?G(",
    "email": "[email protected]"
};

fetch(url, {
    method: "PUT",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/user/edit/email';
$response = $client->put(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'password' => '<rFDdL~%muM?G(',
            'email' => '[email protected]',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/user/edit/email'
payload = {
    "password": "<rFDdL~%muM?G(",
    "email": "[email protected]"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('PUT', url, headers=headers, json=payload)
response.json()

Request   

PUT api/user/edit/email

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

password   string   

Must be at least 8 characters. Example: <rFDdL~%muM?G(

email   string   

Must be a valid email address. Must not be greater than 255 characters. Example: [email protected]

List logged-in devices

Example request:
curl --request GET \
    --get "/api/user/devices" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json"
const url = new URL(
    "/api/user/devices"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/user/devices';
$response = $client->get(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/user/devices'
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('GET', url, headers=headers)
response.json()

Example response (401):

Show headers
cache-control: no-cache, private
content-type: application/json
vary: Origin
 

{
    "message": "Unauthenticated."
}
 

Request   

GET api/user/devices

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Forget device

Example request:
curl --request POST \
    "/api/user/device/forget" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"deviceId\": 13
}"
const url = new URL(
    "/api/user/device/forget"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "deviceId": 13
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/user/device/forget';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'deviceId' => 13,
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/user/device/forget'
payload = {
    "deviceId": 13
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/user/device/forget

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

deviceId   integer   

Example: 13

Log out from device

Example request:
curl --request POST \
    "/api/user/device/logout" \
    --header "Authorization: Bearer {YOUR_API_TOKEN}" \
    --header "Content-Type: application/json" \
    --data "{
    \"session_id\": \"ut\"
}"
const url = new URL(
    "/api/user/device/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_API_TOKEN}",
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "session_id": "ut"
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$url = '/api/user/device/logout';
$response = $client->post(
    $url,
    [
        'headers' => [
            'Authorization' => 'Bearer {YOUR_API_TOKEN}',
            'Content-Type' => 'application/json',
        ],
        'json' => [
            'session_id' => 'ut',
        ],
    ]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json

url = '/api/user/device/logout'
payload = {
    "session_id": "ut"
}
headers = {
  'Authorization': 'Bearer {YOUR_API_TOKEN}',
  'Content-Type': 'application/json'
}

response = requests.request('POST', url, headers=headers, json=payload)
response.json()

Request   

POST api/user/device/logout

Headers

Authorization      

Example: Bearer {YOUR_API_TOKEN}

Content-Type      

Example: application/json

Body Parameters

session_id   string   

Example: ut