Credits

Create a hosted Stripe checkout for credits

Creates a payment link, not a charge. Requires write permission and an Idempotency-Key. Uses only the credential workspace; team purchases require the active owner. Amount is USD before checkout taxes and discounts. No payment data is accepted. Reuse identical inputs and the same key after an uncertain result. Successful responses replay for 24 hours; the checkout URL can expire sooner. Only a verified successful payment webhook grants credits.

post/v1/credit-checkouts

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/credit-checkouts
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Request body

amount_centsinteger required

USD purchase amount in whole cents, from $10 to $10,000, before checkout taxes or discounts. Workspace comes from authentication.

Response

Hosted checkout; no payment taken

Changes

No recorded changes to this operation across all 1 revision of this API.