SnozeDevelopers
API referenceBilling

Read the workspace AI auto-refill settings

Returns the workspace's opt-in auto-refill preference and its monthly ceiling, the monthly top-up spend cap in cents, and what paid packs have cost this UTC month. Requires a Clerk session and the `billing:read` workspace permission.

GET
/v1/workspaces/{workspaceId}/billing/ai-topups/settings

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/billing/ai-topups/settings'
Example Response
{  "data": {    "autoRefillEnabled": true,    "autoRefillMonthlyCeilingMicrousd": 0,    "monthlySpendCapCents": 0,    "spentThisMonthCents": 0  }}