API Reference
Use the Faramesh API when integrating agents or building custom tools. Base URL: your Horizon URL or http://localhost:8000 for self-hosted. Interactive docs: /docs (Swagger) and /redoc.
Authentication
Send your API key in the request:
If the deployment enforces rate limits, the API may return 429; see Troubleshooting.
Core endpoints
Actions
Method | Path | Description |
|---|---|---|
POST |
| Submit an action |
GET |
| List actions (filter by status, agent, tool) |
GET |
| Get action details |
POST |
| Approve or deny (include token in body) |
Policies
Method | Path | Description |
|---|---|---|
GET |
| List policies |
POST |
| Create policy |
PUT |
| Update policy |
DELETE |
| Delete policy |
POST |
| Activate policy |
POST |
| Import policy from YAML (body) |
API Keys
Method | Path | Description |
|---|---|---|
GET |
| List your API keys |
POST |
| Create a new key |
DELETE |
| Revoke a key |
Agents
Method | Path | Description |
|---|---|---|
GET |
| List agents |
POST |
| Register an agent |
Analytics and audit
Method | Path | Description |
|---|---|---|
GET |
| Usage analytics |
GET |
| Event stream (Server-Sent Events) |
Provenance (Merkle chain, DPR, replay)
Method | Path | Description |
|---|---|---|
GET |
| Merkle inclusion proof for a decision |
POST |
| Re-evaluate a historical decision (deterministic replay) |
See Cryptographic provenance for details.
For full request/response schemas, use the interactive docs at /docs.
