Skip to content

Domains, usage and account

List custom domains, read API usage and credits, and check the key you're holding.

List domains#

GET/domainsdomains:read

Custom domains on the account, with their verification status.

curl "https://apipublic.yeshbe.com/api/platform/v1/domains" \ -H "Authorization: Bearer $YESHBE_KEY"
Response
{"success":true,"data":{"items":[{"id":5,"domain":"orders.acme.com","status":2}]}}

Usage#

GET/usageusage:read

API calls per day plus your current credit balances.

QueryTypeNotes
daysinteger1 to 365. Default 30.
curl "https://apipublic.yeshbe.com/api/platform/v1/usage?days=30" \ -H "Authorization: Bearer $YESHBE_KEY"
Response
{"success":true,"data":{"days":30,"api":[{"date":"2026-08-30","count":412,"errors":3}],"credits":{"messages":1840,"integrations":300,"reset_at":"2026-09-14T00:00:00"}}}

Who am I#

GET/meusage:read

Identifies the account and tells you exactly what the key you're holding is allowed to do. Useful as a first call when debugging a 403.

curl "https://apipublic.yeshbe.com/api/platform/v1/me" \ -H "Authorization: Bearer $YESHBE_KEY"
Response
{"success":true,"data":{"account":{"id":204,"name":"Acme","email":"ops@acme.com","plan_id":3},"key":{"name":"Production server","prefix":"yb_live_a3f2","scopes":["apps:read","data:read"],"workspace_id":0,"rate_limit":600}}}

A workspace_id of 0 means the key isn't tied to one workspace.