REST API
Every Aribot feature is available over a JSON REST API. The SDKs wrap it; you can also call it directly.
Base URL
https://aribot.ayurak.com/aribot-api/Paths in the reference start after /aribot-api, for example /v2/gates/gate-runs/. Most paths end with a slash.
Sign in
Create an API key in Aribot under Company Admin > Developer & API. Send it in a header:
curl -H "X-API-Key: $ARIBOT_API_KEY" https://aribot.ayurak.com/aribot-api/v2/gates/gate-runs/- A key belongs to your company and acts with the rights of the person who created it.
- A key can be limited to certain paths when it is created, for example only
/aribot-api/v2/gates/decide/for a CI pipeline. - Keys run reads and checks. Actions that change settings, sign rule sets or manage keys need a signed-in person.
- Revoke a key in the same place. Regenerating a key replaces it everywhere at once.
Reference
The full reference is generated from the running service, so it always matches what the API accepts. Open it in Aribot under Company Admin > Developer & API > API Reference.
Errors
Errors return JSON with a code and a detail.
| Status | Meaning | What to do |
|---|---|---|
| 400 | The request is not valid | Read detail; fix the request |
| 401 | Missing, expired or revoked key | Create or rotate the key |
| 402 | Your company has no licence for this feature | The body names the feature; ask your company admin or request a trial in Aribot |
| 403 | The key or person may not do this | code says why, for example api_key_not_allowed |
| 404 | Not found, or not visible to your company | Check the id |
| 429 | Rate limit reached | Wait for the time in Retry-After |
| 5xx | Server error | Retry reads after a short wait |
Rate limits
Each key has its own limit, shown with its usage under Company Admin > Developer & API. A request over the limit gets 429 with Retry-After.
Webhooks
Aribot can notify your service when a key is suspended, activated or regenerated. Each delivery is a signed POST: check the X-Aribot-Signature header (HMAC SHA-256 with the webhook's secret) before trusting it.