# Basic Auth

#### Basic Auth Request using cURL <a href="#basic-auth-request-using-curl" id="basic-auth-request-using-curl"></a>

{% tabs %}
{% tab title="cURL" %}

```
curl https://api.getdor.com/dtm-api/v1/locations \
-u tm_8hHhG7gf9shhd:0ShG8gLReppO9Vm74PUSyesec87EhH;

Or...

curl https://tm_8hHhG7gf9shhd:0ShG8gLReppO9Vm74PUSyesec87EhH@api.getdor.com/dtm-api/v1/locations
```

{% endtab %}
{% endtabs %}

The DTM API requires authentication on every endpoint using [HTTP Basic Auth](https://en.wikipedia.org/wiki/Basic_access_authentication) over HTTPS.

Basic auth credentials should be sent in the format of `ORG_ID:API_Key` in place of `Username:Password`. Credentials must be sent with every request.

{% hint style="info" %}
**Cross-Organization Endpoints**

Some endpoints are cross-organization and do not require the `ORG_ID` value. Authentication for these endpoints should be sent with an empty string value for `ORG_ID` in the format `:API_KEY`&#x20;
{% endhint %}


---

# 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/basic-auth.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.
