- Introduction
- Auth
- Bolts
- Sites
- Git
- Domains
- Logs
- List Sites
- Create Site
- Get Site
- Update Site
- Delete Site
- Purge Site Cache
- List Site Cronjobs
- Get Site Statistics
- Get Environment Available Settings
- Get Site Available PHP Versions
- Get Site Usage
- Get Site SSH Accesses
- Create Site SSH Access
- Remove Site SSH Access
- List Site Databases
- Toggle Site Dev Mode
- Site Install Wordpress
- Site Optimize Wordpress
- Locations
- Databases
- Cronjobs
- SSH Keys
- Certificates
- Billing
- Profile
Get Bolt Sites
GET
https://api.servebolt.io/v1/bolts/{id}/environments
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
integer
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
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/bolts//environments' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
🟢200OK
application/json
Body
data
array [object {5}]
required
id
string
optional
type
string
optional
attributes
object
optional
relationships
object
optional
links
object
optional
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": "1760",
"type": "environments",
"attributes": {
"title": "Test",
"enabled": true,
"hostname": "xxx",
"ip": "185.91.65.158",
"internalName": "testyx_1760",
"internalUrl": "testyx-1760.xxx",
"phpVersion": "8.3",
"phpExtensions": [],
"phpWorkers": {
"max": 128,
"nice": 18,
"maxRequests": 500
},
"domains": [],
"state": "development",
"storage": {
"used": null,
"total": 4096
},
"location": "Oslo, NO",
"devMode": false,
"apikey": "xxx",
"isLegacy": false,
"cloudflareLock": false,
"cacheMode": "all",
"phpMemoryLimit": 128,
"htaccessRoot": "public",
"ssh": true,
"sftp": true,
"phpTimezone": "UTC"
},
"relationships": {
"bolt": {
"data": {
"id": "8988",
"type": "bolts",
"attributes": {
"internalName": "wefwef_8988"
}
}
}
},
"links": {
"self": "https://api.sbdev.r99.no/v1/environments/1760"
}
}
],
"links": {
"first": "https://api.sbdev.r99.no/v1/bolts/8988/environments?page=1",
"last": "https://api.sbdev.r99.no/v1/bolts/8988/environments?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.sbdev.r99.no/v1/bolts/8988/environments?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://api.sbdev.r99.no/v1/bolts/8988/environments",
"per_page": 15,
"to": 1,
"total": 1
}
}
Modified at 2025-06-25 09:42:38