# Authentication

All request messages exchanged between the OTA and DirectConnect must be authenticated using the  Basic Authorization. This is sent in HttpRequest Header. &#x20;

Below is an example to implement Basic Authorization in C# language.&#x20;

```csharp
string username = "Your username";   string password = "Your password";   
  
string credentials = Convert.ToBase64               (ASCIIEncoding.ASCII.GetBytes(username + ":" + password));  
  
request.Headers.Add("Authorization" , "Basic " + credentials);  
```


---

# 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://developer.rategain.com/our-products/channel-manager/direct-connect-demand-push/interface-specifications-reservation-notification-service/technical-overview/authentication.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.
