Master API Key for Partner API
What is it? What's the user case?
As a partner, managing multiple workspaces can take time and effort. Previously, you needed separate API keys for each workspace. However, with this new feature, you'll have a single master API key. You can use this key, any workspace ID, and your custom domain to manage that workspace efficiently.
Ā
Imagine creating a new workspace through the API. Upon creation, you receive a workspace ID in the response. Subsequently, using the master API key along with the workspace ID, you can dynamically and automatically make changes to that workspace.
Ā
Obtaining the Master API Key:Ā
First, acquire the master API key from your main partner workspace. Ensure you're logged into your main partner workspace, navigate to API keys, and any API key within this workspace serves as your master API key.
Ā
Locating Your Partner API Endpoints:Ā
Switch to your workspace, access API keys, and click on API documentation. Make sure you're logged in from your custom domain to view your specific API endpoints.
Ā
Adding extra parameters:Ā
Two additional parameters need inclusion in the request header:Ā
Manage team scope: you will only need x-client-workspace-id
Manage flow scope: you will need x-client-flow-ns & x-client-workspace-id
If the scope is āmanage team,' only the workspace ID parameter is necessary.Ā
Ā
These parameters depend on the scope of your API endpoints. If the scope is'manage flow,' both parameters are required.Ā
Ā
Setup External Request:Ā
Create External Request and set it up like follow in the image
In Header set parameter x-client-flow-ns & x-client-workspace-id
Ā
Ā
Enter your API Key in the Authorization
Ā
Go to all bots and copy your flow ns.
Ā
Ā
Response:If the return code is 200, it indicates success.
Video Tutorials