Destiny Number API with Netlify Functions
Integrate Destiny Number API in Netlify Functions. Complete code examples and SDK documentation.
Operation
POST /v2/calculators/destiny-number
Destiny (expression) number from the letters of a name.
Send name (alias fullName). The destiny number is the sum of every letter of the name (Pythagorean, A=1 to I=9, J=1 and so on), reduced to one digit, keeping the master numbers 11, 22 and 33. A birth date is not needed. A request without a name, or with a name that has no letter in it, returns 400 and is not billed.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
name | body | string | Required. Full name the number is read from. Alias fullName. |
Request example for Netlify Functions
Authenticate with Authorization: Bearer YOUR_API_KEY. Keep the key in the VEDIKA_API_KEY environment variable on your server and never in source control.
// netlify/functions/vedika-destiny-number.mjs
export default async () => {
const upstream = await fetch('https://api.vedika.io/v2/calculators/destiny-number', {
method: 'POST',
headers: {
Authorization: `Bearer ${Netlify.env.get("VEDIKA_API_KEY")}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Asha Verma"
}),
});
return new Response(await upstream.text(), {
status: upstream.status,
headers: { 'Content-Type': 'application/json' },
});
};
Try it in the keyless sandbox
The sandbox mirrors the production route and needs no API key:
curl -X POST https://api.vedika.io/sandbox/calculators/destiny-number \
-H "Content-Type: application/json" \
-d '{"name":"Asha Verma"}'
Sandbox response from POST /sandbox/calculators/destiny-number, abridged (billing block, long text fields and long lists trimmed). The sandbox answers with a fixed demo result and ignores your inputs; a production call computes the result for the details you send.
{
"data": {
"destiny_number": 6,
"method": "pythagorean",
"name": "Ravi Kumar"
},
"meta": {
"contentMode": "fixture",
"engine": "vedika-intelligence",
"fixtureId": "sandbox-demo-inputs",
"inputUsage": "ignored",
"mode": "sandbox",
"sample": true,
"version": "2.1.0"
},
"success": true
}
Related
The same endpoint in other stacks:
Last updated: 22 November 2026