Output
- Success: JSON on stdout — indented by default (readable), compact
single-line with
--json(for pipes andjq). - Failure: a structured error object on stderr, shaped
{ "error", "message", "status", "details" }. HTTP errors carry an actionable message for400,401,403,404and429.
lemlist endpoints prints a text table by default, and a JSON array under
--json. A richer human-readable table for endpoint responses is a future
refinement — today the default is indented JSON.Exit codes
Every run ends with an exit code that signals the failure class, so an agent or script can branch without parsing stderr:Automatic retries
Transient failures — network errors,5xx responses and 429 rate limits —
are retried automatically with exponential backoff (a Retry-After header is
honored).
Unknown endpoints
When a path is missing from the OpenAPI spec,lemlist api returns
UNKNOWN_ENDPOINT (exit code 5) with the closest matching endpoints:
lemlist endpoints --refresh if you expect a newly deployed endpoint that
the cached spec does not yet know about.
give us feedback on this page