> For the complete documentation index, see [llms.txt](https://docs.getdor.com/dtm-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getdor.com/dtm-docs/dtm-api/authentication/manually-creating-basic-auth-headers.md).

# Manually Creating Basic Auth Headers

#### Basic Auth Header Example <a href="#basic-auth-header-example" id="basic-auth-header-example"></a>

```
Authorization: Basic dG1fOGhIaEc3Z2Y5c2hoZDowU2hHOGdMUmVwcE85Vm03NFBVU3llc2VjODdFaEg=
```

Many development frameworks support basic auth out-of-the-box (e.g. cURL) but you can also easily create the necessary headers yourself. Send an `Authorization` header with the value `Basic ORG_ID:API_Key`, replacing your own values for ORG\_ID and API\_Key. The `ORG_ID:API_Key` portion should be base64 encoded.

&#x20;

**For example:**

If your Organization ID is `tm_8hHhG7gf9shhd` and your API key is `0ShG8gLReppO9Vm74PUSyesec87EhH` you would send the header in the example because `tm_8hHhG7gf9shhd:0ShG8gLReppO9Vm74PUSyesec87EhH` base64 encoded is `dG1fOGhIaEc3Z2Y5c2hoZDowU2hHOGdMUmVwcE85Vm03NFBVU3llc2VjODdFaEg`.

Making a request with an invalid ORG ID or API Key will result in a 403 response code.&#x20;

For more info on error responses, see:

{% content-ref url="/pages/JlcobHyHKmDCO1whFiZs" %}
[Error Responses](/dtm-docs/dtm-api/response-format/error-responses.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.getdor.com/dtm-docs/dtm-api/authentication/manually-creating-basic-auth-headers.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
