A subject’s Plune AI credits, grant by grant
const url = 'https://beta-api.plune.ai/v1/admin/credits?subject=company%3A6f1c2b3a-0000-4000-8000-0000000000a5';const options = {method: 'GET', headers: {cookie: 'plune_session=<plune_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://beta-api.plune.ai/v1/admin/credits?subject=company%3A6f1c2b3a-0000-4000-8000-0000000000a5' \ --cookie plune_session=<plune_session>#1427 D15 (frame 07): every grant of one account or company, newest first (up to 100), with used, left, its source, note and who granted it; granted and left sum the grants usable now. Owner-only, as GET /v1/admin/tier-grants (an admin token with the tier-grants door too); everyone else gets 404. Ten calls a minute.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
company:6f1c2b3a-0000-4000-8000-0000000000a5user:<id> or company:<id>
Responses
Section titled “ Responses ”The credits
object
object
#1427 D15: a grant as the admin sees it — with where it came from, the operator’s note and who granted it.
object
The payment or paid plan it came from (payment monopay <invoice>, tier_grant <id>).
The operator’s words on a grant by hand.
pack: the provider it was paid through.
month: the plan that paid for it.
month: its paid seats (Free and Personal: 1).
The address of whoever granted it by hand.
Example
{ "subject": { "kind": "company", "id": "6f1c2b3a-0000-4000-8000-0000000000a5" }, "granted": 150, "left": 120, "grants": [ { "id": "g-1", "reason": "month", "amount": 150, "used": 30, "left": 120, "validFrom": "2026-09-16T09:12:04.151Z", "validUntil": "2026-10-16T09:12:04.151Z", "expired": false, "sourceRef": "tier_grant tg-1", "note": null, "grantedBy": null, "createdAt": "2026-09-16T09:12:04.151Z" } ]}subject is not user:<id> or company:<id>
object
Example generated
{ "error": "example"}No / invalid session
The caller does not own the application — or there is no such account or company
object
Example generated
{ "error": "example"}Rate-limited: the per-route throttle, or the per-minute request limit of the plan an API token counts by (#1442; the body names the plan, #2092). Retry-After carries the seconds until the window rolls over.
object
Example generated
{ "error": "example"}Headers
Section titled “Headers ”Seconds until the window rolls over