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
| Code | HTTP | Meaning |
|---|---|---|
pending | 202 | The transaction is not in a block yet. Ask again shortly. |
none | 400 | The 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_input | 400 | The transaction hash is not 0x followed by 64 hex characters. |
wrong_chain | 400 | Only Gully Chain Testnet is supported for now. |
credits | 402 | Not enough credits. Nothing is charged today; this answer exists for a later paid tier. |
none | 403 | The X-Requested-With: gully header is missing. |
none | 404 | The answer can no longer be rated (unknown id or past the rating window), or the route is not switched on yet. |
not_found | 404 | No transaction with that hash was found on Gully Chain Testnet. |
none | 405 | Wrong method. Questions, ratings and explanations are POST; status and knowledge are GET. |
none | 413 | The request body is too large. |
none | 429 | Too many requests from one place this minute or today. Wait Retry-After seconds when the header is present. |
none | 429 | The 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. |
none | 500 | The rating could not be saved. Try again. |
none | 502 | The answer could not be written just now. Try again. |
none | 503 | Gully 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. |
busy | 503 | Too many answers are being written at once. Try again in a minute. |
provider-unavailable | 503 | The writing service is unavailable. Try again later. |
unavailable | 503 | The chain could not be read just now. Try again shortly. |
Reference
Loading the reference. It needs JavaScript; the OpenAPI file has everything too.