Download OpenAPI specification:Download
The Xitoring REST API allows you to interact with Xitoring using RESTful requests over the HTTP protocol.
The Xitoring REST API supports Bearer token authentication.
Bearer token authentication authorizes requests by passing a token in the header of each request. This approach eliminates the need for including a username and password in your application. Tokens can be revoked at any time.
Tokens can be administered within the account section of the Xitoring panel.
This example uses token as the credential:
--header Authorization: Bearer 999|dXNlcm5hbWU6cGFsohzgc3tgrh2nx3dvcmQ
The base URL establishes the API version in use. It serves as the foundation for every request made to the Xitoring REST API.
https://app.xitoring.com/api/v2
The Xitoring REST API supports the following HTTP methods:
| Method | Description |
|---|---|
| GET | Returns a resource |
| POST | Creates a resource |
| PUT | Updates a resource |
| DELETE | deletes a resource |
Xitoring processes request data in both JSON formats.
For requests incorporating data in the request body, include the Content-Type attribute in the request header and set its value to application/json.
Content-Type: application/json
For uploading files, the appropriate content type is multipart/form-data.
To prevent parsing errors in request data, consistently employ UTF-8 character encoding. Requests using alternative character encoding formats may lead to errors and may not be processed correctly.
Note: Parameter names are case-sensitive. For instance, appending "?checkId=..." to a query produces a different result than "?checkid=...". In general, an unrecognized parameter name (e.g., "checkid") is disregarded.
It is advisable to utilize a JSON parser for handling responses. This approach facilitates easy access to the response properties and allows your scripts to adapt to any new fields that may be introduced in the response in the future. (The addition of a new field to the response is not deemed a breaking change.)
Certain payloads or responses may include fields that lack documentation. These fields signify either experimental or deprecated information and are subject to modification. It is advisable to utilize only the documented parameters when making your requests.
Responses utilize standard HTTP response codes to indicate the success or failure of an operation. The subsequent table provides an overview of typical response codes returned by this API.
| Response code | Description |
|---|---|
| 200 OK | Resource was retrieved or updated successfully. |
| 201 Created | Resource was created successfully. |
| 204 No Content | Response has no content (typically when resource was deleted successfully). |
| 400 Bad Request | Request is malformed. This often occurs when there is an error in the request data. |
| 401 Unauthorized | User authentication failed. |
| 403 Forbidden | The authenticated user lacks the necessary permissions to execute the action. In such cases, it may be required to authenticate using a user account with higher permissions in Xitoring. |
| 404 Not found | The resource is not present. This arises when trying to access an endpoint that is nonexistent, such as when a typo exists in the endpoint name. |
| 429 Too many requests | The request cannot be processed because the request rate limit has been exceeded. |
Returns updated account data
string | |
| username | string |
| password | string |
| language | string Enum: "en_US" "de_DE" |
| first | string |
| last | string |
| mobile | string |
| phone | string |
| timezone | string |
| avatar | file |
| zip | string |
| city | string |
| state | string |
| website | string |
| country | string |
| address | string |
| company | string |
| table_length | integer Enum: 5 10 25 50 -1 |
| currency_id | integer |
Returns updated account data
string | |
| username | string |
| password | string |
| language | string Enum: "en_US" "de_DE" |
| first | string |
| last | string |
| mobile | string |
| phone | string |
| timezone | string |
| avatar | file |
| zip | string |
| city | string |
| state | string |
| website | string |
| country | string |
| address | string |
| company | string |
| table_length | integer Enum: 5 10 25 50 -1 |
| currency_id | integer |
Returns list of billing logs
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "title": "string",
- "description": "string",
- "admin_id": 0,
- "client_id": 0,
- "contact_id": 0,
- "credit_id": 0,
- "invoice_id": 0,
- "service_id": 0,
- "payment_id": 0,
- "amount": 0,
- "refunded": 0,
- "type": 0,
- "user_name": "string",
- "user_type": 0
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of account logs
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "user_id": 0,
- "user_type": 0,
- "admin_id": 0,
- "client_id": 0,
- "contact_id": 0,
- "title": "string",
- "description": "string",
- "ip": "string",
- "user_name": "string",
- "created_at": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of notification logs
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| channel | string Enum: "email" "sms" "slack" Channel |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "device_id": 0,
- "channel": 0,
- "recipient": "string",
- "description": "string",
- "sms_credit_id": 0,
- "created_at": "string",
- "label": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of server logs
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "device_id": 0,
- "admin_id": 0,
- "client_id": 0,
- "title": "string",
- "description": "string",
- "user_type": 0,
- "user_id": 0,
- "user_name": "string",
- "created_at": "string",
- "ip": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of login logs
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| status | string Enum: "success" "failure" Status |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "admin_id": 0,
- "contact_id": 0,
- "login_name": "string",
- "ip": "string",
- "fail": 0,
- "city": "string",
- "country": "string",
- "device": "string",
- "browser": "string",
- "platform": "string",
- "created_at": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of mail logs
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "admin_id": 0,
- "contact_id": 0,
- "cc": "string",
- "bcc": "string",
- "subject": "string",
- "recipient": "string",
- "from": "string",
- "body": "string",
- "created_at": "string",
- "attachments": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns mail log data
| id required | integer Mail log ID |
| id | integer ID |
| client_id | integer Client ID |
| admin_id | integer Admin ID |
| contact_id | integer Contact ID |
| cc | string CC |
| bcc | string BCC |
| subject | string Subject |
| recipient | string Recipient |
| from | string From |
| body | string Body |
| created_at | string Created at |
| user_name | string User's name |
{- "id": 0,
- "client_id": 0,
- "admin_id": 0,
- "contact_id": 0,
- "cc": "string",
- "bcc": "string",
- "subject": "string",
- "recipient": "string",
- "from": "string",
- "body": "string",
- "created_at": "string",
- "user_name": "string"
}Update a check
| id required | integer Check ID |
required | Array of objects check details |
required | Array of objects trigger details for the check |
| message | string |
{- "message": "string"
}Shows a check
| id required | integer Check ID |
Array of objects check |
{- "": [
- {
- "device_id": 0,
- "type": 0,
- "data": [ ],
- "pause_by_system": true,
- "pause_until": 0,
- "interval_in_seconds": 0,
- "type_human_readable": "string",
- "created_at_timestamp": 0,
- "is_paused": true,
- "is_manually_paused": true,
- "pause_until_utc": 0,
- "is_under_maintenance": true
}
]
}Update a check
| id required | integer Check ID |
required | Array of objects check details |
required | Array of objects trigger details for the check |
| message | string |
{- "message": "string"
}Lists all checks
| group_id | string One groupID (e.g. 3) or several commar seperated groupIDs (e.g. 1,4,5,6) |
| period | string one of today|last_week|this_week|last_month|this_month|this_quarter|last_year|this_year |
| type | integer PING: 20, HTTP: 21, DNS: 22, FTP: 23, SMTP: 24, POP3: 25, IMAP: 26, SSL: 27 |
Gets a list of check incidents
| id required | integer Check ID |
| since | integer timestamp |
| until | integer timestamp |
| status | string open|resolved |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| count_only | boolean Example: count_only=true Only return count of incidents |
| auto_range | boolean Example: auto_range=true Distribute incident counts into starndard date ranges |
| X-Total-Count | boolean Fetch all rows |
Array of objects usages |
{- "": [
- {
- "parent_id": 0,
- "resolved_id": 0,
- "device_id": 0,
- "module_id": 0,
- "trigger_id": 0,
- "confirmed": true,
- "status": 0,
- "details": "string",
- "downtime": 0,
- "status_name": "string",
- "downtime_human_readable": "string",
- "created_at_human_readable": "string",
- "formatted_value": "string",
- "country": "string",
- "city": "string"
}
]
}Returns updated authenticated user data
string | |
| username | string |
| password | string |
| language | string Enum: "en_US" "de_DE" |
| first | string |
| last | string |
| mobile | string |
| phone | string |
| timezone | string |
| avatar | file |
| zip | string |
| city | string |
| state | string |
| website | string |
| country | string |
| address | string |
| company | string |
| table_length | integer Enum: 5 10 25 50 -1 |
| currency_id | integer |
Returns updated authenticated user data
string | |
| username | string |
| password | string |
| language | string Enum: "en_US" "de_DE" |
| first | string |
| last | string |
| mobile | string |
| phone | string |
| timezone | string |
| avatar | file |
| zip | string |
| city | string |
| state | string |
| website | string |
| country | string |
| address | string |
| company | string |
| table_length | integer Enum: 5 10 25 50 -1 |
| currency_id | integer |
Update a dashboard
| id required | integer dashboard id |
| name required | string |
| order required | integer |
| widgets required | Array of arrays |
| columns required | Array of arrays |
| column_order required | Array of arrays |
| message | string |
{- "message": "string"
}Returns contact data
| email required | string |
| username required | string |
| password required | string |
| confirm_password required | string |
| language required | string Enum: "en_US" "de_DE" |
| first | string |
| last | string |
| title | string |
| mobile | string |
| phone | string |
| full_access | boolean Enum: 0 1 Full access means your sub-accounts privileges are same as the main account.You can provide account full access to your teammates with this option. |
| timezone | string |
| avatar | file |
Returns updated contact data
| id required | integer Contact id |
string | |
| username | string |
| password | string |
| language | string |
| first | string |
| last | string |
| title | string |
| mobile | string |
| phone | string |
| full_access | boolean Enum: 0 1 Full access means your sub-accounts privileges are same as the main account.You can provide account full access to your teammates with this option. |
| timezone | string |
| avatar | file |
Returns updated contact data
| id required | integer Contact id |
string | |
| username | string |
| password | string |
| language | string Enum: "en_US" "de_DE" |
| first | string |
| last | string |
| title | string |
| mobile | string |
| phone | string |
| full_access | boolean Enum: 0 1 Full access means your sub-accounts privileges are same as the main account.You can provide account full access to your teammates with this option. |
| timezone | string |
| avatar | file |
Get a list of clients credit cards
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Credits |
{- "data": [
- {
- "id": 0,
- "owner": "string",
- "number": "string",
- "default": true,
- "is_expired": true
}
]
}Store a new credit card
| owner required | string Card owner full name |
| number required | string Card number |
| cvv required | integer Card cvv |
| default | boolean This is clients default card |
| client_id required | integer Client id |
| expire_at required | string Example: expire_at=10/22 Card expiretion date |
{- "data": null,
- "message": "string"
}Shows credit card details
| id required | integer Credit Card ID |
| id | integer |
| owner | string |
| number | string |
| default | boolean |
| is_expired | boolean |
[- {
- "id": 0,
- "owner": "string",
- "number": "string",
- "default": true,
- "is_expired": true
}
]Update credit card details
| id required | integer Credit Card ID |
| owner required | string Card owner full name |
| owner required | string Card owner full name |
| number required | string Card number |
| cvv required | integer Card cvv |
| default | boolean This is clients default card |
| client_id required | integer Client id |
| expire_at required | string Example: expire_at=10/22 Card expiretion date |
| message | string |
{- "message": "string"
}Returns list of credits
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| status | string Enum: "active" "inactive" Status |
| X-Total-Count | boolean Fetch all rows |
Array of objects Credits | |
| total | integer Number of credits |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "amount": 0,
- "reason": "string",
- "balance": 0,
- "active": true,
- "comments": "string",
- "client_id": 0,
- "date": "string",
- "client_name": "string",
- "payment_type": 0,
- "readable_payment_type": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Gets list of servers
| only_server | integer 0,1 |
Array of objects server |
{- "data": [
- {
- "uid": "string",
- "name": "string",
- "label": "string",
- "group_id": 0,
- "node_id": 0,
- "pause_until": "string",
- "preferences": [ ],
- "client_id": 0,
- "auto_adjust_fault_tolerance": true
}
]
}Store a new server
| hostname required | string Hostname |
| platform | string 0: Linux, 1: Windows |
| label_custom | string Custom user label |
| preferences required | Array of arrays Server preferences |
| ips | Array of arrays Server ip list |
| Authorization required | string API key bearer |
{- "data": null,
- "message": "string"
}Gets server details
| id required | integer server id |
Array of objects server |
{- "": [
- {
- "uid": "string",
- "name": "string",
- "label": "string",
- "group_id": 0,
- "node_id": 0,
- "pause_until": "string",
- "preferences": [ ],
- "client_id": 0,
- "auto_adjust_fault_tolerance": true,
- "description": "string",
- "statistics": [ ],
- "processes": [ ],
- "softwares": [ ],
- "docker": [ ],
- "netstat": [ ],
- "mysql": [ ],
- "mongo": [ ],
- "haproxy": [ ],
- "postgresql": [ ],
- "iis": [ ],
- "nginx": [ ],
- "apache": [ ],
- "fpm": [ ],
- "redis": [ ],
- "keydb": [ ],
- "supervisor": [ ],
- "ping_by_nodes": [ ]
}
]
}Updates a server
| id required | integer server id |
| label required | string Hostname |
| label_custom | string Custom user label |
required | Array of objects Server preferences |
| ips | Array of arrays Server ip list |
| group_id required | string API key bearer |
| message | string |
{- "message": "string"
}Gets top servers by their memory usage
| length | integer list length |
Array of objects usages |
{- "": [
- {
- "device_id": 0,
- "device_label": "string",
- "used_percent": "string",
- "used": 0,
- "total": 0,
- "unit": "string"
}
]
}Gets top servers by their uptime or downtime
| only_server | integer if set to 1, only returns servers, default is 1 |
| only_check | integer if set to 1, only returns checks (sets only_server=0) |
| length | integer list length |
| period | string one of today|last_week|this_week|last_month|this_month|this_quarter|last_year|this_year |
| reverse | integer set to 1 and get top downtime list instead of uptime |
Array of objects uptime report |
{- "": [
- {
- "device": 0,
- "uptime_percentage": "string",
- "downtime_human_readable": 0,
- "incidents": "string"
}
]
}Gets a list of server incidents
| id required | integer Server ID |
| since | integer timestamp |
| until | integer timestamp |
| status | string open|resolved |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| count_only | boolean Example: count_only=true Only return count of incidents |
| auto_range | boolean Example: auto_range=true Distribute incident counts into starndard date ranges |
| X-Total-Count | boolean Fetch all rows |
Array of objects usages |
{- "": [
- {
- "parent_id": 0,
- "resolved_id": 0,
- "device_id": 0,
- "module_id": 0,
- "trigger_id": 0,
- "confirmed": true,
- "status": 0,
- "details": "string",
- "downtime": 0,
- "status_name": "string",
- "downtime_human_readable": "string",
- "created_at_human_readable": "string",
- "formatted_value": "string",
- "country": "string",
- "city": "string"
}
]
}Gets a list of server or check incidents
| since | integer timestamp |
| until | integer timestamp |
| status | string open|resolved |
| type | string check type (possible to pass several comma seperated integers) e.g. 20,21,22 |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| count_only | boolean Example: count_only=true Only return count of incidents |
| auto_range | boolean Example: auto_range=true Distribute incident counts into starndard date ranges |
| metric | boolean Example: metric=true true=metric, false=check; dont set to ignore |
| X-Total-Count | boolean Fetch all rows |
Array of objects usages |
{- "": [
- {
- "parent_id": 0,
- "resolved_id": 0,
- "device_id": 0,
- "module_id": 0,
- "trigger_id": 0,
- "confirmed": true,
- "status": 0,
- "details": "string",
- "downtime": 0,
- "status_name": "string",
- "downtime_human_readable": "string",
- "created_at_human_readable": "string",
- "formatted_value": "string",
- "country": "string",
- "city": "string"
}
]
}Gets a list of server checks
| id required | integer Server ID |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects checks |
{- "": [
- {
- "device_id": 0,
- "type": 0,
- "data": [ ],
- "pause_by_system": true,
- "pause_until": 0,
- "interval_in_seconds": 0,
- "type_human_readable": "string",
- "created_at_timestamp": 0,
- "is_paused": true,
- "is_manually_paused": true,
- "pause_until_utc": 0,
- "is_under_maintenance": true
}
]
}Stores a new server check
| id required | integer Server ID |
required | Array of objects check data |
| type required | integer PING: 20, HTTP: 21, DNS: 22, FTP: 23, SMTP: 24, POP3: 25, IMAP: 26, SSL: 27 |
{- "data": null,
- "message": "string"
}Gets uptime of server checks
| id required | integer Server ID |
| period | string one of today|last_week|this_week|last_month|this_month|this_quarter|last_year|this_year |
Array of objects checks |
{- "": [
- {
- "type": 0,
- "host": "string",
- "status": 0,
- "uptime_percentage": "string",
- "downtime_human_readable": "string",
- "is_paused": true,
- "triggers_count": 0
}
]
}Gets a trigger list of server checks
| id required | integer Server ID |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects triggers |
{- "": [
- {
- "device_id": 0,
- "module_id": 0,
- "type": 0,
- "data": [ ],
- "type_human_readable": "string"
}
]
}Creates a new heartbeat
| server_id | integer server->id necessary only if this heartbeat belongs to a specific server |
| is_agent | bool set true to create agent heartbeat; do not send otherwise |
required | Array of objects check details |
required | Array of objects trigger details for the check |
{- "data": null,
- "message": "string"
}Update a heartbeat
| id required | integer heartbeat id |
required | Array of objects check details |
required | Array of objects trigger details for the check |
| message | string |
{- "message": "string"
}Returns list of invoices
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| active_status | string Enum: "active" "inactive" Active status |
| paid_status | string Enum: "paid" "unpaid" Paid status |
| X-Total-Count | boolean Fetch all rows |
Array of objects Invoices | |
| total | integer Number of invoices |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "sent": "string",
- "paid": true,
- "amount": 0,
- "amount_unpaid": 0,
- "account_balance": 0,
- "cancel_reason": "string",
- "auto_bill": true,
- "suspended": true,
- "period_id": 0,
- "cancel_on": 0,
- "suspend_on": 0,
- "service_id": 0,
- "datepaid": "string",
- "date": "string",
- "due": "string",
- "billed": true,
- "canceled": true,
- "date_range_start": "string",
- "date_range_end": "string",
- "charge_retry": 0,
- "client_name": "string",
- "code": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns invoices data
| id required | integer Invoice ID |
boolean Export as pdf |
| id | integer ID |
| client_id | integer Client ID |
| sent | string Send date |
| paid | boolean Paid |
| amount | number <float> Amount |
| amount_unpaid | number <float> Amount unpaid |
| account_balance | number <float> Account balance |
| cancel_reason | string Cancel reason |
| auto_bill | boolean Auto bill |
| suspended | boolean Suspended |
| period_id | integer Period ID |
| cancel_on | integer Cancel on |
| suspend_on | integer Suspend on |
| service_id | integer Service ID |
| client_email | string Client's email |
{- "id": 0,
- "client_id": 0,
- "sent": "string",
- "paid": true,
- "amount": 0,
- "amount_unpaid": 0,
- "account_balance": 0,
- "cancel_reason": "string",
- "auto_bill": true,
- "suspended": true,
- "period_id": 0,
- "cancel_on": 0,
- "suspend_on": 0,
- "service_id": 0,
- "client_email": "string"
}Returns list of invoice credits
| id required | integer Invoice ID |
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Credits | |
| total | integer Number of credits |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "invoice_id": 0,
- "credit_id": 0,
- "amount": 0,
- "balance": 0,
- "reason": "string",
- "date": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of invoice options
| id required | integer Invoice ID |
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Credits | |
| total | integer Number of options |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "invoice_id": 0,
- "quantity": 0,
- "cost": 0,
- "unit_price": 0,
- "discount": 0,
- "description": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of invoice payments
| id required | integer Invoice ID |
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Credits | |
| total | integer Number of payments |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "admin_id": 0,
- "client_id": 0,
- "credit_id": 0,
- "inv_id": 0,
- "amount": 0,
- "type": 0,
- "detail": "string",
- "transaction_id": "string",
- "refunded": 0,
- "created_at": "string",
- "readable_type": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns list of invoice refunds
| id required | integer Invoice ID |
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects Credits | |
| total | integer Number of refunds |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "payment_id": 0,
- "invoice_id": 0,
- "transaction_id": "string",
- "amount": 0,
- "detail": "string",
- "type": 0,
- "created_at": "string"
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns a list of clients API Tokens
Array of objects |
{- "": [
- {
- "id": 0,
- "tokenable_type": "string",
- "tokenable_id": 0,
- "name": "string",
- "abilities": [ ],
- "last_used_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]
}Gets a list of maintenance schedules
| ended | bool just shows ended maintencance schedules |
| data | any schedules |
| recordsFiltered | any count |
{- "data": null,
- "recordsFiltered": null
}Stores a new maintenance schedule
required | Array of objects |
| description required | string max 255 characters |
| start required | integer timestamp |
| end required | integer timestamp |
| public | integer is public (e.g. in status page) |
any schedules |
{- "": null
}Gets maintenance schedules of a server checks
| id required | integer Server ID |
| checkId required | integer Check ID |
Array of objects maintenance schedules |
{- "": [
- {
- "id": 0,
- "description": "string",
- "start": "string",
- "end": "string"
}
]
}Gets maintenance schedules of a server
| id required | integer Server ID |
Array of objects maintenance schedules |
{- "": [
- {
- "id": 0,
- "description": "string",
- "start": "string",
- "end": "string"
}
]
}Gets Metric Graphs
| id required | integer Server ID |
| graphName required | string one of cpu-usage|cpu-load-average|disk-usage|memory-usage|disk-io|network |
Array of arrays graph data |
{- "": [ ]
}Gets a list of server metric triggers
| id required | integer Server ID |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of arrays triggers |
{- "": [ ]
}Stores a new metric trigger
| id required | integer Server ID |
required | Array of objects trigger data |
| type required | integer 1: load average, 2: cpu usage, 3: memory usage, 4: disk usage, 5: disk IO, 6: network, 111: nginx, 112: apache, 113: fpm, 114: redis, 115: keydb, 116: supervisor, 117: docker, 118: mysql, 119: mongo, 120: haproxy, 121: service, 122: postgresql, 123: iis |
{- "data": null,
- "message": "string"
}Updates a metric trigger
| id required | integer Server ID |
| triggerID required | integer trigger ID |
required | Array of objects trigger data |
| message | string |
{- "message": "string"
}Updates a server check trigger
| id required | integer Server ID |
| checkId required | integer Check ID |
| triggerId required | integer Trigger ID |
required | Array of objects trigger data |
| message | string |
{- "message": "string"
}Returns a list of notification roles
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects notification roles |
{- "": [
- {
- "id": 0,
- "client_id": 0,
- "created_at": "string",
- "name": "string",
- "integrations": [ ],
- "recipients": [ ],
- "updated_at": "string",
- "repeat_incidents": true,
- "repeat_incidents_interval_in_seconds": 0
}
]
}Creates a new notification role
| name required | string role name |
| repeat_incidents | boolean repeat incidents |
| repeat_incidents_interval_in_seconds | integer repeat incidents interval in seconds |
Array of objects role recipients | |
Array of objects |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "created_at": "string",
- "name": "string",
- "integrations": [ ],
- "recipients": [ ],
- "updated_at": "string",
- "repeat_incidents": true,
- "repeat_incidents_interval_in_seconds": 0
}
], - "message": "string"
}Returns a notification role
| id required | integer Notification Role ID |
Array of objects notification role |
{- "": [
- {
- "id": 0,
- "client_id": 0,
- "created_at": "string",
- "name": "string",
- "integrations": [ ],
- "recipients": [ ],
- "updated_at": "string",
- "repeat_incidents": true,
- "repeat_incidents_interval_in_seconds": 0
}
]
}Updates a notification role
| id required | integer Notification Role ID |
| name required | string role name |
| repeat_incidents | boolean repeat incidents |
| repeat_incidents_interval_in_seconds | integer repeat incidents interval in seconds |
Array of objects role recipients | |
Array of objects |
| message | string |
{- "message": "string"
}Gets a list of orders
| status | string one of pending|completed|canceled |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects orders |
{- "": [
- {
- "id": 0,
- "cost": 0,
- "options": [ ],
- "actions": [ ],
- "client_id": 0,
- "period_id": true,
- "status": 0,
- "created_at": "string",
- "updated_at": "string",
- "type": "string",
- "statuses": "string"
}
]
}Returns list of quotations
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| status | string Enum: "active" "expired" Status |
| X-Total-Count | boolean Fetch all rows |
Array of objects Logs list | |
| total | integer Number of logs |
| current_page | integer Current page |
| first_page_url | string Url of first page |
| last_page_url | string Url of last page |
| next_page_url | string Url of next page |
| prev_page_url | string Url of previous page |
| links | object Links of related pages |
| from | string From |
| to | string To |
| path | string Path |
{- "data": [
- {
- "id": 0,
- "title": "string",
- "setup_qs": true,
- "client_id": 0,
- "currency_id": 0,
- "account_manager": 0,
- "items": { },
- "client_name": "string",
- "valid_until": "string",
- "account_manager_name": "string",
- "total": 0
}
], - "total": 0,
- "current_page": 0,
- "first_page_url": "string",
- "last_page_url": "string",
- "next_page_url": "string",
- "prev_page_url": "string",
- "links": { },
- "from": "string",
- "to": "string",
- "path": "string"
}Returns quotation data
| id required | integer quotation id |
boolean Export as pdf |
| id | integer ID |
| title | string Title |
| note | string Note |
| account_manager | integer Account manager |
| client_id | integer Client ID |
| period_id | integer Period ID |
| currency_id | integer Currency ID |
| valid_until | string Valid until |
| setup_qs | boolean Setup quantity sensitive |
| name | string Client's name |
string Client's email | |
| company | string Client's company |
| total | number <float> Total |
| items | object Items |
| account_manager_name | string Account managers's name |
| period_name | string Period's name |
| send_date | string Send data |
{- "id": 0,
- "title": "string",
- "note": "string",
- "account_manager": 0,
- "client_id": 0,
- "period_id": 0,
- "currency_id": 0,
- "valid_until": "string",
- "setup_qs": true,
- "name": "string",
- "email": "string",
- "company": "string",
- "total": 0,
- "items": { },
- "account_manager_name": "string",
- "period_name": "string",
- "send_date": "string"
}Get a list of clients configurations for report email
Array of objects Report email configs |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "title": "string",
- "interval": 0,
- "include_paused_checks": true,
- "modules": [ ]
}
]
}Gets clients Report Email Config
| id required | integer Report Email Config ID |
Array of objects Status pages |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "title": "string",
- "interval": 0,
- "include_paused_checks": true,
- "modules": [ ]
}
]
}Updates a report email config
| id required | integer Report Email Config ID |
| title required | any |
| interval required | any Email interval (integer in: 1:daily, 2:weekly, 3:monthly) |
| include_paused_checks | any boolean |
| contacts | any array |
| message | string |
{- "message": "string"
}Creates a new report email config
| title required | any |
| interval required | any Email interval (integer in: 1:daily, 2:weekly, 3:monthly) |
| include_paused_checks | any boolean |
| contacts | any array |
{- "data": null,
- "message": "string"
}Adds/Removes checks to/from a report email config
| reportEmailConfigId required | integer Report Email Config ID |
| checks required | Array of arrays Check IDs |
| message | string |
{- "message": "string"
}Gets a list of report email config checks in tree format
| reportEmailConfigId required | integer Report Email Config ID |
Array of arrays Report email config checks in the following format: group->subgroup->server->checks |
{- "": [ ]
}Adds a check to a report email config
| reportEmailConfigId required | integer Report Email Config ID |
| check_id required | integer Check ID |
| message | string |
{- "message": "string"
}Adds server checks to a report email config
| reportEmailConfigId required | integer Report Email Config ID |
| device_id required | integer Server ID |
| message | string |
{- "message": "string"
}Adds group checks to a report email config
| reportEmailConfigId required | integer Report Email Config ID |
| group_id required | integer Group ID |
| message | string |
{- "message": "string"
}Returns the main service
Array of objects service |
{- "": [
- {
- "id": 0,
- "active": 0,
- "auto_bill": "string",
- "bill_prior": "string",
- "billing_info_id": [ ],
- "billing_type": [ ],
- "cancel_after": "string",
- "cancel_bool": "string",
- "client_id": "string",
- "cost": "string",
- "created": "string",
- "discount_price": "string",
- "discount_setup": "string",
- "discount_type_price": "string",
- "discount_type_setup": "string",
- "end": "string",
- "invoicestatus": "string",
- "invoicestatus_name": "string",
- "is_cancelled": "string",
- "is_free_plan": "string",
- "is_setup_sensitive_to_quantity": "string",
- "is_suspended": "string",
- "lastrenew": "string",
- "name": "string",
- "options": [ ],
- "order_id": "string",
- "parent": "string",
- "period_id": "string",
- "period_name": "string",
- "plan_id": "string",
- "post_renew": "string",
- "price": "string",
- "prorate_reason": "string",
- "prorated": "string",
- "prorateddate": "string",
- "quantity": "string",
- "referred_by": "string",
- "renewdate": "string",
- "setup": "string",
- "setup_qs": "string",
- "start": "string",
- "suspend_after": "string",
- "suspend_bool": "string",
- "used_sms": "string"
}
]
}Returns the reserved service
Array of objects service |
{- "": [
- {
- "id": 0,
- "active": 0,
- "auto_bill": "string",
- "bill_prior": "string",
- "billing_info_id": [ ],
- "billing_type": [ ],
- "cancel_after": "string",
- "cancel_bool": "string",
- "client_id": "string",
- "cost": "string",
- "created": "string",
- "discount_price": "string",
- "discount_setup": "string",
- "discount_type_price": "string",
- "discount_type_setup": "string",
- "end": "string",
- "invoicestatus": "string",
- "invoicestatus_name": "string",
- "is_cancelled": "string",
- "is_free_plan": "string",
- "is_setup_sensitive_to_quantity": "string",
- "is_suspended": "string",
- "lastrenew": "string",
- "name": "string",
- "options": [ ],
- "order_id": "string",
- "parent": "string",
- "period_id": "string",
- "period_name": "string",
- "plan_id": "string",
- "post_renew": "string",
- "price": "string",
- "prorate_reason": "string",
- "prorated": "string",
- "prorateddate": "string",
- "quantity": "string",
- "referred_by": "string",
- "renewdate": "string",
- "setup": "string",
- "setup_qs": "string",
- "start": "string",
- "suspend_after": "string",
- "suspend_bool": "string",
- "used_sms": "string"
}
]
}Gets a list of client sessions
| length | integer page length, -1: all results |
| start | integer Index of first item |
Array of objects sessions |
{- "": [
- {
- "agent": "string",
- "browser": "string",
- "city": "string",
- "client_id": 0,
- "contact_id": 0,
- "country": "string",
- "country_iso": "string",
- "hide": true,
- "ip": "string",
- "last_activity": "string",
- "last_activity_readable": "string",
- "no": "string",
- "platform": "string",
- "user_name": "string"
}
]
}Get a list of clients status pages
Array of objects Status pages |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "hash": "string",
- "custom_url": "string",
- "title": "string",
- "logo": null,
- "color": "string",
- "theme": "string",
- "modules": "string"
}
]
}Gets clients status page
| id required | integer Status Page ID |
Array of objects Status pages |
{- "data": [
- {
- "id": 0,
- "client_id": 0,
- "hash": "string",
- "custom_url": "string",
- "title": "string",
- "logo": null,
- "color": "string",
- "theme": "string",
- "modules": "string"
}
]
}Updates a status page
| id required | integer Status Page ID |
| custom_url | any |
| title required | any |
| logo | any image binary |
| color | any |
| theme | any |
| message | any |
| password | any |
| disallow_robots | any |
| history_in_days | any |
| link | any |
| hide_check_type | any |
| visual_configs | any |
| meta_tags | any |
| translations | any |
| message | string |
{- "message": "string"
}Creates a new status page
| custom_url | any |
| title required | any |
| color | any |
| theme | any |
| message | any |
| password | any |
| disallow_robots | any |
| history_in_days | any |
| link | any |
| hide_check_type | any |
| visual_configs | any |
| meta_tags | any |
| translations | any |
{- "data": null,
- "message": "string"
}Adds/Deletes checks to/from a status page
| statusPageId required | integer Status Page ID |
| checks required | Array of arrays Array of Check IDs (pass empty array to delete all checks) |
| message | string |
{- "message": "string"
}Gets a list of status page checks in tree format
| statusPageId required | integer Status Page ID |
Array of arrays Status pages checks in the following format: group->subgroup->server->checks |
{- "": [ ]
}Adds server checks to a status page
| statusPageId required | integer Status Page ID |
| device_id required | integer Server ID |
| message | string |
{- "message": "string"
}Adds group checks to a status page
| statusPageId required | integer Status Page ID |
| group_id required | integer Group ID |
| message | string |
{- "message": "string"
}Returns a list of tickets
| status | integer available statuses can be obtained from its corresponsing api |
| state | integer |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of objects tickets |
{- "": [
- {
- "created_at": "string",
- "assignment": 0,
- "assignment_name": "string",
- "department_id": 0,
- "department_name": "string",
- "is_user_subscribed": true,
- "priority": 0,
- "priority_name": "string",
- "read": true,
- "status_color": "string",
- "status_name": "string",
- "subject": "string",
- "updated_at": "string"
}
]
}Creates a new ticket
| body required | string |
| subject required | string min:4, max:255 |
| priority required | integer available priorities can be obtained from its corresponsing api |
| department_id required | integer available departments can be obtained from its corresponsing api |
| file | file |
{- "data": [
- {
- "created_at": "string",
- "assignment": 0,
- "assignment_name": "string",
- "department_id": 0,
- "department_name": "string",
- "is_user_subscribed": true,
- "priority": 0,
- "priority_name": "string",
- "read": true,
- "status_color": "string",
- "status_name": "string",
- "subject": "string",
- "updated_at": "string"
}
], - "message": "string"
}Returns ticket details
| id required | integer Ticket ID |
Array of objects tickets |
{- "": [
- {
- "created_at": "string",
- "assignment": 0,
- "assignment_name": "string",
- "department_id": 0,
- "department_name": "string",
- "is_user_subscribed": true,
- "priority": 0,
- "priority_name": "string",
- "read": true,
- "status_color": "string",
- "status_name": "string",
- "subject": "string",
- "updated_at": "string"
}
]
}Returns a list of ticket replies
| id required | integer Ticket ID |
| per_page | integer page length |
| page | integer page index |
| sort | string Example: sort=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
Array of arrays ticket replies |
{- "": [ ]
}Creates a new ticket reply
| id required | integer Ticket ID |
| body required | string |
| file | Array of arrays |
Array of arrays ticket reply | |
| message | string |
{- "": [ ],
- "message": "string"
}Returns all triggers
| server | integer server ID |
| check | integer check ID |
| notification_roles | integer array of notification role IDs |
| empty_notification_role | integer set to 1 if you want to retrieve triggers with no notification roles (do not sned notification_roles at the same time) |
| types | integer types |
| per_page | integer page length |
| page | integer page index |
| sort_by | string Example: sort_by=id.desc Sort result |
| X-Total-Count | boolean Fetch all rows |
| X-Only-Count | boolean Only return count |
Gets uptime
| group_id | string One groupID (e.g. 3) or several commar seperated groupIDs (e.g. 1,4,5,6) |
| period | string one of today|last_week|this_week|last_month|this_month|this_quarter|last_year|this_year |
| type | integer PING: 20, HTTP: 21, DNS: 22, FTP: 23, SMTP: 24, POP3: 25, IMAP: 26 |
| status | string up|down|pause|maintenance |
Returns uptime report
| group_id | string One groupID (e.g. 3) or several commar seperated groupIDs (e.g. 1,4,5,6) |
| start_report | integer timestamp |
| end_report | integer timestamp |
| period | integer today|last_weekthis_week|last_month|this_month|this_quarter|last_year|this_year (do not send start_report and end_report if sending this) |
integer set to 1 for pdf report |