Syndai Docs

List credit packs

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/external/coding/purchases/packs

The credit packs the workspace can buy: each pack's key (the pack_key of a checkout), its credits and its price in every currency, in minor units. Needs coding:billing:read.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Query Parameters

customer_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
packs*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/purchases/packs'
Example Response
{  "packs": [    {      "credits": 0,      "key": "string",      "name": "string",      "prices": {        "property1": 0,        "property2": 0      }    }  ]}
Was this page helpful?