Overview
Arx is Fabraix’s run-time defence layer for AI agents, informed by what our offensive agent Nyx finds in the wild. The premise is simple: you can’t verify what you haven’t tried to break, and the same research that makes Nyx effective on offence is what makes Arx effective on defence. Arx provides three primary capabilities:- Session tracking: register agent runs and correlate every step under a
trace_id - Event logging: record user inputs, model outputs, tool calls, memory ops, and environment events
- Action checks: validate actions in the context of the full session before they execute
Base URL
All API requests should be made to:Authentication
All requests must include your API key in thex-api-key header:
Available Endpoints
POST /register-agent-run
Register a new agent session and receive a trace_id for tracking all subsequent events
POST /event
Log events throughout your agent’s reasoning loop for observability and analysis
POST /check
Validate actions before execution to prevent malicious or unintended behavior
Request Format
All POST requests should use JSON format withContent-Type: application/json:
Response Format
All successful responses return JSON with appropriate HTTP status codes:Error Handling
Errors return appropriate HTTP status codes with detailed error messages:Common Status Codes
| Status | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid API key |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Invalid endpoint or resource |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Rate Limits
API rate limits depend on your API key type:| Key Type | Requests/Minute | Requests/Hour |
|---|---|---|
| Development | 60 | 1,000 |
| Production | 600 | 10,000 |
| Enterprise | Custom | Custom |
SDK Support
Arx is currently consumed via the REST API directly. Official Arx SDKs are coming soon.Looking for the Nyx CLI? See the Nyx API reference. The
@fabraix/nyx npm package is generally available today.Pagination
For endpoints that return lists (future releases), pagination is handled via query parameters:limit: Number of items to return (max 100)offset: Number of items to skipcursor: Cursor for cursor-based pagination
Versioning
The API version is included in the URL path. The current version isv1.
Breaking changes will result in a new API version. Non-breaking changes may be added to the current version.
Webhooks (Coming Soon)
Future releases will support webhooks for real-time notifications:- Action blocked events
- Anomaly detection alerts
- Session completion notifications
Support
Need help with the API?- 📧 Email: founders@fabraix.com
- 📖 GitHub: Report API issues
- 💬 Discord: Join our developer community