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

# Getting API Credentials

> Generate and manage your Tender API credentials for authentication

## Overview

Tender secures API requests with two authentication methods — Signed (HMAC) for most endpoints, and Basic (Access ID) for Payment and System endpoints (see [Authentication](https://docs.tender.cash/api-reference/authentication.md)). You'll need two credentials:

1. **Access ID** - Your public API identifier, sent with every request
2. **Access Secret** - Your private key for signing requests to Signed (HMAC) endpoints

> [!WARNING]
>
> Never share your Access Secret or commit it to version control. Treat it like a password.

***

## Generating API Credentials

API credentials belong to an **outlet** (agent). Payments you initiate with a key are attributed to that key's outlet, and requests made with a key that isn't linked to an outlet are rejected.

**1. Log in to Dashboard**

Navigate to [sandbox-merchant.tender.cash](https://sandbox-merchant.tender.cash) (sandbox) or [merchant.tender.cash](https://merchant.tender.cash) (live) and log in to your account.

**2. Navigate to API Settings**

* Click on **Settings** in the sidebar
* Select **API Credentials**

**3. Generate credentials for an outlet**

* Choose the outlet the credentials are for
* Click **Generate New Credentials**

**4. Save Your Credentials**

> [!WARNING]
>
> **Important**: Copy both values and store them securely straight away.

* **Access ID**: Copy this value
* **Access Secret**: Copy this value
* Store them in a secure location (password manager, environment variables, secrets manager)

> [!NOTE]
>
> Each outlet has **one** active set of credentials. Generating new credentials for an outlet
> immediately revokes that outlet's previous credentials, so update every system that uses them
> straight away.

***

## Test vs Production Credentials

> [tab] Test Environment
>
> **Test Credentials** are for:
>
> * Development and integration
> * Testing payment flows
> * Webhook testing
> * Uses testnet cryptocurrencies
>
> ```text theme={null}
> Base URL: https://sandbox-api.tender.cash
> ```

> [tab] Production Environment
>
> **Production Credentials** are for:
>
> * Live transactions
> * Real cryptocurrency payments
> * Production webhooks
> * Uses mainnet cryptocurrencies
>
> ```text theme={null}
> Base URL: https://secureapi.tender.cash
> ```
>
> > [!WARNING]
> >
> > Only use production credentials after thorough testing in the test environment.

***

## Managing Credentials

### Viewing Active Credentials

In the dashboard's **API Credentials** settings you can see the active credentials for each outlet.

### Rotating or Revoking Credentials

If credentials are compromised, or you want to rotate them:

**1. Generate new credentials for the outlet**

This revokes the outlet's old credentials immediately. Requests that still use them fail with `401 INVALID_REQUEST_SIGNATURE`.

**2. Update your systems**

Deploy the new Access ID and Access Secret to every system that calls the API for that outlet.

**3. Monitor for issues**

Check that all systems are working with the new credentials.

To revoke credentials without replacing them, delete them from the dashboard.

***

## Next Steps

> [card] [Authentication Guide](https://docs.tender.cash/api-reference/authentication.md)
>
> Learn how to sign API requests with your credentials

> [card] [Quick Start](https://docs.tender.cash/quickstart.md)
>
> Make your first API call

***

## Troubleshooting

> [accordion] 401 Unauthorized Error
>
> **Possible causes:**
>
> * A missing signed header (`NOT_ALLOWED`)
> * An incorrect Access ID or Secret, or credentials that were replaced by newer ones (`INVALID_REQUEST_SIGNATURE`)
> * An invalid HMAC signature, or an `x-timestamp` more than 5 minutes from server time (`INVALID_REQUEST_SIGNATURE`)
> * Using sandbox credentials on the production URL (or vice versa)
>
> **Solution:** Verify your credentials and signature generation. See [Authentication](https://docs.tender.cash/api-reference/authentication.md#authentication-errors).

> [accordion] 403 Forbidden Error
>
> Your merchant account is suspended. Contact **[support@tender.cash](mailto:support@tender.cash)**.

> [accordion] Credentials not working
>
> **Check:**
>
> * Are you using the correct environment (sandbox vs production)?
> * Have new credentials been generated for this outlet since you copied these?
> * Is the timestamp an ISO 8601 string within 5 minutes of the current time?
> * Is the signature generated over the exact header values?


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.