Authentication
The v1 API accepts two API-key authentication methods:x-api-key: <key>Authorization: Bearer <key>
pk_ and sk_ prefixes.
Public key
Apk_ key is intended for read operations.
Secret key
Ansk_ key can be used for authorized read and write operations.
Unsupported usage
Do not send a key in the query string:Device Flow
The Device Flow is intended for applications and devices that do not have a full browser. The general flow is:- Request a device code.
- Present the user code or QR code to the user.
- Have the device approved in dejaVu.
- Exchange the
device_codefor an access token. - Use the returned token as a Bearer token.
Security
- Never log API keys.
- Never place a secret key in JavaScript executed in the browser.
- Use HTTPS for every request.
- If a key is compromised, revoke it and create a new one.