Troubleshooting
Find out what common API errors mean and how to fix them.
Common issues integrators run into using TEG Public API, and how to resolve them. These can apply at any point, not only during setup. Error responses contain an HTTP status code and a short message as a JSON string, for example "Load not found". These are the general errors. Where an endpoint has its own errors, they’re listed on its API Reference page.
| Status | Reason | Resolution |
|---|---|---|
| 400 | The JSON is malformed, a value has the wrong type, or an enum value is invalid. | Check the request body. For enums, the message lists the allowed values. |
| 401 | The API key or username and password are missing or invalid, are for the other environment, or API access isn’t enabled. | Check the X-API-KEY or Authorization header and the environment. For external vehicle and location endpoints, use Basic authentication. If it still fails, raise a support ticket. |
| 403 | You can’t access this resource or action. A mistyped path under /api/v2 also returns 403. | Check the path in the API Reference, and that the load belongs to your company. |
| 404 | The resource wasn’t found, for example a wrong load ID. | Check the ID and the base URL. |
| 409 | Conflict with existing data, for example a duplicate. | Check whether the record already exists. |
| 415 | Wrong Content-Type. | Use application/json, or multipart/form-data for uploads. |
| 422 | Validation failed. The message names the field or rule. | Fix the field named in the message and retry. |
| 429 | Too many requests (external vehicle locations). | Wait before retrying. |
| 5xx | Server error. | Retry later, and check your emails for any disruption to the API. If it continues, raise a support ticket. |
Updated about 6 hours ago
Did this page help you?