How the Convex HTTP API works
Connvo exposes every public Convex function over HTTPS so you can call it from any language or tool that speaks REST. The OpenAPI document generated bynpx convex-helpers open-api-spec captures these endpoints and their schemas.
Core endpoints
POST /api/query— Invoke a Convex query for side-effect free reads.POST /api/mutation— Run a mutation that writes data within a transaction.POST /api/action— Execute an action for long-running or external operations.POST /api/run/{module/function}— Call a specific exported function by path, replacing the usual:separator with/(for examplemessages/list).
argscontains the named parameters expected by the function’s validator.formatcurrently supports onlyjson, but remains extensible for future transports.
Understanding responses
Convex wraps responses in a status object:status: "success"includes avalueproperty that contains the function result.status: "error"includeserrorMessage, optionalerrorData, andlogLines.logLinesreplays anything printed during execution, which is invaluable for debugging in Mintlify’s playground.