> For the complete documentation index, see [llms.txt](https://docs.360dialog.com/partner/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.360dialog.com/partner/partner-hub/api-keys.md).

# API Keys

API Keys provide secure access to the WhatsApp Business API on behalf of clients. Partners can generate API Keys only if they have the required permissions for the relevant number or channel.&#x20;

### Partner Permissions Overview

Permission to generate API Keys is granted automatically during onboarding.

* **Partner Payment**: Partners can manage channels by default.
* **Direct Payment**: Clients can revoke or re-grant access at any time via their Client Hub Settings.

### Generating API Keys

Partners can verify if they have permission to generate an API Key for a client's channel through the [Partner API](/partner/partner-api/api-reference/client-management.md#get-api-v2-partners-partner_id-clients-client_id-shared_client_numbers).

Partners can generate keys in the following ways:

#### Using the Partner API

Partners can create an API Key programmatically for a specific channel using this [endpoint](/partner/partner-api/api-reference/channel-management.md#post-api-v2-partners-partner_id-channels-channel_id-api_keys).

#### Using the Partner Hub

1. Go to the channel details.
2. In the API Settings, click on the icon to create a new API Key.&#x20;

<figure><img src="/files/Bw3wSMkRDDqUzen8e8n0" alt=""><figcaption></figcaption></figure>

If permission is missing, the button will be hidden.

***

#### Direct Payment Channels

Permissions are shared by default during onboarding.\
\
Clients can navigate to [Client Hub](https://app.360dialog.com/), select the channel, go to the "API settings" section, and change the preference in "Partner access":\
\
![](/files/qnahwgt7zsaVVmgV9OGM)


---

# 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://docs.360dialog.com/partner/partner-hub/api-keys.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.
