Supervideo API docs

Credits

The prepaid wallet: balance, top-ups, and every line that changed it.

GET /v1/credits

Read the wallet

Example

curl -X GET https://api.superveo.io/v1/credits \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

GET /v1/credits/transactions

List balance changes

Top-ups, one usage line per finished job, refunds and disputes.

Parameters

ParameterInTypeDescription
limitqueryinteger
min 1; max 100; default 20
afterquerystringReturn what comes after this id (last_id of the previous page).

Example

curl -X GET https://api.superveo.io/v1/credits/transactions \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

POST /v1/credits/checkouts

Start a top-up

Returns checkout_url, the payment page. The wallet is credited when the payment provider confirms the payment; read the checkout to see when.

Request body

FieldTypeDescription
amount_usd requiredanyAmount to add, a number or a string like "25.00", two decimals at most. See GET /v1/credits for the smallest and largest amount.

Example

curl -X POST https://api.superveo.io/v1/credits/checkouts \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "amount_usd": 25
}'
import os, uuid, requests

r = requests.request(
    "POST", "https://api.superveo.io/v1/credits/checkouts",
    headers={
        "Authorization": f"Bearer {os.environ['SUPERVIDEO_API_KEY']}",
    },
    json={
        "amount_usd": 25
    },
)
print(r.status_code, r.json())
const r = await fetch("https://api.superveo.io/v1/credits/checkouts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SUPERVIDEO_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "amount_usd": 25
  }),
});
console.log(r.status, await r.json());

Responses

GET /v1/credits/checkouts

List top-ups

Parameters

ParameterInTypeDescription
limitqueryinteger
min 1; max 100; default 20
afterquerystringReturn what comes after this id (last_id of the previous page).

Example

curl -X GET https://api.superveo.io/v1/credits/checkouts \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses

GET /v1/credits/checkouts/{top_id}

Get one top-up

Parameters

ParameterInTypeDescription
top_id requiredpathstringtop_...

Example

curl -X GET https://api.superveo.io/v1/credits/checkouts/top_id \
  -H "Authorization: Bearer $SUPERVIDEO_API_KEY"

Responses