Authorization header.
API token format
Your API token combines your client ID and client secret with a period separator:Making authenticated requests
Include the token in theAuthorization header of every request:
Required headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer <your_token> | All requests |
Content-Type | application/json | Requests with a body |
Accept | application/json | Recommended |
Error responses
If authentication fails, the API returns one of these responses:| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid API token |
402 Payment Required | No active ShipPeek subscription |
403 Forbidden | Token valid but lacks permission for this resource |
Security recommendations
- Store your API credentials in environment variables, not in source code.
- Use the sandbox environment (
api.shippeek.dev) for development and testing. - Rotate your credentials immediately if you suspect they have been compromised.
- Use separate API keys for different environments and applications.