Zelvyn
Home/API/Explorer

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 required
POST/api/v1/math/factorial

Returns n! for an integer n from 0 to 1,000 (0! = 1). Exact integer results beyond Number.MAX_SAFE_INTEGER are returned as decimal strings and are never rounded.

Kept only in this browser tab. It is sent to the API as Authorization: Bearer, never stored on this site.

FieldTypeRequiredNotes
nintegeryesThe number to take the factorial of — 0 to 1,000.

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/factorial' \
  -H 'Content-Type: application/json' \
  -d '{"n":5}'

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. 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. 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. 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. 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:

cURLshell
JavaScriptrequest
TypeScriptrequest
Pythonrequest
PHPrequest
Gorequest
Javarequest
C#request
Rubyrequest
Rustrequest
Kotlinrequest
Swiftrequest
Dartrequest

One request, every language

This is /api/v1/math/add with {"values":[0.1,0.2]} — exactly what the explorer starts you with.

cURL
# 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]}'
JavaScript
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();
Python
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

OperationMethodPathSummary
healthGET/api/v1/healthLiveness / readiness probe

Statistics 9

OperationMethodPathSummary
meanPOST/api/v1/statistics/meanArithmetic mean
medianPOST/api/v1/statistics/medianMedian
variancePOST/api/v1/statistics/variancePopulation variance
standard-deviationPOST/api/v1/statistics/standard-deviationPopulation standard deviation
percentilePOST/api/v1/statistics/percentilePercentile (linear interpolation)
sumPOST/api/v1/statistics/sumSum of a dataset
minPOST/api/v1/statistics/minMinimum value
maxPOST/api/v1/statistics/maxMaximum value
rangePOST/api/v1/statistics/rangeRange (max − min)

Mathematics 16

OperationMethodPathSummary
addPOST/api/v1/math/addAdd numbers
subtractPOST/api/v1/math/subtractSubtract numbers (left to right)
multiplyPOST/api/v1/math/multiplyMultiply numbers
dividePOST/api/v1/math/divideDivide numbers (left to right)
percent-ofPOST/api/v1/math/percent-ofPercent of a value
percentage-changePOST/api/v1/math/percentage-changePercentage change between two values
powerPOST/api/v1/math/powerRaise a base to an exponent
sqrtPOST/api/v1/math/sqrtSquare root
nth-rootPOST/api/v1/math/nth-rootN-th root
logPOST/api/v1/math/logLogarithm to a base (default 10)
lnPOST/api/v1/math/lnNatural logarithm
factorialPOST/api/v1/math/factorialFactorial
gcdPOST/api/v1/math/gcdGreatest common divisor
lcmPOST/api/v1/math/lcmLeast common multiple
permutationsPOST/api/v1/math/permutationsPermutations P(n, r)
combinationsPOST/api/v1/math/combinationsCombinations C(n, r)

Business analytics 17

OperationMethodPathSummary
profitPOST/api/v1/business/profitProfit
profit-marginPOST/api/v1/business/profit-marginProfit margin (percent)
markupPOST/api/v1/business/markupMarkup (percent)
roiPOST/api/v1/business/roiReturn on investment ROI (percent)
roasPOST/api/v1/business/roasReturn on ad spend ROAS (ratio)
cagrPOST/api/v1/business/cagrCompound annual growth rate CAGR (percent)
break-evenPOST/api/v1/business/break-evenBreak-even volume (units)
conversion-ratePOST/api/v1/business/conversion-rateConversion rate (percent)
ctrPOST/api/v1/business/ctrClick-through rate CTR (percent)
cpcPOST/api/v1/business/cpcCost per click CPC
cpmPOST/api/v1/business/cpmCost per mille CPM
cpaPOST/api/v1/business/cpaCost per acquisition CPA
cacPOST/api/v1/business/cacCustomer acquisition cost CAC
aovPOST/api/v1/business/aovAverage order value AOV
retention-ratePOST/api/v1/business/retention-rateRetention rate (percent)
churn-ratePOST/api/v1/business/churn-rateChurn rate (percent)
clvPOST/api/v1/business/clvCustomer 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.

bash
# 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.