List of all subscriptions
const response = await fetch('https://beta.data.banyan.computer/api/v1/subscriptions', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
[ { "id": "text", "currently_active": false, "service_key": "text", "tax_class": "text", "title": "text", "features": { "archival_available": false }, "pricing": { "archival": 0, "hot_storage": 0, "plan_base": 0, "bandwidth": 0 } } ]
Subscription object
const response = await fetch('https://beta.data.banyan.computer/api/v1/subscriptions/{subscription_id}', { method: 'GET', headers: { "Authorization": "Bearer JWT" }, }); const data = await response.json();
{ "id": "text", "currently_active": false, "service_key": "text", "tax_class": "text", "title": "text", "features": { "archival_available": false }, "pricing": { "archival": 0, "hot_storage": 0, "plan_base": 0, "bandwidth": 0 } }