Skip to main content

Errors

The CalendarPipe REST API uses standard HTTP status codes. A 2xx status indicates success; a 4xx indicates a client-side problem you can correct; a 5xx indicates a problem on CalendarPipe or an upstream provider.

Status codes

CodeMeaningWhen you see it
200OKA successful read.
201CreatedA new resource was created — for example, a hosted calendar or event.
204No ContentA successful delete or cancel. The response body is empty.
400Bad RequestThe request payload is missing required fields, malformed, or fails validation.
401UnauthorizedThe Authorization header is missing, the API key is invalid, or the key has been revoked.
402Payment RequiredThe endpoint requires a Pro plan and the account is on Free.
403ForbiddenYou are authenticated but not allowed to perform this action on this resource.
404Not FoundThe resource does not exist or is not owned by the authenticated account.
409ConflictThe request conflicts with the current state of the resource (for example, a duplicate).
422Unprocessable EntityThe request was well-formed but a referenced resource is in a state that cannot satisfy it.
500Internal Server ErrorSomething failed inside CalendarPipe. Retry; if the error persists, contact support.
502Bad GatewayAn upstream provider (Google, Microsoft, Apple) rejected the request or is unavailable.

Response shape

Errors return JSON with a consistent envelope:

{
"error": "Bad Request",
"message": "start_at must be before end_at"
}
FieldDescription
errorA short label matching the HTTP status (Unauthorized, Not Found, etc.).
messageA human-readable description of what went wrong.
detailsOptional. Additional structured context — for example, the offending field on a validation error.

A successful response never uses this shape. Always check the HTTP status code before parsing the body.

Common cases

401 Unauthorized

{
"error": "Unauthorized",
"message": "Missing, invalid, or revoked API key"
}

Check the Authorization header — the value must be Bearer <key> with no extra whitespace, and the key must not have been revoked. See API Keys.

402 Payment Required

Returned when an account on the Free plan calls a Pro-only endpoint:

{
"code": "API_ACCESS_BLOCKED",
"type": "api_disabled",
"message": "Public API is not available on the Free plan. Upgrade to Pro for API access."
}

Upgrade the account on the Billing page to clear the error.

502 Bad Gateway

CalendarPipe could not reach the upstream provider (Google Calendar, Microsoft Graph, iCloud). The original error message is forwarded in message to help diagnose. These are usually transient — retry after a short delay.

Retries

5xx responses are safe to retry. 4xx responses indicate a problem with your request and will keep failing until the request changes. Use exponential backoff for retries to avoid amplifying transient issues.

  • API Keys — authentication and the Authorization header.
  • API Reference — per-endpoint request and response details.