API and agents
Connect your assistant or app to Rota Nacional. Set up, connect your account and make your first request.
Use Rota Nacional as your agent's model
Create the key and paste it where the step shows the key name.
Create a keyChoose your client
Claude Code
TerminalAdd this to the settings file. Claude Code speaks the Anthropic Messages API, and Rota Nacional answers it.
~/.claude/settings.json { "env": { "ANTHROPIC_BASE_URL": "https://rota-nacional.ia.br", "ANTHROPIC_AUTH_TOKEN": "<ROTA_API_KEY>", "ANTHROPIC_MODEL": "rota/agentes" } }Start a new Claude Code session. Tools and streaming work as usual.
Connect an assistant
Choose your client
Codex CLI
Terminalhttps://rota-nacional.ia.br/mcpSign in here to get the URL and commands with your account access included.
Add server codex mcp add rota-nacional --url 'https://rota-nacional.ia.br/mcp'Check connection codex mcp listStart a Codex session. Use /mcp to see the server and its tools.
After connecting, ask your agent
Which models are available for text summaries and what does each option cost?Remove personal data from this text before I share it.Summarize this text using my organization's privacy policy.Extract this PDF's text and preserve page references for review.My last AI request failed. Check whether it was charged before retrying.Integrate your application
curl -s https://rota-nacional.ia.br/api/References
/llms.txt— Guide for agents/api/— API index/llms-full.txt— Full reference/openapi.json— OpenAPI 3/.well-known/api-catalog— api-catalog (RFC 9727)/skill.md— skill.md — ready-made agent instructions (Agent Skills)
References
Request formats and authorization
- Choose an operation from the agent index or the API catalog.
Read the operation’s reference in llms-full.txt.
For one group of routes, add
?prefix=/api/…to the address.Before a request, check the operation’s authentication, usage limits and price.
Before an external action, get authorization for that action.
Read routes accept
GET,POST,PUTorPATCH.Send the same parameters as JSON or form data.
Responses use JSON. For HTML, set
Accept: text/html.
Use these API references for integration. Do not scrape the main interface or assume permission to access accounts, make payments or send messages.
Read skill.md for agent instructions. Find all API references in api-catalog or at /discovery/resources.
Public data archives
Postal codes and addresses
Addresses and coordinates · 2022 data. Does not certify current postal codes.
MCP https://api.pontofato.com/enderecos/mcpPublic procurement
Public procurement and documents by location and date.
MCP https://api.editalmd.com/licitacoes/mcp