bytemine

API Reference · Platform export

Account API Reference

Platform documentation snapshot. Access, charging and provider requirements remain operation-specific; examples do not execute requests.

What it does

Account and usage endpoints: check remaining credits, review consumption and confirm plan entitlements before running large jobs. Balance checks are free.

Use cases

  • Guard a bulk job by checking the balance first and chunking work to fit remaining credits.
  • Alert your team in Slack when credits drop below a threshold.
  • Show live usage and remaining credits inside your own internal tooling.

Response Schema

Complete documented fields for this section, with nested notation preserved. Endpoint-specific envelopes, availability and additional fields are described under each endpoint below.

FieldNotes
credits_total
credits_used
credits_remaining
billing_period_start
billing_period_end

Illustrative Example Response (synthetic, not a complete endpoint schema):

Example
{
  "data": {
    "credits_total": "string",
    "credits_used": "string",
    "credits_remaining": "string",
    "billing_period_start": "string",
    "billing_period_end": "string"
  }
}

GET /credits — Get Credit Balance

Returns your current data credit balance including total limit, credits used, and credits remaining for the current billing period. This endpoint is free and does not consume credits.

cURL Example:

Example
curl -X POST 'https://bvjmtgaxijpyasjtaqiv.supabase.co/functions/v1/api-gateway' \
  -H 'Content-Type: application/json' \
  -H 'x-amz-security-token: YOUR-API-KEY' \
  -d '{
  "path": "/credits",
  "method": "GET"
}'