Skip to main content
GET
This endpoint returns a list of all available credit subscription plans that can be purchased. Plans are fetched directly from Stripe and include pricing, features, and credit amounts.

Authentication

This endpoint is publicly accessible and does not require authentication. It returns the same plan information to all users.

Request

This endpoint does not require any request parameters.

Response

The response is an array of subscription plan objects, sorted by credit amount in ascending order (lowest to highest).
array
required
The response body is a JSON array of subscription plan objects (not wrapped in an object).

Plan Configuration

Plans are configured in Stripe with the following requirements:

Supported Currencies

Error Codes

Notes

  • Plans are fetched in real-time from Stripe, ensuring pricing is always current
  • Only active products with metadata.type = "credits" are returned
  • Plans are automatically sorted by credit amount (lowest to highest)
  • If a product has no active price, an error will be thrown
  • The response is an empty array if no credit products are configured in Stripe