Status & Error Codes

The Teachable API uses HTTP status codes to indicate if an error has occurred when processing a request. Errors might occur if your request was not formatted correctly, you didn’t include proper authentication, or if there was any other error in processing the request.

Common error codes include:

Status CodeReasonDescription
400Bad requestThe request has an error. Invalid JSON, a parameter of the wrong type, an unknown query filter, or a missing required parameter.
402Payment requiredYour school's plan does not include access to this API. Upgrade the plan to continue.
403ForbiddenThe API key is missing, invalid, revoked, or expired; the school is blocked; API v2 is not enabled for the school; or the key lacks a scope this endpoint requires.
404Not foundThe resource does not exist, or is not visible to your school.
409ConflictThe request conflicts with the current state of the resource.
422Validation failedThe request was well-formed, but violates a business rule.
429Too many requestsYou have exceeded the rate limit. Back off and retry.
500Internal server errorThe server encountered an unexpected condition that prevented it from fulfilling the request.
502Bad gatewayA downstream service failed while handling the request. Safe to retry.

Did this page help you?