# Authentication

### **Authorization**

APIs that return an error: Unauthorized API access requires you to include the secret key in the header.

1. **Collection of funds** API requests only require the public key. The secret key should not be included in the header.
2. **Sending of funds** API requests require both the public and secret key. The secret key must be included in the header.

### API Keys

Applications keys are the unique identifiers of your merchant account when integrating. Service delivery and issue resolution are all dependent on these keys.

When you create a Netwallet account, you are given two kinds of keys:

1. **Primary Key**: This is a unique identifier of your merchant account. It is required to make every API request to the platform
2. **Secondary Key**: This is a unique identifier of your merchant account. It is complementary to the primary key

{% hint style="warning" %}
The Primary Key has to be included in the API request where authentication is mandatory.

Primary and Secondary keys can be found on the dashboard of your account.

Each account or subaccount has separate key.
{% endhint %}


---

# 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.netwalletpay.com/netwallet-api-docs/getting-started/merchant-onboarding/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.
