API Explorer
Send real requests to the live API and inspect the response envelope, headers, and timing.
The explorer
43 operations, grouped by domain. Requests run directly from your browser. Calls work without a key on the anonymous limit; add a key below only if you have one and want your plan's higher limit.
Request
Key requiredReturns base^exponent. 0^0 = 1 and 0^positive = 0 by convention; 0^negative yields DIVISION_BY_ZERO (422); a negative base with a non-integer exponent yields UNDEFINED_RESULT (422); overflow yields UNDEFINED_RESULT (422).
Kept only in this browser tab. It is sent to the API as Authorization: Bearer, never stored on this site.
| Field | Type | Required | Notes |
|---|---|---|---|
base | number | yes | The base of the power. |
exponent | number | yes | The exponent applied to the base. |
Sample code
follows your body# No API key needed. Optional: add this header for a higher limit:
# -H 'Authorization: Bearer $ZELVYN_API_KEY'
curl -sS \
-X POST 'https://api-zelvyn.devs.surf/api/v1/math/power' \
-H 'Content-Type: application/json' \
-d '{"base":2,"exponent":10}'Response
No response yet. Run the request to see the live envelope, the HTTP status, the request id and the latency.
Comparing the published specification…
43 operations · requests run directly from this browser. Calculation endpoints use the API key you enter; the health probe is public.
How to use it
Four steps, and the whole loop takes a few seconds.
- 1
Pick an operation — Filter the list on the left by path or summary, then choose the operation you want to call. Every one of them is real — the list is the published registry, not a sample.
- 2
Adjust the payload — The body starts as a request the contract accepts. Edit it freely: the API rejects unknown fields with a precise 400, so the editor is a safe place to experiment.
- 3
Run it — Run the request straight to https://api-zelvyn.devs.surf from your browser. Every call works without a key; a key is only needed for your plan's higher limit. The response panel shows the HTTP status, the full envelope, the request id and the latency.
- 4
Take the code with you — The sample tabs rewrite the snippet in nine languages as you type, always with your current body. Copy it and it runs.
Sample languages
The explorer writes the request in 13 languages, and the snippet follows the body you have in the editor. These are the ones it can produce:
One request, every language
This is /api/v1/math/add with {"values":[0.1,0.2]} — exactly what the explorer starts you with.
# No API key needed. Optional: add this header for a higher limit:
# -H 'Authorization: Bearer $ZELVYN_API_KEY'
curl -sS \
-X POST 'https://api-zelvyn.devs.surf/api/v1/math/add' \
-H 'Content-Type: application/json' \
-d '{"values":[0.1,0.2]}'const response = await fetch(
"https://api-zelvyn.devs.surf/api/v1/math/add",
{
method: "POST",
headers: {
"Content-Type": "application/json",
// Optional: add this line if you have a key (higher rate limit).
// Authorization: `Bearer ${process.env.ZELVYN_API_KEY}`,
},
body: JSON.stringify({"values":[0.1,0.2]}),
}
);
const { success, data, error, meta } = await response.json();import os # Optional: only needed for the commented API-key header
import requests
response = requests.request(
"POST",
"https://api-zelvyn.devs.surf/api/v1/math/add",
headers={
"Content-Type": "application/json",
# Optional: add this line if you have a key (higher rate limit).
# "Authorization": f"Bearer {os.environ['ZELVYN_API_KEY']}",
},
json={"values":[0.1,0.2]},
)
data = response.json()["data"]Operations
The complete registry — 43 paths the API answers, grouped by domain. Every row opens the explorer with that operation selected.
Health 1
| Operation | Method | Path | Summary |
|---|---|---|---|
| health | GET | /api/v1/health | Liveness / readiness probe |
Statistics 9
| Operation | Method | Path | Summary |
|---|---|---|---|
| mean | POST | /api/v1/statistics/mean | Arithmetic mean |
| median | POST | /api/v1/statistics/median | Median |
| variance | POST | /api/v1/statistics/variance | Population variance |
| standard-deviation | POST | /api/v1/statistics/standard-deviation | Population standard deviation |
| percentile | POST | /api/v1/statistics/percentile | Percentile (linear interpolation) |
| sum | POST | /api/v1/statistics/sum | Sum of a dataset |
| min | POST | /api/v1/statistics/min | Minimum value |
| max | POST | /api/v1/statistics/max | Maximum value |
| range | POST | /api/v1/statistics/range | Range (max − min) |
Mathematics 16
| Operation | Method | Path | Summary |
|---|---|---|---|
| add | POST | /api/v1/math/add | Add numbers |
| subtract | POST | /api/v1/math/subtract | Subtract numbers (left to right) |
| multiply | POST | /api/v1/math/multiply | Multiply numbers |
| divide | POST | /api/v1/math/divide | Divide numbers (left to right) |
| percent-of | POST | /api/v1/math/percent-of | Percent of a value |
| percentage-change | POST | /api/v1/math/percentage-change | Percentage change between two values |
| power | POST | /api/v1/math/power | Raise a base to an exponent |
| sqrt | POST | /api/v1/math/sqrt | Square root |
| nth-root | POST | /api/v1/math/nth-root | N-th root |
| log | POST | /api/v1/math/log | Logarithm to a base (default 10) |
| ln | POST | /api/v1/math/ln | Natural logarithm |
| factorial | POST | /api/v1/math/factorial | Factorial |
| gcd | POST | /api/v1/math/gcd | Greatest common divisor |
| lcm | POST | /api/v1/math/lcm | Least common multiple |
| permutations | POST | /api/v1/math/permutations | Permutations P(n, r) |
| combinations | POST | /api/v1/math/combinations | Combinations C(n, r) |
Business analytics 17
| Operation | Method | Path | Summary |
|---|---|---|---|
| profit | POST | /api/v1/business/profit | Profit |
| profit-margin | POST | /api/v1/business/profit-margin | Profit margin (percent) |
| markup | POST | /api/v1/business/markup | Markup (percent) |
| roi | POST | /api/v1/business/roi | Return on investment ROI (percent) |
| roas | POST | /api/v1/business/roas | Return on ad spend ROAS (ratio) |
| cagr | POST | /api/v1/business/cagr | Compound annual growth rate CAGR (percent) |
| break-even | POST | /api/v1/business/break-even | Break-even volume (units) |
| conversion-rate | POST | /api/v1/business/conversion-rate | Conversion rate (percent) |
| ctr | POST | /api/v1/business/ctr | Click-through rate CTR (percent) |
| cpc | POST | /api/v1/business/cpc | Cost per click CPC |
| cpm | POST | /api/v1/business/cpm | Cost per mille CPM |
| cpa | POST | /api/v1/business/cpa | Cost per acquisition CPA |
| cac | POST | /api/v1/business/cac | Customer acquisition cost CAC |
| aov | POST | /api/v1/business/aov | Average order value AOV |
| retention-rate | POST | /api/v1/business/retention-rate | Retention rate (percent) |
| churn-rate | POST | /api/v1/business/churn-rate | Churn rate (percent) |
| clv | POST | /api/v1/business/clv | Customer lifetime value CLV |
Limits and errors
No API key is required. Keyless requests run on the anonymous rate limit; adding a key raises the limit to your plan. Standard request size limits apply.
# Works without a key. Optional: add -H 'Authorization: Bearer $ZELVYN_API_KEY'
curl -X POST 'https://api-zelvyn.devs.surf/api/v1/math/add' \
-H 'Content-Type: application/json' \
-d '{"values":[0.1,0.2]}'Next steps
The explorer shows you the shape of the API. These pages tell you what to do with it.