# Authentication

## Authorization

When accessing APIs on Moneywave, an authorization token is required to securely authenticate the request. An api key and secret key is required when requesting a token. These keys are displayed under account settings after you sign-up.&#x20;

There are two sets of Keys, your live key and your test key. When you are on test mode, your test keys are displayed and when you switch to live mode, your live keys are displayed. This is the same for the API base url.

## Authorization Token

<mark style="color:green;">`POST`</mark> `https://staging.moneywaveapp.com/v1/merchant/verify`

Get an authorization token for other API requests

#### Request Body

| Name   | Type   | Description               |
| ------ | ------ | ------------------------- |
| apiKey | string | your moneywave api key    |
| secret | string | your moneywave api secret |

{% tabs %}
{% tab title="200 " %}

```
{
    "status": "success",
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6IlRocml2ZSIsImFjY291bnROdW1iZXIiOiIwNjkwMDAwMDAiLCJiYW5rQ29kZSI6IjMwNyIsImlzQWN0aXZlIjp0cnVlLCJlbnZpcm9ubWVudCI6ImxpdmUiLCJjYW5fZ29saXZlIjp0cnVlLCJjb3VudGRvd24iOm51bGwsImNvbXBsaWFuY2UiOjgsImNvZGUiOiJNTDU4MCIsInBvc0lkIjoiMTE0NjMiLCJlYmlsbElkIjoiTVRGVyIsImlwIjpudWxsLCJjcmVhdGVkQXQiOiIyMDE2LTA5LTE2VDEzOjQ5OjIzLjAwMFoiLCJ1cGRhdGVkQXQiOiIyMDE3LTA3LTE5VDE0OjA2OjM2LjAwMFoiLCJkZWxldGVkQXQiOm51bGwsImlhdCI6MTUyOTk4ODgwOCwiZXhwIjoxNTI5OTk2MDA4fQ.0g9LZafu2tFVJizNNIESJzRr8TT_7bcmj7F16ab18YQ",
}
```

{% endtab %}
{% endtabs %}

{% hint style="success" %}
Pass the **token** value returned as **Authorization** in the header of other API requests.
{% endhint %}
