Gully Labs Developers

OpenAPI 3.1 Testnet where marked

Build on Gully

Every public Gully API in one place: what each endpoint takes, what it returns, its limits and its errors. Try the open reads here without a key.

Keys and sign-in

APIs

Keys and sign-in

One Gully RPC key works on RPC and on the Gully Chain API. Gully Pay has its own store keys. Swoop Ads and Gully ID use Sign in with Gully ID. Keep keys on your server: this site never asks for one, and the examples use placeholders.

APIHow you authenticateWhere to get it
Gully Chain APIapikey query parameter, X-API-Key header, Authorization: BearerGet it
Gully RPCX-ERPC-Secret-Token headerGet it
Gully Chain Indexer APINo credentialNothing to get
Gully Pay APIx-api-key header, Authorization: Bearer, X-Checkout-Token header, x-agent-key headerGet it
Swoop Ads APIAuthorization: BearerGet it
Gully AINo credentialNothing to get
Gully IDOpenID Connect, Authorization: BearerGet it
kre8 Social APINo credentialNothing to get

Rate limits

Over a limit, every API answers HTTP 429. Where an API sends limit headers they are listed here; read them and back off before you are stopped.

APIHeadersNotes
Gully Chain APIX-RateLimit-Limit X-RateLimit-Remaining X-RateLimit-Reset X-RateLimit-Tier X-RateLimit-Daily-Limit X-RateLimit-Daily-RemainingFree: 5/s, Starter: 15/s, Pro: 30/s, Business: 100/s.
Gully RPCNone yetSee the API page.
Gully Chain Indexer APINone yetNo per-key limit yet. Answers are cached for a few seconds; use ETag and If-None-Match.
Gully Pay APIX-RateLimit-Limit X-RateLimit-Remaining X-RateLimit-Reset Retry-AfterSee the API page.
Swoop Ads APINone yetLimits apply per visitor and per account. No rate-limit headers are sent yet.
Gully AIRetry-AfterNo X-RateLimit-* headers are sent. Retry-After (seconds) comes with a 429 on questions and explanations. Defaults: 6 questions a minute and 60 a day from one place.
Gully IDRetry-AfterOnly Retry-After is sent, with a 429. There are no remaining-calls headers, so space your calls by the limits below.
kre8 Social APIX-RateLimit-Limit X-RateLimit-ScopePer-minute limits; these are the defaults in the code and GET /v1/developers/limits reports the numbers in force. No remaining-count header and no Retry-After are sent.

Error format

Errors are JSON with plain words. Each API page lists its codes.

APIShapeCodes
Gully Chain API{ "status": "0", "message": "NOTOK", "result": "...", "error": { "code": "RATE_LIMITED" } }15 documented
Gully RPC{ "jsonrpc": "2.0", "id": 1, "error": { "code": -32602, "message": "..." } }JSON-RPC error object
Gully Chain Indexer API{ "error": "..." }3 documented
Gully Pay API{ "statusCode": 400, "message": ["..."], "error": "Bad Request" }6 documented
Swoop Ads API{ "error": "...", "code": "invalid" }6 documented
Gully AI{ "error": "..." }18 documented
Gully ID{ "error": "..." }12 documented
kre8 Social API{ "error": "..." }7 documented

SDKs and tools

Machine-readable

Each API is an OpenAPI 3.1 document, generated from the code of the service it describes. Use them to generate a client.