Early accessWe're onboarding teams in batches. The sandbox and docs are open to everyone. Request access →

Skip to content
APIserver.in
Docs menu

Docs

SDKs & snippets

Plain HTTPS + JSON. Copy a snippet, or generate a typed client from the OpenAPI spec.

Snippets

No SDK required. Every endpoint is one POST with a JSON body.

curl https://api.apiserver.in/v1/business360 \
  -H "Authorization: Bearer as_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"cin":"U17120KA2016PTC094312"}'
const res = await fetch("https://api.apiserver.in/v1/business360", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.APISERVER_KEY ?? "as_test_YOUR_KEY"}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "cin": "U17120KA2016PTC094312"
  }),
});

const { success, data, meta, error } = await res.json();
console.log(meta.charged, meta.amount_inr); // failed calls are never charged
import os, requests

res = requests.post(
    "https://api.apiserver.in/v1/business360",
    headers={
        "Authorization": f"Bearer {os.getenv('APISERVER_KEY', 'as_test_YOUR_KEY')}",
    },
    json={
        "cin": "U17120KA2016PTC094312",
    },
    timeout=10,
)
body = res.json()
print(body["meta"]["charged"], body["meta"]["amount_inr"])
<?php
$ch = curl_init('https://api.apiserver.in/v1/business360');
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . (getenv('APISERVER_KEY') ?: 'as_test_YOUR_KEY'),
        'Content-Type: application/json',
    ],
    CURLOPT_POSTFIELDS => json_encode([
        'cin' => 'U17120KA2016PTC094312',
    ]),
]);
$body = json_decode(curl_exec($ch), true);
echo $body['meta']['charged'] ? 'charged' : 'not charged';

OpenAPI & typed clients

The spec at /openapi.json is generated from the same Zod schemas the API validates with, so it is always current.

generate TypeScript types
npx openapi-typescript https://apiserver.in/openapi.json -o apiserver.d.ts

Postman / Insomnia

Import → Link → https://apiserver.in/openapi.json. Every endpoint, example body and the Bearer auth scheme come through.

Official SDKs

Node, Python and PHP SDKs are coming soon. They will be thin, typed wrappers — the HTTP API stays the contract.