- 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
Get Site Usage
GET
https://api.servebolt.io/v1/environments/{id}/usage
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
id
string
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/environments//usage' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
🟢200OK
application/json
Body
data
object
required
id
integer
required
type
string
required
attributes
object
required
Example
{
"data": {
"id": 1785,
"type": "environment_usage",
"attributes": {
"billing_period": {
"from": "2024-04-09T14:08:07.787292Z",
"to": "2024-05-09T14:08:07.787440Z"
},
"storage": {
"used": 0,
"left": 4096,
"available": 4096,
"percent_used": 0,
"threshold_warning": false
},
"memory_limit": {
"used": 256,
"available": 256
},
"dynamic_requests": {
"used": 0,
"left": 0,
"available": 0,
"percent_used": 0,
"threshold_warning": false
},
"peak_dynamic_requests": {
"used": 0
}
}
}
}
Modified at 2025-06-25 09:04:09