Auto-attach the Autumn free plan to a new customer (server-side, no checkout). Idempotent.
free plan — 1,000 one-time credits — to the authenticated customer. Server-side, no checkout UI, no billing info required (the free tier is, well, free).
This endpoint exists so new workspaces have a credit balance before they hit the first gated endpoint. It’s normally called automatically on first sign-in; calling it again is a safe no-op that returns { provisioned: false, reason: "already_has_plan" }.
getCreditsConfig.createCreditPreview to confirm the balance covers the batch.sufficient: false, stop and report the exact shortfall to the human.{ provisioned: false, reason: "already_has_plan" } — that’s not an error, that’s confirmation the workspace already has credit access.This does not purchase credits. It only attaches the free plan. Upgrading to Pro or Enterprise goes through the Autumn billing portal, not the API.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Plan attached (provisioned: true) or already present (provisioned: false).
Idempotent attach — calling this twice is safe, the second call returns { provisioned: false, reason: "already_has_plan" }.