Skip to main content
POST
Buy a pack of photo credits with the saved card

Authorizations

Authorization
string
header
required

Secret API key, created in the dashboard under Settings → API. Send it as Authorization: Bearer rk_secret_… from your server only. Publishable keys (pk_live_…) are for the native SDKs and reach the capture endpoints alone. An unknown key returns 401.

Headers

Idempotency-Key
string

Body

application/json
photos
required
Available options:
50

Response

Charged and credited.

status
enum<string>
required
Available options:
succeeded,
processing
photos
integer
required
amount_cents
integer
required
payment_id
string
required
balance_cents
integer