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

# 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 %}
