Prices
Beta3 endpoints, each naming the scope its key must carry.
GET /v1/prices
scopeservices:readList prices: every service in a country, or every country for a service
Query parameters
countrystringservicestring
Returns
objectstringdataarray of priceobjectstringcountrystringservicestringavailablebooleanunavailable_reasonstringpriceapimoneystockintegerquote_tokenstringquote_expires_attimestamphas_morebooleannext_cursorstring
curl https://api.ghostsms.io/v1/prices \
-H "Authorization: Bearer $GHOSTSMS_KEY"{
"object": "activation",
"data": [
{
"object": "activation",
"country": "…",
"service": "…",
"available": false,
"unavailable_reason": "…",
"price": "…",
"stock": 0,
"quote_token": "…",
"quote_expires_at": "2026-09-18T10:35:00Z"
}
],
"has_more": false,
"next_cursor": "…"
}GET /v1/rental-prices
scopeservices:readList the rental durations offered in a country, with their prices
Query parameters
countrystringRequired
Returns
objectstringdataarray of rentalpriceobjectstringcountrystringduration_hoursintegerlabelstringpriceapimoneyhas_morebooleannext_cursorstring
curl https://api.ghostsms.io/v1/rental-prices \
-H "Authorization: Bearer $GHOSTSMS_KEY"{
"object": "activation",
"data": [
{
"object": "activation",
"country": "…",
"duration_hours": 0,
"label": "…",
"price": "…"
}
],
"has_more": false,
"next_cursor": "…"
}GET /v1/prices/{country}/{service}
scopeservices:readPrice one service in one country, with a token that holds the price for a purchase
Returns
objectstringcountrystringservicestringavailablebooleanunavailable_reasonstringpriceapimoneyamountintegercurrencystringstockintegerquote_tokenstringquote_expires_attimestamp
curl https://api.ghostsms.io/v1/prices/{country}/{service} \
-H "Authorization: Bearer $GHOSTSMS_KEY"{
"object": "activation",
"country": "…",
"service": "…",
"available": false,
"unavailable_reason": "…",
"price": {
"amount": 0,
"currency": "…"
},
"stock": 0,
"quote_token": "…",
"quote_expires_at": "2026-09-18T10:35:00Z"
}