# Authentication

{% content-ref url="/pages/QTBvBTZKdlcFPIxYx7zm" %}
[Access Tokens](/eway/authentication/access-tokens.md)
{% endcontent-ref %}

{% content-ref url="/pages/Rp40nFRaenlHc1eT9D6e" %}
[API KEY](/eway/authentication/api-key.md)
{% endcontent-ref %}

## Authentication Header

### Access Token&#x20;

If you have chosen the access token approach then for authentication to work you will need to pass the token in request **headers** in the following manner

| Paramater     | Value                    | Description                                                                                              |
| ------------- | ------------------------ | -------------------------------------------------------------------------------------------------------- |
| Authorization | JWT **\<access\_token>** | **JWT** remains constant following by a space and then the access token received from the associated API |

### API Key

If you have chosen the API key approach then for authentication to work you will need to pass the token in request **headers** in the following manner

| Paramater | Value       | Description                                                |
| --------- | ----------- | ---------------------------------------------------------- |
| api\_key  | \<api\_key> | Pass the API key generated from the UI as is in the header |


---

# 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.mastersindia.co/eway/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.
