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

# Configure API access in the admin panel

> Enable the public API in the exchanger admin panel, grant client access, set key scopes and limits, and verify requests in the public API logs.

Enable the API on the exchanger and allow it for the client's account. The client can then create a key in their account. Set its scopes and verify the first request.

## Open API management

1. In the admin sidebar, select **More** and open **API management**. You can pin this shortcut to the mini sidebar. The path inside the admin panel is `/tools/api`.
2. If the item is hidden, check the administrator role's `admin_api` permission. Opening a client record requires `admin_users`. Opening **API keys** in the record also requires `admin_api` and `admin_users_security_manage`.

If the client record is read-only, check the exchanger's operating mode and whether your administrative session can write changes.

The screenshots show the Russian interface in Storybook with sample data. The limits on your exchanger can differ.

## Enable access at three levels

1. **Exchanger.** Open **API management → API settings → Access**. Under **Client access**, turn on **Public API** and select **Save settings**. This switch is off by default.

   **Key creation and rotation** contains the maximum keys per client and the wait between key creations. **Block admin accounts from API** denies API access to users who can sign in to the admin panel.

   ![The Access tab showing the enabled Public API switch and the Save settings button](https://mintcdn.com/iexexchanger-api/-K5P3ShradX9ImPV/images/admin/enable-public-api.png?fit=max\&auto=format\&n=-K5P3ShradX9ImPV\&q=85\&s=1fbcf58a239eaa2cb843b3e4ac1f24c8)

   Public API settings, Access tab

   [Open the public API settings image](https://exchanger-api.iexexchanger.com/images/admin/enable-public-api.png)

2. **Client.** Open **Users → User list** and select the client's name beside the pencil icon. On **Overview**, turn on the switch in **API access**. The change is saved immediately and applies to all active keys on that account.

   New accounts start with API access off. Existing accounts use their saved permissions. The global switch opens the exchanger API, and you grant access to each client individually. If the client already has a key, the same permission is under **Details → Client-wide API access** in the key editor.

   ![The API access switch in its enabled state](https://mintcdn.com/iexexchanger-api/-K5P3ShradX9ImPV/images/admin/enable-client-api.png?fit=max\&auto=format\&n=-K5P3ShradX9ImPV\&q=85\&s=5411171fd3fac2a336d96a08f7ef8995)

   The user's record, Overview tab

   [Open the user record image](https://exchanger-api.iexexchanger.com/images/admin/enable-client-api.png)

3. **Key.** After the client creates the key, open its row. On **Details**, check **Allow this key to make requests**. If you change it, select **Save**. The individual key's expiration, scopes, and limits still apply.

## Ask the client to create a key

1. Ask the client to sign in to their account and select **Settings → API → Create key**. The client sees the token and HMAC secret once. Share the [illustrated key creation steps](https://exchanger-api.iexexchanger.com/en/start/access.md#create-a-key).
2. Ask for the key ID or name and the methods the integration will call. Find the key in **API management** and confirm the owner. If the client cannot create a key, check account access, the key count, and the wait between key creations under **API settings → Access**. The wait starts when the last key was issued and continues after that key is deleted.

## Grant scopes for the operations the client uses

1. Open the key and select **Permissions**. Search by label or `public-api:…` ID. Scopes are grouped by task, including **View orders**, **Exchanges**, **Partner programme**, and **Notifications**.
2. Compare the selected scopes with the client's calls. Keep the required scopes and select **Save**. When an operation lists multiple scopes in `x-required-scopes`, any one is sufficient. See the [API reference](https://exchanger-api.iexexchanger.com/en/api.md).
3. Ask the client to make their [first request](https://exchanger-api.iexexchanger.com/en/start/quickstart.md). Public `GET /api/v3/ping` checks the address. Signed `GET /api/v3/private/ping` checks the token and signature. Then verify the specific operation the integration will call.

Test write operations on a separate test installation with its own key. To validate an order form, grant `public-api:sandbox:run` and use the [simulation](https://exchanger-api.iexexchanger.com/en/api-reference/sandbox/post-private-sandbox-exchange-orders-simulate.md) if that installation enables it.

| Client task | Scopes to grant |
| - | - |
| List orders in a CRM | `public-api:orders:read`. To fetch only an individual order by a known ID, `public-api:orders:detail:read` is sufficient. |
| Find a route, quote, run preflight, and create an order | `public-api:exchange:routes:read`, `public-api:exchange:quotes:read`, and `public-api:exchange:orders:create`. The quote scope also permits preflight. For preflight only, use `public-api:exchange:preflight:read`. |
| Confirm or cancel an order | `public-api:exchange:orders:confirm` or `public-api:exchange:orders:cancel` as needed. The API also checks the order state. |
| Configure a webhook and send a test | `public-api:webhooks:write`. For reading settings and deliveries, use `public-api:webhooks:read`. For events and deliveries only, use `public-api:webhooks:deliveries:read`. |
| Reconcile partner payouts | `public-api:partner:payouts:read`. Submitting a payout request requires the separate `public-api:partner:payouts:create` scope. |

## Configure IP restrictions and key limits

1. Open **Security and limits → Allowed IP addresses**. Enter up to 25 public IPv4 or IPv6 addresses or CIDR ranges, one per line. An empty list permits requests from any IP that satisfies the other access requirements.
2. In **Request limits**, check **Per minute**, **Per day**, and **Per month**. An empty field inherits the global API setting. Enter a value to override it for the key.
3. Save the changes and ask the client to try from the integration server. See [production readiness](https://exchanger-api.iexexchanger.com/en/guides/reliability/production.md) for quota diagnostics and request retries.

## Diagnose a request using the log

1. Open **Tools → Event log → Public API logs**. **Request log** from **API management** opens the same view. For a single key, choose **Details → View this key’s request log** in its editor.
2. Find the attempt by key, time, HTTP status, or failure code. Compare the entry's Request ID and Correlation ID with the IDs in the client's response.
3. Use the table to find the cause and test the intended method after applying the correction.

| Response | What to check |
| - | - |
| `503 api_disabled` | The global **Public API** switch. |
| `403 api_user_disabled` | The client's **API access** switch. |
| `403 api_admin_account_denied` | The global policy for administrator accounts and the key's owner. |
| `401 token_inactive` or `authentication_required` | The key's state and expiration, token, and exchanger address. |
| `401 signature_required`, `invalid_signature`, or `signature_expired` | HMAC secret, headers, time, and canonical string. See [request signing](https://exchanger-api.iexexchanger.com/en/start/authentication.md). |
| `403 scope_denied` | `error.details.required_scopes` and the scopes on the key. |
| `403 ip_not_allowed` | The address in `error.details.ip` and the key's IP allow-list. |
| `429 rate_limit_exceeded` or `quota_exceeded` | The rate limit, daily and monthly quotas, and `Retry-After` if present. |

## Rotate, disable, or revoke a key

| Task | Action |
| - | - |
| Replace a key as planned | The client selects **Rotate key**, saves the new credential pair, and verifies it in the integration. Scopes and IP restrictions carry over. See **Details → Old key valid until** for the old key's deadline. |
| Pause a single key | Turn off **Allow this key to make requests**. A valid disabled key can be enabled again. |
| Remove access for a compromised key | Select **Revoke key** and confirm. Revocation is permanent. The request history is retained. The client will need to create a new key. |
| Stop all integrations for a client | Turn off **API access** on the client's record. Individual key settings are preserved. |

If a key is exposed, revoke it first. A scheduled rotation keeps the previous key active during the overlap so the integration can switch credentials without downtime.

> [accordion] AI prompt for API scopes
>
> ```text theme={null}
> Find the minimum scopes for one Exchanger API key to perform these operations: [OPERATIONS]. If the input describes a task, identify its methods in the reference. Verify each HTTP method, path, and x-required-scopes against the documentation.
>
> API reference: https://exchanger-api.iexexchanger.com/en/api
> Admin settings: https://exchanger-api.iexexchanger.com/en/guides/admin/api-keys
> Create a key: https://exchanger-api.iexexchanger.com/en/start/access
> Diagnostics: https://exchanger-api.iexexchanger.com/en/guides/reliability/errors
>
> Return a table with the operation, HTTP method and path, accepted scopes, and the selected scope with its reason. Also provide the minimum combined set. When a method accepts multiple scopes, any one is sufficient. Flag scopes that grant write access. Link to the reference for each method. If the mapping is ambiguous, identify the missing details.
>
> Separate manual actions for the administrator and the client: enable the exchanger API, grant account access, create a key in the account, and configure the active key's scopes. Explain how to distinguish a token or signature failure from an account, IP, or scope restriction. For scope_denied, compare error.details.required_scopes with the scope map.
>
> Validate the map against the documentation. Propose a test plan that starts with public ping and signed private ping on a test installation. Private ping has no separate scope and verifies credentials and signing only. To verify scopes, plan a safe read using the requested scope if one exists. For a write-only scope, verify it in the reference and describe a mock test. Return analysis and manual steps. Leave settings and keys unchanged, and send no requests to the admin panel or production API.
> ```


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