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.

StatusReasonResolution
400The 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.
401The 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.
403You 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.
404The resource wasn’t found, for example a wrong load ID.Check the ID and the base URL.
409Conflict with existing data, for example a duplicate.Check whether the record already exists.
415Wrong Content-Type.Use application/json, or multipart/form-data for uploads.
422Validation failed. The message names the field or rule.Fix the field named in the message and retry.
429Too many requests (external vehicle locations).Wait before retrying.
5xxServer error.Retry later, and check your emails for any disruption to the API. If it continues, raise a support ticket.

Did this page help you?