Skip to main content
POST
/
credits
Purchase Credits
curl --request POST \
  --url https://api.example.com/credits/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "usd": 123
}'
{
  "credits_remaining": {
    "amount": 123,
    "usd": 123
  },
  "credits_used": {
    "amount": 123,
    "usd": 123
  },
  "credit_checks_enabled": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Api-key
string | null

Body

application/json
usd
integer
required

Response

Successful Response

credits_remaining
CreditsAmount · object
required
credits_used
CreditsAmount · object
required
credit_checks_enabled
boolean
required