Get credits
GET/credits
GET /credits: the workspace's current credit balance.
Return the workspace's current credit balance.
Request
curl https://sendy.co.il/api/v1/credits -H "Authorization: Bearer sk_live_8Jc…"const res = await fetch(`https://sendy.co.il/api/v1/credits`, {
headers: { Authorization: "Bearer sk_live_8Jc…" },
});
const { balance } = await res.json();Response · 200 OK
{ "balance": 8421 }