QuantSet Docs Developer console

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-link

API keyFree Use a key with access to this operation.

View as MarkdownWhole API as text

Response

The response has these fields.

  • checkout_urlstring

    A link.

  • plancredits | growth | scale | developer | pro | commercial | developer_annual | pro_annual | commercial_annual
  • amount_usdinteger

    In US dollars.

  • included_creditsinteger
  • modestripe | console
  • messagestring
View response example or schema

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

StatusCodeWhat to do
400conflicting_credentialsSupply one credential.
401invalid_credentialsSupply a valid API key.
403insufficient_accessYour key does not have the required access.
413request_too_largeReduce the size of the request body.
422invalid_parameterCorrect the named parameter and retry.
429rate_limitedWait for Retry-After seconds.
500internal_errorThe 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.