# Setting up environment

## Base URL

Use the following base URL for each API that you want to use

```
https://api.v7.botpenguin.com/
```

## Access token & API keys

BotPenguin provides different types of access tokens and API keys for various levels of access and functionality. This documentation explains the three types of tokens and API keys available:

#### **1. Agency Token:**

* **Usage:** The agency token should be used for all agency-level APIs. This token provides access to features and functions at the agency level.
* **How to Obtain:** To obtain the agency token, follow these steps:
  1. Access the "My Account" section or Agency panel in BotPenguin.
  2. Look for the agency token, and you can copy it for use in your agency-level APIs.

#### **2. Customer Token:**

* **Usage:** The customer token should be used for all customer-level APIs. This token is designed for access to features and functions at the customer level.
* **How to Obtain:** To obtain the customer token, follow these steps:
  1. Access the "Developer" section or customer panel in BotPenguin.
  2. Look for the customer token, and you can copy it for use in your customer-level APIs.

#### **3. WhatsApp API Key:**

* **Usage:** The WhatsApp API key is specific to certain WhatsApp-related APIs and functionalities.
* **How to Obtain:** To obtain the WhatsApp API key, follow these steps:
  1. Navigate to the "API Key" tab under "Whatsapp Bot Settings" in the Bot section of BotPenguin.
  2. Locate and copy the WhatsApp API key for use with WhatsApp-related APIs.

These access tokens and API keys are essential for authenticating and authorizing API requests and interactions within the BotPenguin platform. Please make sure to use the appropriate token or key based on your access level and the specific APIs you intend to access. Keeping your tokens and keys secure is crucial to maintaining the integrity of your BotPenguin account and data.

### :question: Got any questions?

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If now, write us at <contact@botpenguin.com>


---

# 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://partners.botpenguin.com/api-documentation/partner-api-documentation/setting-up-environment.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.
