Skip to content

Get an app ID and a workspace ID

When you make API calls to applications in Alibaba Cloud Model Studio, such as an Agent or a Workflow, you must provide credentials to specify 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.

For more information about workspaces, see Workspace permission management. Note

Currently, you can only get the APP ID and workspace ID manually from the console. They cannot be retrieved through API calls or CLI.

Get an app ID

Every API call to an application requires its unique APP ID.

  1. Go to the Applications page.

  2. In the application list, find the target application and copy its APP ID.

Get a workspace ID

A workspace ID identifies a workspace. Include the workspace ID in your API request only when calling an application in a sub-workspace or a model in the Germany (Frankfurt) region.

Get your current workspace ID

Find the ID of the workspace you are currently using.

  1. Go to the homepage of the Alibaba Cloud Model Studio console and select the target region.

  2. Click the icon in the upper-right corner of the page.

  3. In the dialog box that appears, view and copy the Workspace ID.

By default, a RAM user can only view the IDs of workspaces they have joined.

Find all workspace IDs

A super administrator can find the IDs for all workspaces under an Alibaba Cloud account.

  1. Sign in to the Alibaba Cloud Model Studio console using an Alibaba Cloud account or an authorized RAM user.

  2. Click the icon in the upper-right corner to go to the Workspace Management page.

  3. In the Workspace ID column, view and copy the ID of the workspace you want.

Important

This operation requires an Alibaba Cloud account or a RAM user with the AliyunBailianFullAccess or AliyunBailianControlFullAccess permission. Accessing the page without the required permissions results in an "insufficient permissions" error. To learn how to grant permissions, see Management permissions.

Next steps

With these credentials, use the DashScope API reference documentation 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.

Mirror of Alibaba Cloud Model Studio docs for reference and RAG. Not affiliated with Alibaba Cloud.