Skip to main content

API Reference Overview

EvoBin has two public surfaces:

  1. File routes served by the Cloudflare Pages worker: /view/<manifestId>, /raw/<manifestId>, and /view/<manifestId>/meta.
  2. REST API served by the evobin-api Worker at https://evobin.xyz/v1.

REST API​

ItemValue
Base URLhttps://evobin.xyz/v1
OpenAPI documenthttps://evobin.xyz/v1/openapi.json
Swagger UIhttps://evobin.xyz/v1
CORS*

The current /v1 routes are read-through/proxy endpoints. They do not create documents. Publishing happens in the browser, signed by the connected wallet.

Identity read-through​

MethodPathPurpose
GET/v1/drive/identity/:identityIdIdentity record, public keys, balance
GET/v1/drive/identity/:identityId/balanceBalance only
GET/v1/drive/identity/:identityId/keysPublic keys only
GET/v1/drive/identity/:identityId/contract-nonce/:dataContractIdContract nonce
GET/v1/drive/identity/by-key-hash/:hashIdentity lookup by HASH160 key hash

Every identity route accepts an optional ?network=mainnet|testnet query. The default is testnet, and the response reports networkDefaulted: true when the caller omitted the parameter.

Units​

Identity and balance responses return all three units:

FieldUnit
creditsPlatform credits (the SDK unit)
duffscredits / 1,000
dashduffs / 100,000,000

1 duff = 1,000 credits. Never treat a bare balance integer as DASH.

Errors​

A failed upstream call returns a JSON body with a normalized status:

{
"success": false,
"network": "testnet",
"networkDefaulted": true,
"error": "Upstream error",
"type": "UPSTREAM_ERROR"
}

Malformed 32-byte identifiers and malformed 40-hex public key hashes are rejected locally with 400, before the upstream call.

Legacy endpoints​

The Worker also exposes the earlier mini-app and registration routes (/v1/bin, /v1/bin/status, /v1/drive/address, /v1/drive/order, /v1/drive/proof, /v1/drive/status). They are retained for compatibility and are not part of the file-publishing flow.