POST request with a JSON body, and you receive a JSON response.
Base URL
All API requests are made to:/api/v1/.
Authentication
You authenticate by including your API key in theAuthorization header of every request.
Request format
All endpoints acceptPOST requests with a Content-Type: application/json body. There are no query parameters — all inputs are passed in the request body as a JSON object.
Response format
Responses are always JSON objects. A successful response returns HTTP200 with a result object whose structure depends on the endpoint and the api_level you request. See the errors reference for non-200 status codes.
Minimal complete example
The following example adds two matrices and returns a detailed response with steps.Common request parameters
Every math endpoint accepts the following shared parameters in the request body, in addition to any operation-specific fields.string
default:"ans"
The name assigned to the computed result in the response object.
string
default:"detailed"
Controls response verbosity. Accepted values:
"lite", "standard", "detailed".boolean
default:"true"
When
true, includes background theory alongside each solution step.string[]
default:"[\"\"]"
Format for rendered step content. Accepted values:
"html", "latex", "speech". Pass an empty string for plain text.integer | null
default:"null"
Number of decimal places to round results to. Pass
null to return full precision.boolean
default:"false"
When
true, applies decimals rounding to intermediate step values as well as the final result.boolean
default:"true"
When
true, includes a normalized copy of the request parameters in the response.boolean
default:"true"
When
true, includes links to curated learning resources relevant to the operation.When
true, includes links to related Stemfard API endpoints in the response.boolean
default:"true"
When
true, includes a description of the result object’s properties in the response.The
api_level parameter is the fastest way to control response size. Use "lite" when you only need the computed result and want to minimize payload size. Use "standard" for results with steps but without background theory. Use "detailed" (the default) for the richest response, including theory, learning pathways, and related endpoint links — ideal for educational interfaces.Endpoint groups
The API is organized into endpoint groups by mathematical domain. Each group contains a combined endpoint (which accepts atype or operation parameter to select the specific computation) and individual focused endpoints for each operation.