Gully Labs Developers

Live OpenAPI 3.1.0 v0.1.0

Gully AI

Ask questions about Gully Labs products and get answers with sources.

Base URL
https://gullylabs.xyz
Authenticate with
No credential
Guides
docs.gullylabs.xyz
Spec
gully-ai.json

Quick start

curl "https://gullylabs.xyz/api/ask/status"

Placeholders such as YOUR_KEY stand for your own credential. Never paste a real key into a web page.

Try it No key

The two GET routes need no key and are readable from any origin. Asking a question, rating and explaining are POST routes that need a header a page on another site cannot send, and a question uses the shared daily allowance, so the hub shows curl for those. The call goes from your browser straight to gullylabs.xyz. There is nowhere to enter a key here, on purpose.

Rate limits

Headers on answers: Retry-After. No 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. Over the limit the answer is HTTP 429.

Errors

CodeHTTPMeaning
pending202The transaction is not in a block yet. Ask again shortly.
none400The body is not the expected JSON, a field is missing or malformed, the question is empty or too long, or the question looks like a private key or recovery phrase.
bad_input400The transaction hash is not 0x followed by 64 hex characters.
wrong_chain400Only Gully Chain Testnet is supported for now.
credits402Not enough credits. Nothing is charged today; this answer exists for a later paid tier.
none403The X-Requested-With: gully header is missing.
none404The answer can no longer be rated (unknown id or past the rating window), or the route is not switched on yet.
not_found404No transaction with that hash was found on Gully Chain Testnet.
none405Wrong method. Questions, ratings and explanations are POST; status and knowledge are GET.
none413The request body is too large.
none429Too many requests from one place this minute or today. Wait Retry-After seconds when the header is present.
none429The service has answered as many requests as it can today. Resets at the start of the next day (US Pacific time). On questions this is not an error: the answer becomes docs passages instead.
none500The rating could not be saved. Try again.
none502The answer could not be written just now. Try again.
none503Gully AI is not available yet (configured is false), busy, or its writing service did not answer and no docs passages could be found. Try again shortly.
busy503Too many answers are being written at once. Try again in a minute.
provider-unavailable503The writing service is unavailable. Try again later.
unavailable503The chain could not be read just now. Try again shortly.

Reference

Loading the reference. It needs JavaScript; the OpenAPI file has everything too.