Skip to main content
The Lunacal MCP API uses standard HTTP status codes. Codes in the 2xx range mean success, 4xx codes mean a problem with the request, and 5xx codes mean a problem on Lunacal’s side.

Handling errors

Call /api/mcp/refresh to get a new token pair, then retry the original request once.
The refresh token has expired, was already used, or was revoked. Send the user through the authorization flow again.
event-types/update uses a strict schema. Remove any fields not listed in its reference.
Every MCP endpoint accepts POST only, including read operations.