Skip to main content
POST
Create a credit top-up

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Get your API key from the Reply dashboard: Settings → API Key.

Body

application/json

A one-time purchase of API credits, charged to the payment method on file.

purchaseId
string<uuid>
required

Your identifier for this purchase. Generate a new one for every purchase and send the same one when you repeat a request: a repeated request never charges twice, it returns the state of the purchase it already made. Reusing it with a different credits value is refused.

credits
enum<integer>
required

Number of API credits to buy. One of the available bundles.

Available options:
2000,
5000,
10000,
25000,
50000

Response

The purchase was made. status is granted when the credits are on the balance, or awaitingPayment while the invoice is not paid yet. A repeated request for a finished purchase returns it again.

A one-time purchase of API credits and its current state.

purchaseId
string<uuid>
required

The identifier sent when the purchase was made.

credits
integer
required

Number of API credits bought.

status
enum<string>
required

Where a credit top-up stands.

  • granted — paid; the credits are on the team's balance.
  • awaitingPayment — the invoice was issued and is not paid yet.
  • inProgress — the purchase is being processed; read it again in a few minutes.
  • paymentDeclined — the payment was declined and nothing was charged.
  • purchaseRefused — the billing provider refused the purchase and nothing was charged.
  • paidNotGranted — the payment went through after the team left the API plan, so no credits were added; contact support for a refund.
Available options:
granted,
awaitingPayment,
inProgress,
paymentDeclined,
purchaseRefused,
paidNotGranted