Skip to content
Cirrus home
Sign in

Reference

Strategy gallery

Browse, copy, buy and publish strategy templates.

Your platform credits #

GET /v2/credits app session

Your credit balance (your platform credits wallet: buys paid gallery templates; your share of your templates' sales adds to it) and its latest gallery changes.

More about this

Only while paid templates are on (else 403).

Errors

HTTPCodeWhen
401unauthorized

No credential, or the credential is invalid, expired or revoked.

403forbidden

The credential may not use this route (missing scope, app-session-only route, IP not allowed).

429rate_limited

Too many requests for this credential (or too many failed attempts); retry after the Retry-After header (seconds; error.retry_after_ms has the exact wait).

503credits_unavailable

Platform credits can't be reached right now; nothing was charged. Retry.

All fields (request and response schema)

Loading fields…

GET
curl "https://cirrus.pocketful.in/v2/credits" \
  -H "Authorization: token $CIRRUS_API_KEY"
Response · 200
{
  "status": "success",
  "data": {
    "balance": 75,
    "entries": [
      {
        "at": "2026-10-26T14:14:50.558Z",
        "delta": -25,
        "balance_after": 75,
        "kind": "purchase",
        "listing_id": "01M5W90R6E1MM606W1ZM1WW4S1",
        "note": "Gallery template \"Weekly straddle 01M5W90QZWNR5ZDD6W1Z44VGCH\" by Theta Lab (non-refundable)"
      },
      {
        "at": "2026-10-26T14:14:50.530Z",
        "delta": 100,
        "balance_after": 100,
        "kind": "grant",
        "listing_id": null,
        "note": "Credits added by staff"
      }
    ]
  },
  "error": null
}