# Authentication

{% content-ref url="authentication/access-tokens" %}
[access-tokens](https://docs.mastersindia.co/eway/authentication/access-tokens)
{% endcontent-ref %}

{% content-ref url="authentication/api-key" %}
[api-key](https://docs.mastersindia.co/eway/authentication/api-key)
{% 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 |
