# Request Headers

## Authentication Headers

Most requests to the Dfns API need to be authenticated, and will need to include the following additional headers:

<table><thead><tr><th width="267.36734693877554">Header</th><th>Description</th></tr></thead><tbody><tr><td><code>Authorization: Bearer &#x3C;token></code></td><td>An authentication token (see <a data-mention href="/pages/GGwAnYQzspAlNeDWMlon#get-an-authentication-token">/pages/GGwAnYQzspAlNeDWMlon#get-an-authentication-token</a>)</td></tr></tbody></table>

## User Action Signature Header

Most requests that change the state within the Dfns system (non-GET requests basically) need to be signed (see [User Action Signing](/d/api-docs/authentication/user-action-signing.md)) by the user's credential, and require the following additional header:

<table><thead><tr><th width="289">Header</th><th>Description</th></tr></thead><tbody><tr><td><code>X-DFNS-USERACTION: &#x3C;user-action-signature></code></td><td>A one time token you got after the <a data-mention href="/pages/sagQEZmerbaXyYZDD34w">/pages/sagQEZmerbaXyYZDD34w</a> flow</td></tr></tbody></table>

## Registration Headers

Similar to authenticated endpoints, the `Complete User Registration` endpoint needs an authentication token. This token is passed in the `Authentication` header:

<table><thead><tr><th width="267.36734693877554">Header</th><th>Description</th></tr></thead><tbody><tr><td><code>Authorization: Bearer &#x3C;token></code></td><td>The temporary authentication token returned from <a data-mention href="/pages/n36P9BYdelYNu8kM5Qau#responses">/pages/n36P9BYdelYNu8kM5Qau#responses</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-legacy.dfns.co/d/advanced-topics/authentication/request-headers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
