> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iterapay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate API Token

To authenticate your automated API requests (such as creating invoices or querying balances programmatically), you must generate an API token.

Follow these steps to create a new token:

1. Open your merchant dashboard and navigate to the **Developers** tab.
2. In the *API Token* block, click the **Generate API token** button.

<Frame>
  <img src="https://mintcdn.com/red-b9883948/QmvWMdaFew2nV8lR/images/Screen-53.png?fit=max&auto=format&n=QmvWMdaFew2nV8lR&q=85&s=a7ae91f6b895c06c475f226f99a036ec" alt="Screen 53" width="2394" height="1350" data-path="images/Screen-53.png" />
</Frame>

3. A confirmation modal will appear, indicating the validity period of the new token (e.g., valid for 1 month). Click **Generate** to proceed.

<Frame>
  <img src="https://mintcdn.com/red-b9883948/QmvWMdaFew2nV8lR/images/screen-54.png?fit=max&auto=format&n=QmvWMdaFew2nV8lR&q=85&s=375fd0b8df6dbcd8a88a21c51cd6819f" alt="Screen 54" width="2872" height="1630" data-path="images/screen-54.png" />
</Frame>

4. **CRITICAL STEP: Copy your token!** \* The system will display an *"API token generated"* window containing your new key.
   * ⚠️ **Save your token now!** For security reasons, the full token will **not be shown again**.
   * Click the copy icon next to the token string and immediately paste it into your secure environment (e.g., your `.env` file or a secure password manager).
5. Once you are absolutely sure you have safely stored the token, click the **I have copied my token** button to close the window.

After generation, your dashboard will display the *Active API token*. For your security, the token will be permanently masked (e.g., `019e079d-9991-****-****-************`), and you will be able to see its *Created date* and *Expires date*.
