Credits
Buy credits from a script or an agent. Get a quote, show it to the person who pays, then buy only after their yes. The saved card is charged within the limits the workspace set, or you get a payment link.
Buy credits from a script or an agent. Get a quote, show it to the person who pays, then buy only after their yes. The saved card is charged within the limits the workspace set, or you get a payment link.
| Operation | Method | Path |
|---|---|---|
| Credit packs and prices | GET | /api/v1/credits/packs |
| Quote a credit pack | POST | /api/v1/credits/quote |
| Buy a credit pack | POST | /api/v1/credits/purchases |
| List credit purchases | GET | /api/v1/credits/purchases |
| Get a credit purchase | GET | /api/v1/credits/purchases/{purchase_id} |
Every page below is generated from the OpenAPI document and carries a request sample in the language you pick. The playground sends to production with your own key.