Developers
API Documentation
Integrate with Myra's freight intelligence platform. REST API with real-time tracking, load management, and carrier matching.
Overview
Built for Integration
The Myra API is a RESTful JSON API secured with JWT authentication. Access load management, carrier matching, real-time tracking, and more from any platform.
Protocol
REST over HTTPS. All responses return JSON. Standard HTTP status codes for errors.
Base URL
https://app.myra-ai.com/api
Rate Limits
1,000 requests per minute per API key. Cached via Upstash Redis for performance.
Authentication
Bearer Token Auth
Authenticate by including a JWT token in the Authorization header of every request. Tokens are issued via the login endpoint and expire after 24 hours.
Example Request
# Authenticate to receive a JWT token POST /api/auth/login Content-Type: application/json { "email": "user@example.com", "password": "your-password" } # Use the token in subsequent requests GET /api/loads Authorization: Bearer <your-jwt-token>
Endpoints
API Reference
Core endpoint groups for managing your freight operations programmatically.
Loads
Create, update, list, and track loads through their full lifecycle — from booking to delivery and invoicing.
GET /api/loads
GETPOSTPATCH
Carriers
Search the carrier network, verify FMCSA compliance, view equipment and lane history, and manage carrier profiles.
GET /api/carriers
GETPOSTPATCH
Shippers
Manage shipper accounts, preferences, default facilities, and shipper-specific rate agreements.
GET /api/shippers/[id]
GETPOSTPATCH
Tracking
Real-time GPS positions, ETA calculations, SSE live streams, and proactive exception detection for in-transit loads.
POST /api/loads/[id]/location
GETPOST
Invoices
Generate, manage, and track invoices. Includes aging reports, payment status updates, and automated alert scheduling.
GET /api/invoices
GETPOSTPATCH
Documents
Upload and download BOLs, PODs, rate confirmations, and carrier packets. Supports Vercel Blob storage.
POST /api/loads/[id]/pod
GETPOST
Matching
AI-powered carrier matching engine. Scores carriers on lane familiarity, proximity, rate, reliability, and relationship.
POST /api/loads/[id]/match
POST
Quotes
Rate estimation using AI models, market data, and historical lane pricing. Create, update, and convert quotes to loads.
GET /api/quotes
GETPOSTPATCH
Interactive Documentation Coming Soon
Full interactive API documentation with request/response examples, sandbox testing, and webhook configuration is in development. Contact us for early API access.
Get Started
Ready to Integrate?
Request API access and our engineering team will provision your credentials and walk you through the integration process.