Agent Developer Guide
Freight Rate Intelligence is designed for AI-first consumption. Every skill is available as a REST endpoint, an MCP tool, and through a unified agent invoke endpoint with full constitutional receipts.
Three Integration Paths
Standard HTTP endpoints at /v1/* — use from any language or framework.
Model Context Protocol tools at /mcp — native integration with Claude, Cursor.
Unified endpoint at /v1/agent/invoke/:skill_name — consistent envelope for all skills.
Agent Registration
1. Generate an API Key
Sign up for Starter or above, then generate a key from Dashboard → Settings → API Keys. Keys use the fri_ prefix (e.g. fri_abc123...).
Scope your agent’s key to the specific skills it uses. If the agent only calls rate-lookup and market-analysis, a scoped key limits blast radius if the key leaks.
2. Discover Available Skills
Response:
Skill Catalog
Constitutional Commerce
Every agent invocation flows through six stages:
Best Practices
Cache with Factor Versions
Response data includes factor_versions with timestamps. Use these to decide when to refresh — don’t cache blindly by TTL.
Store Receipts
Keep receipt_id from every call. If a customer disputes a rate six months later, you can replay the exact computation via the audit endpoint.
Handle Tier Errors Gracefully
Some skills require higher tiers. Check the tier_required field from skill discovery before calling, or handle 403 responses with an upgrade nudge.
Use Alerts Instead of Polling
The rate-alerts skill monitors lanes and fires webhooks on threshold crossings. Don’t poll rate-lookup in a loop — you’ll burn request quota and get stale signal.
Bulk Discounts on Enterprise
High-volume agents (>50K requests/month) should talk to sales about Enterprise. Per-request pricing drops significantly above the Professional tier.
Example: Multi-Skill Agent
An agent that quotes a reefer lane with market context:
Every response carries its own receipt. Storing all three lets you prove exactly what data drove the quote.