https://developer.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 developer.encrata.com/auth.md tells agents everything they need to authenticate:
- How to get an API key - ask the user to create one in the dashboard and paste it
- How to authenticate - send the key as a Bearer token on every request
- How to verify the key - call the free
GET /api/account/creditsendpoint - Key facts - scope, expiry, credit caps, and revocation
- Error handling - status codes,
result.codevalues, rate limits, and retry behavior
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 gives it to the agent
- 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.