- 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
Order new Certificate
POST
https://api.servebolt.io/v1/certificates/order
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
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"type": "SELF_SIGNED",
"isWildcard": false,
"domainId": 2473
}
}
}
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/certificates/order' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"attributes": {
"type": "SELF_SIGNED",
"isWildcard": false,
"domainId": 2473
}
}
}'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"data": {
"id": 103,
"type": "certificateOrder",
"attributes": {
"customerId": 2004,
"sslId": null,
"type": "SELF_SIGNED",
"status": "DRAFT",
"domain": "domain.com",
"isWildcard": false,
"isLinkable": true,
"isUsed": false,
"domains": [
{
"id": 2473,
"name": "domain.com",
"boltId": 8944,
"environmentId": 1702
}
],
"autoRenew": true,
"dnsChallenges": [],
"expiresAt": null
}
}
}
🟠422Parameter Error
🟢201Created
Modified at 2024-05-29 12:06:25