V1 API Reference

ZERA Indexer API

Access indexed blockchain data from the ZERA network. Transactions, blocks, tokens, wallets, governance, DEX, staking, and more.

ALPHA DOCUMENTATIONThese endpoint schemas are currently in Alpha and may contain inaccuracies or incomplete payload parameters. If you encounter any structural divergence while integrating, please report it to us so we can resolve it swiftly.
https://api.zerascan.io/v1
GET ONLYJSON RESPONSES

Authentication

All /v1/* endpoints require authentication via API Key or Bearer Token. Developer dashboard coming soon. If you need an API Key in the meantime, contact us.

Base URL Difference: Authentication endpoints natively talk to the vd-auth server at auth.visiondynamics.ch, whereas all other indexer functions use api.zerascan.io.

Header format: Authorization: Api-Key YOUR_KEY or Authorization: Bearer YOUR_TOKEN.

Usage Statistics & Advanced Bearers

The getKeyUsageStats (or getAnalytics) endpoint returns a comprehensive breakdown of your API key's consumption.

If your core API Key has Advanced Bearers enabled, the analytics payload (entries array) will explicitly group creditsUsed and requestCount by the individual bearerUUID. This allows enterprise users to issue many distinct bearers to their clients and independently track their consumption against the master key's CPM.

(Note: The upcoming Developer Dashboard will feature full graphical support for managing tokens, bearers, and analytics as described)

Create Bearer Token

POSThttps://auth.visiondynamics.ch/auth

Generate a short-lived JWT bearer token from a valid API key and secret. This natively talks to the vd-auth server.

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be 'createBearer'
apiKeystringREQUIREDYour master API key.
apiSecretstringREQUIREDYour API secret.
expiresInSecondsintegerREQUIREDToken lifetime in seconds.
cpsintegerREQUIREDCredits Per Second — refill rate for the bearer's token bucket.
cbsintegerREQUIREDCredits Burst Size — maximum bucket capacity for the bearer.
cpmintegerREQUIREDCredits Per Month — maximum monthly credit allocation for the bearer.
scopesstringoptionalComma-separated permission scopes (e.g. 'indexer,dex'). Defaults to parent key scopes.
subjectstringoptionalLabel for what this bearer represents (e.g. 'my-trading-bot', 'analytics-service').
audiencestringoptionalIntended recipient or service this bearer is scoped to (e.g. 'indexer', 'dex').

🪙 Usage & Credits

This endpoint consumes 10 credits per request against your active API tier.

Revoke Bearer Token

POSThttps://auth.visiondynamics.ch/auth

Immediately invalidates a bearer token via dual-layer invalidation (database + Redis cache).

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be 'revokeBearer'
apiKeystringREQUIREDYour master API key.
apiSecretstringREQUIREDYour API secret.
bearerTokenstringREQUIREDThe JWT token string.

🪙 Usage & Credits

This endpoint consumes 10 credits per request against your active API tier.

Usage Statistics

POSThttps://auth.visiondynamics.ch/auth

Gives access to full historical analytics. You must authenticate using your master `apiKey` and `apiSecret`. You can explicitly filter consumption for a specific bearer by using the `bearerUUID` parameter.

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be 'getAnalytics'
apiKeystringREQUIREDYour master API key.
apiSecretstringREQUIREDYour API secret.
bearerUUIDstringoptionalFilter history exclusively to a specific bearer UUID.
scopestringoptionalFilter by permission scope.
actionstringoptionalFilter by endpoint action label.
fromintegeroptionalUnix timestamp start boundary.
tointegeroptionalUnix timestamp end boundary.

🪙 Usage & Credits

This endpoint consumes 50 credits per request against your active API tier.

List Active Bearer Tokens

POSThttps://auth.visiondynamics.ch/auth

Query all active Bearer tokens tied to an API key, including their scopes, UUIDs, and expiration limits. Critical for Advanced Bearer administration.

Parameters

ParameterTypeRequiredDescription
requeststringREQUIREDMust be 'getBearers'
apiKeystringREQUIREDYour master API key.
apiSecretstringREQUIREDYour API secret.

🪙 Usage & Credits

This endpoint consumes 5 credits per request against your active API tier.

Authentication & Rate Limit Errors

The authentication layer returns precise error codes to help you diagnose token and quota issues:

Errors

StatusCondition
401 (invalid_auth / api_key_invalid)Your key or token is malformed, missing, or unrecognized.
401 (api_key_disabled)Your API key was administratively disabled.
401 (token_invalid)The bearer token signature failed validation.
401 (insufficient_scope)Your credential lacks permission for this endpoint.
402 (credits_exhausted)Scope Limits: You have depleted your specific credit pool for this endpoint group.
429 (rate_limit_exceeded)CPS/BPS Limits: You are sending requests too fast. Slow down and let your Token Bucket refill.
429 (monthly_limit_exceeded)CPM Limits: You have reached your maximum monthly credit allocation (CPM).