When making API calls to Applications in Alibaba Cloud Model Studio, such as Agent or Workflow, you must provide Credentials for the target Application and its Workspace:
If the Application is in the Default Workspace, you only need to provide the APP ID.
If the Application is in a Sub-workspace, you must provide both the APP ID and the Workspace ID.
This topic describes how to obtain these Credentials in the Console. For more information about Workspaces, see Workspace Permission Management.
You can only obtain the APP ID and Workspace ID from the Console. They cannot be retrieved via API calls or the Command Line Interface (CLI).
Get an APP ID
Every API call to an Application requires its unique APP ID.
Go to the Application Management page.
In the application list, find the target Application and copy its
APP ID.

Get a Workspace ID
A Workspace ID is the unique identifier for a Workspace. The Workspace ID is required in your API request only if the target Application is in a Sub-workspace or when calling a model in the Germany (Frankfurt) Region.
Get the current workspace ID
Follow these steps to find the ID of your current Workspace.
Go to the Alibaba Cloud Model Studio Console homepage and select the target Region.
Click the
icon in the upper-right corner of the page.In the dialog box that appears, view and copy the Workspace ID.
By default, RAM users can only view the IDs of Workspaces they have joined.
Find all Workspace IDs
Follow these steps to find or manage all Workspaces under your Alibaba Cloud account. Only a super administrator can perform this operation.
Log in to the Alibaba Cloud Model Studio Console with an Alibaba Cloud account or an authorized RAM user.
Click the
icon in the upper-right corner to go to the Workspace Management page.In the Workspace ID column, view and copy the ID of the desired Workspace.
This operation requires an Alibaba Cloud account or a RAM user with the AliyunBailianFullAccess or AliyunBailianControlFullAccess Permission. If you lack the required Permissions, you will receive an "insufficient Permissions" error. For information about how to grant Permissions, see Management Permissions.
Next steps
After obtaining the Credentials, refer to the DashScope API reference to build and send API requests.
FAQ
Q: Why do I receive an error when accessing the Workspace Management page as a RAM user?
A: A RAM user must be a super administrator to access this page.