Get an organization's credits
Return the organization's spendable balance and reserved credits.
An API key created in Portal → Settings → API, sent as Authorization: Bearer <key>.
In: header
Path Parameters
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": {}
}
]
}Create an organization POST
Create an organization on behalf of an integrator's partner. Restricted to integrators; the caller's own `is_integrator` partner becomes the owning partner of the new organization. Seeds an `INTEGRATOR_ORG` subscription from the `"integrated"` catalog plan, capped by the partner's own asset limit.
Delete an organization DELETE
Delete an organization on behalf of the integrator that manages it. Restricted to integrators, as in legacy. The organization must belong to the caller's own partner and must have granted that partner full access (legacy's `accept_impersonation`): another partner's or an unknown organization is a 404, one that withheld consent a 403. Its subscriptions are removed with it; its findings are kept, detached from the organization, as legacy left them.