> For the complete documentation index, see [llms.txt](https://moneywave.gitbook.io/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moneywave.gitbook.io/doc/authentication.md).

# 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://moneywave.gitbook.io/doc/authentication.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
