API Keys
All API requests require authentication using an API key passed in the header.
curl -X GET "https://api.saguarotransport.com/v1/shipments" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
Obtaining API Keys
- Log in to your Client Portal
- Navigate to Settings > API Access
- Click Generate New Key
- Copy and securely store your key
API keys grant full access to your account. Never share them or commit them to version control.
Environments
| Environment | Base URL |
|---|
| Sandbox | https://sandbox-api.saguarotransport.com/v1 |
| Production | https://api.saguarotransport.com/v1 |
Use the sandbox environment for testing. Data in sandbox is isolated from production.
Error Responses
Authentication errors return HTTP 401:
{
"error": "unauthorized",
"message": "Invalid or missing API key"
}