Get started

Authentication

Every request needs an API key. You send it as a Bearer token in the Authorization header.

curl https://platform.eurekatechlabs.com/v1/calls/ses_xxxxxxxx \
  -H "Authorization: Bearer ek_live_xxxxxxxxxxxxxxxxxxxx"

No header, or a bad key → 401 Unauthorized.


Get a key

  1. Open your dashboard and go to Developer → API Keys.
  2. Click Generate Key, pick a product, and choose what the key can do (its scopes).
  3. Copy the key right away — we show it once.
Prefix Use
ek_live_ Real calls, real money
ek_test_ Testing

Scopes — what a key is allowed to do

A key only works for the things you allow. Ask for a scope the key doesn't have → 403 Forbidden.

Scope Lets the key… Sensitive
calls:write Make calls and hang them up ⚠️ spends money
calls:read Read call status and records
agents:read Read agents
agents:write Create, edit, and delete agents
numbers:read Read your numbers
numbers:write Change number settings ⚠️
webhooks:read List webhooks
webhooks:write Create, edit, and delete webhooks
usage:read Read usage and cost records
voice:connect Open Voice Sockets and mint connection tokens
direct_call:connect Open Direct Call audio WebSocket sessions and mint connection tokens ⚠️ spends money

Give a key only what it needs. A calling key needs calls:write. A Voice Socket key needs only voice:connect. Sensitive scopes either spend money or change what a number/call does — grant them only to keys that need to.


Idempotency — safe retries

When you make a call, a flaky network can leave you unsure if it worked. Send an Idempotency-Key header and retry safely — the same key never makes two calls.

curl -X POST https://platform.eurekatechlabs.com/v1/calls \
  -H "Authorization: Bearer ek_live_..." \
  -H "Idempotency-Key: order-9182-attempt-1" \
  -H "Content-Type: application/json" \
  -d '{ "agentId": "agt_xxxx", "toNumber": "+919876543210", "fromNumber": "+918008001234" }'

Repeat the same Idempotency-Key and you get the original response back — no second call. Keys last 24 hours.


Lock a key to your servers (optional)

For production keys, add an IP allowlist in the dashboard. Requests from any other IP get 403 Forbidden.


Rotate or revoke

Revoke and regenerate keys any time in Developer → API Keys. A revoked key stops working immediately.