GET /api/v1/me
Returns your current credit balance, plan information, and usage statistics.
Code examples
curl "https://kooperativa.io/api/v1/me" \
-H "Authorization: Bearer ik_live_..."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
}
}