Servebolt API (v1)
Submit feedback
Submit feedback
  1. Git
  • Introduction
  • Auth
    • Signup
    • Login
    • User Info
    • Heartbeat
    • Refresh Token
    • Reset Password
    • Resend SMS verification code
    • Verify your phone number
    • MFA Challenge (OTP)
  • Bolts
    • Access
      • Invite User Contact
      • List Contacts
      • Update Contact Role
      • Delete Contact
    • Databases
      • List Bolt Databases
      • Get Bolt Database
      • Create Bolt Database
      • Update Bolt Database
      • Delete Bolt Database
    • 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
    • Bolt Name Validate
    • Available CMS
    • Create Bolt
    • Get Bolt
    • Get Bolt Environments
    • Update Bolt
    • Archive Bolt
    • Available PHP Versions
    • Get Bolt Subscription
    • Bolt Usage
    • Update Bolt Quota
    • Transfer Bolt Request
    • Transfer Bolt Request Copy
  • Environments
    • Git
      • Get Environment Git Status
        GET
      • Create Git Configuration
        POST
      • Update Git Configuration
        PUT
      • Delete Environment Git Repository
        DELETE
      • Deploy Git Repository
        POST
      • Regenerate Git Public Key
        POST
      • Retrieve Git Repository Branches
        GET
      • Test Git Repository Connection
        GET
    • 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
      GET
    • Create Environment
      POST
    • Get Environment
      GET
    • Update Environment
      PATCH
    • Delete Environment
      DELETE
    • Purge Environment Cache
      POST
    • List Environment Cronjobs
      GET
    • Get Environment Statistics
      GET
    • Get Environment Available Settings
      GET
    • Get Environment PHP Versions
      GET
    • Get Environment Usage
      GET
    • Get Environment SSH Accesses
      GET
    • Create Environment SSH Access
      POST
    • Remove Environment SSH Access
      DELETE
    • List Environment Databases
      GET
    • Toggle Environment Dev Mode
      POST
    • Environment Install Wordpress
      POST
    • Environment Optimize Wordpress
      POST
  • 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. Git

Regenerate Git Public Key

POST
/v1/environments/{id}/git/generate-deploy-key
Regenerate the git public key needed for deployments.

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 POST 'https://api.servebolt.io/v1/environments//git/generate-deploy-key' \
--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": 78,
    "type": "git",
    "attributes": {
      "localpath": "public",
      "git_root": "public.git",
      "repodef": "git@github.com:octocat/Hello-World.git",
      "branch": "master",
      "autopull": false,
      "pre_script": null,
      "post_script": null,
      "repomodified": true,
      "enabled": true,
      "commit": null,
      "last_trigger": "2024-05-10T07:21:06.000000Z",
      "last_status": true,
      "last_message": "Git deploy requested",
      "publickey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDL+/RIL49+IunNhsX55yO32LOmenLtYfKO0Z7oMR2CojqjHpFa9yiePIccZPwGwhRC3m6Jp7bRB6tECMgh7nxpR94Q6Va5Xk701tl7UFrWD6kmtLw3CWuA9z+UEzBbU/t1W8nEPzdrrkyDBazGirCt4E7MUxmQ1YSFIzGjHWPUGGOqt3OQ9vFFsARe/7+NUu7C1ABpmdzJlMarvx2AIkF2AaHWZxohUU6QSxJUgppMfDHnHW8yyZygiV36kIA60GkI2F7ki7YIr55j3rA83mCm77vl10jLajwu5pvWmWM+/rLcW5QkJrGBIfTMrvBjr5Ve1RQnaeFL9aAVJJujzXBvK5koEygXH/eQDDEne76h/SnPd1qaGeq0JhwT0xeLx20M8o76Kjm9p0Ye/WvAQm8NCbVcSb7nIhVPqHX+GWoJ8Bi6v221Lpp0ZWI15uV8PWuYyf2Ttqh5cZqiTspJrOzAZHIRkI7EMG/Y7JgtnTY8Bk9+usx5klmELsLYfmxut7s= Servebolt-test-1785"
    }
  }
}
Modified at 2024-05-29 13:58:50
Previous
Deploy Git Repository
Next
Retrieve Git Repository Branches
Built with