Errors
A failed request answers with a status code and a JSON body. Branch on the error code; the message is for people.
Error codes
The body has the form { "error": "...", "message": "..." }.
| Status | error | Meaning |
|---|---|---|
| 400 | invalid_body | A field is missing, has the wrong type or is out of range, or is unknown. details lists each field. |
| 400 | invalid_time | The start time is in the past or more than a year ahead. |
| 400 | invalid_query | A filter in the URL has a value that is not allowed. |
| 401 | invalid_api_key | The Authorization header is missing, malformed, or the key is wrong or revoked. |
| 403 | plan_required | The account is not on a paid plan, so its keys are switched off. |
| 403 | plan_limit | A limit of the plan applies, for example how many meetings can run at once. |
| 404 | not_found | No such meeting in your account. |
| 409 | not_schedulable | Only scheduled meetings that have not ended can be changed. |
| 429 | rate_limited | Too many requests. Wait the number of seconds in the Retry-After header. |
Examples
403 Forbidden
{
"error": "plan_required",
"message": "The developer API is included in paid plans (Rise and above). This account is on the Free plan, so its API keys are switched off until it moves to a paid plan."
}400 Bad Request
{
"error": "invalid_body",
"message": "Invalid request: durationMin: Too big: expected number to be <=720; hostId: Unknown field.",
"details": [
{ "field": "durationMin", "message": "Too big: expected number to be <=720" },
{ "field": "hostId", "message": "Unknown field." }
]
}