Servebolt API (v1)
Submit feedback
Submit feedback
  1. Databases
  • Introduction
  • Auth
    • Signup
      POST
    • Login
      POST
    • User Info
      GET
    • Heartbeat
      GET
    • Refresh Token
      POST
    • Reset Password
      POST
    • Resend SMS verification code
      POST
    • Verify your phone number
      POST
    • MFA Challenge (OTP)
      POST
  • Bolts
    • Access
      • Invite User Contact
      • List Contacts
      • Update Contact Role
      • Delete Contact
    • Databases
      • List Bolt Databases
        GET
      • Get Bolt Database
        GET
      • Create Bolt Database
        POST
      • Update Bolt Database
        PUT
      • Delete Bolt Database
        DELETE
    • Statistics
      • Dynamic Requests Statistics
      • TTFB Statistics
      • Storage Statistics
      • Content Type Statistics
      • Cache Statistics
      • Environments Dynamic Requests Statistics
      • Environments TTFB Statistics
      • Environments Storage Statistics
    • List Bolts
      GET
    • Bolt Name Validate
      POST
    • Available CMS
      GET
    • Create Bolt
      POST
    • Get Bolt
      GET
    • Get Bolt Environments
      GET
    • Update Bolt
      PUT
    • Archive Bolt
      DELETE
    • Available PHP Versions
      GET
    • Get Bolt Subscription
      GET
    • Bolt Usage
      GET
    • Update Bolt Quota
      POST
    • Transfer Bolt Request
      POST
    • Transfer Bolt Request Copy
      GET
  • Environments
    • Git
      • Get Environment Git Status
      • Create Git Configuration
      • Update Git Configuration
      • Delete Environment Git Repository
      • Deploy Git Repository
      • Regenerate Git Public Key
      • Retrieve Git Repository Branches
      • Test Git Repository Connection
    • Domains
      • List Domains
      • List Environment Domains
      • Get Environment Domain
      • Create Domain Validation
      • Create Environment Domain
      • Delete Domain
      • Get Domain Certificates
      • Link Certificate to Domain
      • Unlink Certificate from Domain
    • Logs
      • Get Environment Apache Access Logs
      • Get Environment Apache Error Logs
      • Get Environment Cron Errors
    • List Environments
    • Create Environment
    • Get Environment
    • Update Environment
    • Delete Environment
    • Purge Environment Cache
    • List Environment Cronjobs
    • Get Environment Statistics
    • Get Environment Available Settings
    • Get Environment PHP Versions
    • Get Environment Usage
    • Get Environment SSH Accesses
    • Create Environment SSH Access
    • Remove Environment SSH Access
    • List Environment Databases
    • Toggle Environment Dev Mode
    • Environment Install Wordpress
    • Environment Optimize Wordpress
  • Locations
    • List Locations
    • Check SL8 Availability
    • Available Countries
  • Databases
    • List Databases
    • Get Database
    • Create Database
    • Update Database
    • Delete Database
    • Link Database
    • Unlink Database
    • Get Slow Queries
  • Cronjobs
    • List Cronjobs
    • Create Cronjob
    • Get Cronjob
    • Update Cronjob
    • Delete Cronjob
  • SSH Keys
    • List SSH Keys
    • Add a new SSH Key
    • Get SSH Key
    • Delete SSH Key
  • Certificates
    • List Certificate Orders
    • Get Certificate Order
    • Order new Certificate
    • Store custom certificate
    • Update Auto-Renewal
    • Verify DNS challenge
    • Delete Certificate Order
  • Billing
    • Pricing Calculator
    • Get Billing Customer Info
    • Update Bolt Subscription
    • List Invoices
    • Download Invoice
  • Profile
    • Get User Profile
    • Update User Profile
    • Update Profile Picture
    • Delete Profile Picture
  1. Databases

List Bolt Databases

GET
/v1/bolts/{boltId}/databases
List all databases associated with a Bolt.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
boltId
string 
required
The ID of your bolt.
Example:
1234

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/1234/databases'

Responses

🟢200OK
application/json
Body
data
array [object {4}] 
required
id
integer 
optional
type
string 
optional
attributes
object 
optional
relationships
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": 1261,
      "type": "databases",
      "attributes": {
        "webhostId": 8988,
        "name": "Test",
        "dbHost": "xxx",
        "dbName": "testob",
        "dbUser": "testob",
        "size": 0,
        "tags": "",
        "environments": [
          {
            "id": 1760,
            "name": "Test",
            "state": "development"
          }
        ]
      },
      "relationships": {
        "bolt": {
          "data": {
            "type": "bolts",
            "id": 8988
          }
        },
        "server": {
          "data": {
            "type": "servers",
            "id": 35
          }
        }
      }
    }
  ],
  "links": {
    "first": "https://xxx/v1/bolts/8988/databases?page=1",
    "last": "https://xxx/v1/bolts/8988/databases?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "https://xxx/v1/bolts/8988/databases?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "Next »",
        "active": false
      }
    ],
    "path": "https://xxx/v1/bolts/8988/databases",
    "per_page": 15,
    "to": 1,
    "total": 1
  }
}
Modified at 2024-07-04 11:57:30
Previous
Delete Contact
Next
Get Bolt Database
Built with