Primary Model
The primary API model is calculator-scoped. Authenticate as a user, list the calculators you can access, then operate on a specific calculator.
The Number Adder API lets you perform organization and calculator-scoped operations, view calculator history, and manage your account programmatically.
Base URL: https://number-adder.com
Your key will look like: na_a1b2c3d4e5f6...
The primary API model is calculator-scoped. Authenticate as a user, list the calculators you can access, then operate on a specific calculator.
Include your API key in the X-API-Key header with every request:
All endpoints require authentication. Requests without a valid key return 401 Unauthorized.
List all calculators the authenticated user can access across their organizations.
Example
Add two numbers using a specific calculator. The calculator determines the organization scope.
Request body
Example
Get calculation history for one calculator.
Example
Legacy endpoint for older integrations. New multi-tenant clients should prefer /calculators/{calc_id}/add.
Request body
Response 200
Example
Multiply two numbers. Requires a premium subscription.
Request body
Response 200
Error 403 (not premium)
Example
Legacy endpoint for older integrations. New multi-tenant clients should prefer /calculators/{calc_id}/history.
Response 200
Example
Get your account information.
Response 200
Example
Export all your data as JSON (GDPR: Right to Portability).
Response 200
Example
Permanently delete your account and all associated data (GDPR: Right to Erasure). This action cannot be undone.
Response 200
Example
The API returns standard HTTP status codes. Error responses include a detail field with a human-readable message.
| Status | Meaning |
|---|---|
400 |
Bad request — invalid input or malformed JSON |
401 |
Unauthorized — missing or invalid API key |
403 |
Forbidden — premium subscription required (for /multiply) |
404 |
Not found — resource does not exist |
422 |
Validation error — request body failed validation |
Error response format