Contents
Introduction
Managing many on-premises Organizations through Open API can be challenging for third-party systems such as government NMS platforms, MSP platforms, and system-integrator solutions. In traditional deployments, integrations may need to manage separate credentials for individual Organizations. As the number of Organizations and sites grows, this can increase setup and maintenance effort, make credential rotation harder, and complicate access control.
Cloud Portal provides account-level Open API access to simplify this process. Starting with Cloud Portal, users can create an account-level Credential in either API Key mode or Client mode. An integration can use that Credential to discover and access local Organizations with Cloud Access enabled, within the organizations authorized for the Credential. The two modes use different authentication details: API Key mode provides an API Key, while Client mode provides a Client ID and Client Secret.
This approach provides the following benefits:
- Simplified onboarding: Use an account-level Credential instead of configuring separate access credentials for each Organization.
- Centralized management: Manage the Credential and its authorized organization scope in Cloud Portal. Available permission settings vary by mode.
- Lower integration effort: Requests are authenticated and routed through Cloud Access, while the existing Open API structure and parameters remain largely unchanged.
- Improved security and operations: Centralized Credential lifecycle management, with audit logs, rate limiting, and optional email allowlists where supported.
This guide explains how to create and use an account-level Credential to discover accessible local Organizations and send Open API requests to a target Organization.
Requirements
- Hardware Controller (Compatible with Controller v6.4.0 and above)
- ER7212PC (Compatible with Controller v6.4.0 and above)
- Enable Cloud Access
- Organizations must be online.
Note: Software Controller and CBC (standard) do not support account-level Open API access.
Configuration
Follow the steps below to create and manage an account-level Open API Credential. Up to 20 Credentials can be created.
Step 1. Log in to Cloud Portal.
Visit https://omada.tplinkcloud.com and log in with your TP-Link ID.
Step 2. Open On-Premise Systems
From the navigation dropdown, select On-Premise Systems.

Step 3. Open the Open API configuration page.
Click Open API from the left navigation to open the Open API Access configuration page.

Review Config Requirements to check the organization requirements currently supported for account-level Open API access.

Step 4. Create a Credential.
Click Add New Credential to open the Credential configuration page.

Step 5. Configure the Credential
Select one of the following Credential modes:
- API Key: Use the key directly to call APIs without obtaining an Access Token. Choose this mode for simple scripts, scheduled jobs, or integrations that support API Key authentication.
- Client: Use a Client ID and Client Secret to obtain an Access Token. Choose this mode for server-to-server integrations that use OAuth 2.0 Client Credentials.
Enter a Name and optional Description, select the organizations to include in the Credential scope, and configure the Validity Period.
For API Key mode, also select a Permission:
- Full Access: Allows the API Key to read information and perform supported write operations, such as changing configurations, within the authorized scope.
- View: Allows the API Key to read information only. It cannot be used to modify configurations or perform other write operations.
Choose View for monitoring or reporting integrations that do not need to make changes. Choose Full Access only when your integration needs to perform write operations.
Only organizations where the account role is an Owner or Super Admin can be added to the API Key scope.
API Key mode UI

Client mode UI

Step 6. Save the generated Credential information
After the credential is created successfully, the generated credential information depends on the selected mode:
- Client Mode: A Client ID and Client Secret are generated.
- API Key mode: An API Key in the format AK-xxxxxxxx... is generated.
The Client Secret or API Key is displayed only once when the credential is created and cannot be retrieved later. Save it securely immediately after creation. The server stores only the encrypted value and cannot recover the plaintext credential.


Step 7. View and manage Credentials
After a Credential is created, it appears in the Credential list. The list and Credential details provide information such as:
|
Field |
Description |
|
Status |
Whether the credential is enabled. A disabled credential cannot be used to call the Open API. |
|
Client ID |
Identifier of the credential in Client mode, used with the Client Secret to obtain an access token. |
|
API Key |
Static credential in API Key mode. Shown masked, for example AK-a1-d8cf8*************************** . The full value is returned only once at creation time. |
|
Organizations |
Organizations the credential can access. |
|
Created On |
Time when the credential was created. |
|
Last Used |
Time when the credential was last used to call the Open API. |
|
API Calls |
Number of Open API calls made with the credential. |
|
Validity Period |
Expiration time of the credential. |
Note:
- Account-level Credentials cannot be edited; users can view details and delete them.
- The maximum number of credentials that can be created is 20.

Click the View icon to check the Credential details.

After a Credential expires, it is grayed out and its Validity Period is displayed as Expired.

Step 8. Refer to the account-level Open API documentation.
For detailed authentication procedures, API requests, and other operations, open the Open API documentation from the Open API Access page.

Open the Open API documentation, then select Open API Access Guide > Account Level to view the account-level authentication and request instructions.

Conclusion
An account-level Open API credential is now created in the Cloud Portal. Select API Key or Client mode based on the integration’s authentication flow, and ensure that the credential’s organization scope includes the local organizations to be managed.
QA
Q1: What is the difference between API Key mode and Client mode? Which mode should I choose?
A: Both modes provide account-level access, but they use different authentication methods:
|
Mode |
Credential |
How it works |
Best for |
|
API Key |
API Key |
Use the API key directly to call APIs. |
Scripts, scheduled jobs, and integrations that support API Key authentication. |
|
Client |
Client ID and Client Secret |
Use the Client ID and Client Secret to obtain an Access Token, then use the token to call APIs. |
Server-to-server integrations that use OAuth 2.0 Client Credentials. |
Choose API Key for simpler integration, or Client if your system already supports OAuth 2.0 and Access Token management.
Q2: Can I view the API Key or Client Secret again after creating a Credential?
A2: The complete API Key or Client Secret is shown only once. Save it securely when it is created.
Q3: Why can’t my integration access a local Organization?
A3: Verify that Cloud Access is enabled and shows an Online status for the organization, that the organization is included in the credential’s scope, and that the integration uses the authentication flow required for the selected mode.
Q4: How many Credentials can I create?
A4: The current limit is 20 Credentials.
Q5: Why am I receiving a `429 Too Many Requests` response?
A5: Your OpenAPI request exceeded at least one enabled rate limit for the current fixed window. Limits are applied independently by application, user, device, and region. A `429` indicates rate limiting, not an authentication or permission failure.
Q6: How should I handle a `429 Too Many Requests` response?
A6: Read the `Retry-After` response header, wait for the specified number of seconds, and retry with exponential backoff and random jitter. Avoid immediate or simultaneous retries from multiple workers. For non-idempotent requests, retry only when the operation is safe to repeat.
Q7: What are the default OpenAPI rate limits?
A7: The rate limit applies to organization-level API calls made through Cloud Access using a Credential. For the rate limit on the account-level Get Organization List API, see Account Level Access Guide > 3.4 Rate Limiting.
The default limits are 1,200 requests per minute per API Key or Client ID, 1,800 requests per minute per user, 100 requests per minute per device, and 3,000 requests per minute for the entire region. The actual limits may be different if the deployment overrides the default configuration.
Q8: Is the OpenAPI rate limit based on my IP address?
A8: No. The OpenAPI rate limiter does not use the source IP address. Requests are limited by the application, user, device, and region instead, which prevents different customers behind the same NAT gateway from affecting one another through a shared IP limit.
Q9: How long should I wait before retrying a rate-limited request?
A9: Use the `Retry-After` response header as the minimum wait time before retrying. The default value is usually 60 seconds. The limiter uses a fixed window that starts with the first request in the window, so `Retry-After` is an upper-bound guidance value rather than an exact countdown to the next available request.
Q10: Why do I still receive `429` after switching to another Credential?
A10: Rate limiting is applied at more than the application level. A different Credential may use a different application quota, but requests can still be limited by the shared user quota, the target device quota, or the region-wide quota. Switching Credentials is not a way to bypass rate limits.
Q11: What information should I provide when reporting a rate-limit issue?
A11: Provide the request time, endpoint, HTTP status, `Retry-After` value, and the `Omada-Trace-Id` response header or `traceId` from the response body, if present. Do not include the API Key, Client Secret, Access Token, or other credentials in the report.