Destiny Number API with Fiber
Integrate Destiny Number API in Fiber. 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 Fiber
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.
package main
import (
"io"
"net/http"
"os"
"strings"
)
const payload = `{
"name": "Asha Verma"
}`
func callVedika() ([]byte, int, error) {
req, err := http.NewRequest("POST", "https://api.vedika.io/v2/calculators/destiny-number", strings.NewReader(payload))
if err != nil {
return nil, 0, err
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("VEDIKA_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
return nil, 0, err
}
defer res.Body.Close()
data, err := io.ReadAll(res.Body)
return data, res.StatusCode, err
}
// app := fiber.New()
func vedika(c *fiber.Ctx) error {
data, status, err := callVedika()
if err != nil {
return c.SendStatus(http.StatusBadGateway)
}
c.Set("Content-Type", "application/json")
return c.Status(status).Send(data)
}
// app.Get("/vedika/destiny-number", vedika)
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