# API Overview

RAX exposes internal API endpoints through Next.js API routes that power the dashboard and can be used for integration.

***

#### Current State <a href="#id-053c1f90-a522-4780-8447-97c793c2066e" id="id-053c1f90-a522-4780-8447-97c793c2066e"></a>

The API supports vault operations (create, deposit, withdraw, query state), allocation engine operations (evaluate, approve, reject, simulate), mandate management (create, update, read), and decision log retrieval.

The API is currently internal and authenticated through wallet connection. Endpoints follow the pattern:

/api/vault/\[action] /api/engine/\[action] /api/mandate/\[action]

All endpoints accept and return JSON.

***

#### Planned <a href="#d9a7cf02-f818-4e81-a676-89e9dd7b3189" id="d9a7cf02-f818-4e81-a676-89e9dd7b3189"></a>

A public API with formal authentication (API keys), rate limiting, versioning, and comprehensive endpoint documentation is planned. This will enable external integrations, third-party dashboards, and programmatic access to risk intelligence.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.raxprotocol.xyz/developers/api-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
