- Introduction
- Auth
- Bolts
- Sites
- Git
- Domains
- Logs
- List SitesGET
- Create SitePOST
- Get SiteGET
- Update SitePATCH
- Delete SiteDELETE
- Purge Site CachePOST
- List Site CronjobsGET
- Get Site StatisticsGET
- Get Environment Available SettingsGET
- Get Site Available PHP VersionsGET
- Get Site UsageGET
- Get Site SSH AccessesGET
- Create Site SSH AccessPOST
- Remove Site SSH AccessDELETE
- List Site DatabasesGET
- Toggle Site Dev ModePOST
- Site Install WordpressPOST
- Site Optimize WordpressPOST
- Locations
- Databases
- Cronjobs
- SSH Keys
- Certificates
- Billing
- Profile
List Sites
GET
https://api.servebolt.io/v1/environments
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.servebolt.io/v1/environments'
Responses
🟢200OK
application/json
Body
data
array [object {5}]Â
required
id
stringÂ
required
type
stringÂ
required
attributes
objectÂ
required
relationships
objectÂ
required
links
objectÂ
required
links
objectÂ
required
first
stringÂ
required
last
stringÂ
required
prev
nullÂ
required
next
nullÂ
required
meta
objectÂ
required
current_page
integerÂ
required
from
integerÂ
required
last_page
integerÂ
required
links
array [object {3}]Â
required
path
stringÂ
required
per_page
integerÂ
required
to
integerÂ
required
total
integerÂ
required
Example
{
"data": [
{
"id": "string",
"type": "string",
"attributes": {
"title": "string",
"enabled": true,
"hostname": "string",
"ip": "string",
"internalName": "string",
"internalUrl": "string",
"phpVersion": "string",
"phpExtensions": [
{
"id": 0,
"name": "string",
"cli": true,
"web": true
}
],
"phpWorkers": {
"max": 0,
"nice": 0,
"maxRequests": 0
},
"domains": [
"string"
],
"state": "string",
"storage": {
"used": null,
"total": 0
},
"location": "string",
"devMode": true,
"apikey": "string",
"isLegacy": true,
"cloudflareLock": true,
"cacheMode": "string",
"phpMemoryLimit": 0,
"htaccessRoot": "string",
"ssh": true,
"sftp": true,
"phpTimezone": "string"
},
"relationships": {
"bolt": {
"data": {
"id": "string",
"type": "string",
"attributes": {
"internalName": "string"
}
}
}
},
"links": {
"self": "string"
}
}
],
"links": {
"first": "string",
"last": "string",
"prev": null,
"next": null
},
"meta": {
"current_page": 0,
"from": 0,
"last_page": 0,
"links": [
{
"url": "string",
"label": "string",
"active": true
}
],
"path": "string",
"per_page": 0,
"to": 0,
"total": 0
}
}
Modified at 2025-06-25 09:52:09