Ethiack Docs
Organizations

Get an organization's credits

GET
/v1/organizations/{organization_id}/credits

Return the organization's spendable balance and reserved credits.

AuthorizationBearer <token>

An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.

In: header

Path Parameters

organization_id*integer

Response Body

application/json

application/json

curl -X GET "https://api.ethiack.com/v1/organizations/0/credits"
{
  "organization_id": 0,
  "balance": 0,
  "reserved": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}