api.deepidv.com with an x-api-key header. This guide covers setup, security, and advanced configurations.
Need a key? Generate one from the API Authentication page. Keys are owned by a user in your organization and carry that user’s permissions.
Basic setup
apiKey is the only required configuration field:
Security best practices
Use environment variables
Never hardcode API keys in source control:Never log the full key
The SDK automatically redacts API keys in error output. If you need to log which key was used, log the redacted form fromAuthenticationError:
Rotate keys
If a key is compromised:- Generate a new API key in the deepidv dashboard.
- Update your environment variable.
- Revoke the old key.
Use a key per environment
API key redaction
When anAuthenticationError is thrown, the SDK stores only a redacted version of the key. When serialized with JSON.stringify(), the full key is never included:
Custom fetch for proxy / mTLS
To route requests through a proxy or attach mutual-TLS certificates, provide a customfetch implementation:
Cloudflare Workers service binding
fetch injection patterns.