> For the complete documentation index, see [llms.txt](https://litepaper.dormint.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://litepaper.dormint.io/architecture/public-api-access.md).

# Public API Access

#### Public API Access

Many AI Agents need to communicate with external apps or devices. Dormint provides an **API layer** for each agent:

1. **Agent Endpoint**
   * Each AI Agent has a unique URL path (e.g., `api.dormint.io/agents/<agent_id>`).
   * External applications can POST or GET data here, triggering the agent’s internal logic.
2. **DOAI Token-Based Usage**
   * Each API call requires DOAI tokens to be deducted from the caller’s balance, ensuring sustainable operations.
   * **Rate Limiting**: Dormint automatically throttles or rejects requests exceeding an account’s token balance or plan limit.
3. **Webhook Support**
   * Agents can send real-time updates or alerts back to external systems using configurable webhooks.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://litepaper.dormint.io/architecture/public-api-access.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.
