All Products
Search
Document Center

:Obtaining an AccessKey

Last Updated:Aug 26, 2026

You can create an AccessKey pair for an Alibaba Cloud account or a Resource Access Management (RAM) user. An AccessKey pair is required to verify your identity when you call Alibaba Cloud APIs.

Background information

An AccessKey pair consists of an AccessKey ID and an AccessKey secret.

  • AccessKey ID: Used to identify the user.

  • AccessKey secret: A key used to authenticate the user. You must keep your AccessKey secret confidential.

Important

A leaked AccessKey pair for your Alibaba Cloud account compromises the security of all your resources. To reduce this risk, we recommend that you use an AccessKey pair that belongs to a RAM user to make API calls.

Procedure

  1. Use your Alibaba Cloud account to log on to the Alibaba Cloud console.

  2. Hover over your avatar in the upper-right corner of the page. In the drop-down list that appears, click AccessKey.

  3. In the dialog box that appears, choose whether to use RAM user AccessKey or cloud account AccessKey.

    • Click Use Cloud Account AccessKey

      1. On the AccessKey page, click Create AccessKey.

      2. In the View Secret dialog box, view the AccessKey ID and AccessKey secret. To save the AccessKey pair to a file, click Download CSV File. To copy it, click Copy.

    • Use the AccessKey pair of a RAM user

      1. Click Start Using Sub-user AccessKey.

      2. The Users page of the RAM console opens automatically. Find the RAM user for which you want to create an AccessKey pair.

        Note

        If no RAM user exists, create one first. For more information, see Create a RAM user.

      3. Click the logon name of the user.

      4. On the Authentication tab, click Create AccessKey in the User AccessKey section.

      5. In the View Secret dialog box, view the AccessKey ID and AccessKey secret. To save the AccessKey pair to a file, click Download CSV File. To copy it, click Copy.

        Note
        • The AccessKey secret of a RAM user is displayed only when the AccessKey pair is created and cannot be queried later. Keep it secure.

        • If an AccessKey pair is leaked or lost, create a new one. Each RAM user can have a maximum of two AccessKey pairs.