Skip to content

Account Info

Check your credit balance, plan, and API usage.

GET /api/v1/me

Returns your current credit balance, plan information, and usage statistics.

Code examples

cURLbash
curl "https://kooperativa.io/api/v1/me" \
  -H "Authorization: Bearer ik_live_..."
JavaScriptjs
const res = await fetch("https://kooperativa.io/api/v1/me", {
  headers: { Authorization: `Bearer ${process.env.KOOPERATIVA_API_KEY}` },
});
const data = await res.json();

Response

{
  "email": "you@company.com",
  "plan": "growth",
  "credits": {
    "remaining": 8432,
    "total": 10000,
    "renews_at": null
  },
  "usage": {
    "this_month": 1568
  }
}
Navigation

Type to search…

↑↓ navigate↵ selectEsc close