Endpoints / Account and integration
Create an agent checkout link
Create a checkout link for a personal key. Share the link with the account owner for payment.
POST
/api/v1/agent/checkout-linkAPI keyFree Use a key with access to this operation.
Response
The response has these fields.
checkout_urlstringA link.
plancredits | growth | scale | developer | pro | commercial | developer_annual | pro_annual | commercial_annualamount_usdintegerIn US dollars.
included_creditsintegermodestripe | consolemessagestring
Workflow examples
How does an agent hand a credit purchase to its account owner?
POST https://api.quantset.dev/api/v1/agent/checkout-link
Content-Type: application/json
{
"plan": "credits"
}Use the account’s authenticated key and request the credits plan. Give checkout_url to the owner and check the returned plan and mode.
Reading the results
The response creates a handoff for payment. The existence of a URL does not show that payment completed or that credits were added.
Coverage and limits
After checkout, verify account access with the original key. A shared sandbox key cannot identify an account for billing.
Use with agents
AI agents call this endpoint over HTTP, or read its Markdown version. Connect Claude, ChatGPT, Cursor or your own agent
Errors
| Status | Code | What to do |
|---|---|---|
| 400 | conflicting_credentials | Supply one credential. |
| 401 | invalid_credentials | Supply a valid API key. |
| 403 | insufficient_access | Your key does not have the required access. |
| 413 | request_too_large | Reduce the size of the request body. |
| 422 | invalid_parameter | Correct the named parameter and retry. |
| 429 | rate_limited | Wait for Retry-After seconds. |
| 500 | internal_error | The request could not be completed. |
Questions
- Can an AI agent use this?
- Yes. An agent calls it over HTTP like any client. Add .md to this page's address for a version written for agents.
- What does null mean in the response?
- The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.
More in account and integration
Create a webhook
POST /api/v1/webhooksDelete a webhookDELETE /api/v1/webhooks/{webhook_id}Test a webhookPOST /api/v1/webhooks/{webhook_id}/testPartner catalogGET /api/v1/partner-catalogCreate an agent sandbox keyPOST /api/v1/agent/signupSubmit API feedbackPOST /api/v1/feedbackSandboxPublished credit rate cardGET /api/v1/billing/rate-cardEstimate request creditsPOST /api/v1/billing/estimate