# 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: 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.getdor.com/dtm-docs/dtm-api/authentication/manually-creating-basic-auth-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.
