- 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
List Locations
GET
https://api.servebolt.io/v1/locations
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
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/locations' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json'
Responses
🟢200OK
application/json
Body
data
array [object {3}]
required
id
integer
required
type
string
required
attributes
object
required
Example
{
"data": [
{
"id": 4170,
"type": "locations",
"attributes": {
"country": "NO",
"countryFull": "Norge",
"location": "Oslo",
"phpVersions": [
"7.4",
"8.3",
"8.2",
"8.1",
"8.0"
]
}
},
{
"id": 4410,
"type": "locations",
"attributes": {
"country": "US",
"countryFull": "United States",
"location": "New York, NY",
"phpVersions": [
"7.4"
]
}
}
]
}
Modified at 2024-05-29 09:25:19