Domains, usage and account
List custom domains, read API usage and credits, and check the key you're holding.
List domains#
GET
/domainsdomains:readCustom domains on the account, with their verification status.
curl "https://apipublic.yeshbe.com/api/platform/v1/domains" \ -H "Authorization: Bearer $YESHBE_KEY"const res = awaitfetch("https://apipublic.yeshbe.com/api/platform/v1/domains", { headers: { "Authorization": `Bearer ${process.env.YESHBE_KEY}` } }); const { success, data, error } = await res.json();import os, requests res = requests.get( "https://apipublic.yeshbe.com/api/platform/v1/domains", headers={"Authorization": f"Bearer {os.environ['YESHBE_KEY']}"}, ) payload = res.json(){"success":true,"data":{"items":[{"id":5,"domain":"orders.acme.com","status":2}]}}Usage#
GET
/usageusage:readAPI calls per day plus your current credit balances.
| Query | Type | Notes |
|---|---|---|
days | integer | 1 to 365. Default 30. |
curl "https://apipublic.yeshbe.com/api/platform/v1/usage?days=30" \ -H "Authorization: Bearer $YESHBE_KEY"const res = awaitfetch("https://apipublic.yeshbe.com/api/platform/v1/usage?days=30", { headers: { "Authorization": `Bearer ${process.env.YESHBE_KEY}` } }); const { success, data, error } = await res.json();import os, requests res = requests.get( "https://apipublic.yeshbe.com/api/platform/v1/usage?days=30", headers={"Authorization": f"Bearer {os.environ['YESHBE_KEY']}"}, ) payload = res.json(){"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:readIdentifies 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"const res = awaitfetch("https://apipublic.yeshbe.com/api/platform/v1/me", { headers: { "Authorization": `Bearer ${process.env.YESHBE_KEY}` } }); const { success, data, error } = await res.json();import os, requests res = requests.get( "https://apipublic.yeshbe.com/api/platform/v1/me", headers={"Authorization": f"Bearer {os.environ['YESHBE_KEY']}"}, ) payload = res.json(){"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.