GET /api/v1/balance
Returns the authenticated user billing summary.
Example
curl "https://tinypostcard.com/api/v1/balance" \
-H "Authorization: Bearer $TINYPOSTCARD_API_KEY"Response
{
"user": {
"id": "cuid",
"email": "user@example.com",
"name": "Avery",
"tokenBalance": 42,
"hasStripeCustomer": true,
"hasSavedCard": true
}
}GET /api/v1/token-packs
Returns available token packages used on Billing.
curl "https://tinypostcard.com/api/v1/token-packs" \
-H "Authorization: Bearer $TINYPOSTCARD_API_KEY"Response includes id, amountCents, tokens, and label for each package.
Related endpoint
GET /api/v1/me is useful for API key debugging and includes isAdmin.
Last updated on