Request Headers
All requests to the Dfns API need to include at least these headers:
Header | Description |
---|---|
| ID of an Application created in your organization (see Applications) |
Authentication Headers
Most requests to the Dfns API need to be authenticated, and will need to include the following additional headers:
Header | Description |
---|---|
|
User Action Signing Header
Most requests that change the state within the Dfns system need to be signed (see User Action Signing), and require the following additional header:
Header | Description |
---|---|
| A one time token you got after the User Action Signing flow |
Registration Headers
Similar to authenticated endpoints, the Complete User Registration
endpoint needs an authentication token. This token is passed in the Authentication
header:
Header | Description |
---|---|
|
Server-Signed Application Headers
This is not a common scenario. Dfns recommends using a default Application for most use cases
App Secret
and API Signature
do not replace the authentication and user action signing requirements. For endpoints that need authentication you will still provide the Authorization
header, and for endpoints that require user action signing, you will also still provide the X-DFNS-USERACTION
header.
Application tokens do not grant access to the Dfns API, they are just used to enforce how the API is called
Server-signed applications can be used to ensure that all requests going to the Dfns API must originate from your servers. This is enforced by the caller providing an additional signature and an application secret (token) for the request, using the following additional headers:
Header | Description |
---|---|
| A secret token that identifies the application that is calling the API |
| The signature of the normalized request being made to the Dfns API |
| Random value used to prevent replay attacks. It must be a base64url-encoded JSON string with the following fields:
- |
The following Typescript code can be used to generate the nonce:
Last updated