# Authorization

The Base section is used to set up authorization. Most services require the authorization key be sent either in `headers` or in the `qs` (query string). If you set the authorization in the base, all modules and Remote Procedure Calls (RPCs) will inherit it.

## Common methods of authorization

### API key in headers

```json
{
    "headers": {
        "x-api-key": "{{connection.apiKey}}"
    }
}
```

### API key in query string

```json
{
    "qs": {
        "apikey": "{{connection.apiKey}}"
    }
}
```

### OAuth 2 access token in headers

```json
{
    "headers": {
        "authorization": "Bearer {{connection.accessToken}}"
    }
}
```


---

# 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://developers.make.com/custom-apps-documentation/app-components/base/authorization.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.
