https://encrata.com/auth.md. The file describes how agents get and use an API key, how to verify it, and how to handle errors and rate limits. Because Markdown is plain text, the same file works as documentation for human integrators and as a discoverable runtime artifact for agents.
How it works
An agent authenticates with Encrata via the API Key Flow:API Key Flow
A user creates an API key and provides it to the agent for authenticated requests.
The contract
Theauth.md file at encrata.com/auth.md tells agents everything they need to authenticate:
- How to get an API key - read it from
ENCRATA_API_KEY; if it is not set, ask the user to create one with a credit limit and set it there, never paste it into the chat - How to authenticate - send the key as a Bearer token on every request, referencing
$ENCRATA_API_KEYinstead of typing the key - How to verify the key - call the free
GET /api/account/creditsendpoint - Key facts - scope, expiry, credit limits, and revocation
- Error handling - status codes,
result.codevalues, rate limits, retry behavior, and what to do when a key is revoked
Why auth.md?
An agent needs a small, reliable contract that identifies the supported host, credential format, and routes. auth.md solves this by making authentication machine-discoverable:- User-approved access - the user creates the credential and sets it in the agent’s environment
- Self-describing - the file contains everything needed to authenticate, and links to the endpoint docs
- Standard format - plain Markdown that any agent can parse
- Stable location - hosted at one well-known URL that agents can fetch
Integration guides
The auth.md File
The anatomy of Encrata’s auth.md, where it lives, and how agents parse it.
For AI Agents
How agents discover and use Encrata’s auth.md to authenticate and operate.
For Developers
How to point your agent at Encrata’s auth.md and configure access.
API Key Flow
The supported flow for giving an agent API access.