List add-ons available and owned
curl --request GET \
--url https://my.server.express/api/v1/dedicated/{id}/addons \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/dedicated/{id}/addons', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/addons"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"catalog": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"appliesTo": "<string>",
"price": 123,
"currency": "<string>",
"billingCycle": "<string>",
"taxable": true,
"active": true,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z"
}
],
"owned": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addonProductId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"status": "ACTIVE",
"externalRef": "<string>",
"metadata": {},
"nextDueDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"addonProduct": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"appliesTo": "<string>",
"price": 123,
"currency": "<string>",
"billingCycle": "<string>",
"taxable": true,
"active": true,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z"
}
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Dedicated
List add-ons available and owned
The active add-on catalogue for dedicated servers (by name) and the add-ons already on this server (newest first). Needs billing access (owner or team ADMIN).
GET
/
v1
/
dedicated
/
{id}
/
addons
List add-ons available and owned
curl --request GET \
--url https://my.server.express/api/v1/dedicated/{id}/addons \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/dedicated/{id}/addons', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/dedicated/{id}/addons"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"data": {
"catalog": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"appliesTo": "<string>",
"price": 123,
"currency": "<string>",
"billingCycle": "<string>",
"taxable": true,
"active": true,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z"
}
],
"owned": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"serviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addonProductId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"quantity": 123,
"status": "ACTIVE",
"externalRef": "<string>",
"metadata": {},
"nextDueDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"addonProduct": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"slug": "<string>",
"name": "<string>",
"description": "<string>",
"appliesTo": "<string>",
"price": 123,
"currency": "<string>",
"billingCycle": "<string>",
"taxable": true,
"active": true,
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z"
}
}
]
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Path Parameters
The dedicated server's service id.