Read the credit

What is left of the credit, and what the VMs used.

GET /v1/tenants/{tenant}/credit

curl -X GET "https://api.shako.dev/v1/tenants/acme/credit" \
  -H "Authorization: Bearer $SHAKO_API_KEY"

200 (excerpt)

{
  "balance": "12.34",
  "used": "2.66",
  "held": false
}

Authenticate with Authorization: Bearer <API key> on https://api.shako.dev. Role: contributor or owner.

Path parameters

tenantstringrequired
The tenant's name, from GET /v1/tenants.

Response

200 with the credit object.

The errors. All the endpoints of Billing.