Authentication
How to authenticate requests with your API keys
API Key & Secret Headers
All B2B tenant endpoints require two HTTP headers with every request. You can generate and rotate your keys from the EZNotary Business Dashboard.
| Header | Type | Description |
|---|---|---|
| x-api-key | string | Public identifier for your tenant account |
| x-api-secret | string | Private secret key. Keep secure on your backend server. |
Security Best Practice: Never expose your
x-api-secret in client-side code (browser, mobile apps, or public Git repos). Always route API calls through your secure backend server.TLS 1.3 encrypted HTTPS required
Get API KeysTest Connection (Production)Active Target: https://eznotary.in/api/v1
cURL — Verify Credentials
Node.js Example
Handling Authentication Errors
If your request lacks authentication headers or has invalid credentials, the EZNotary API responds with an HTTP 401 Unauthorized status:
{
"statusCode": 401,
"message": "Missing or invalid x-api-key or x-api-secret headers",
"error": "Unauthorized"
}