Skip to main content
The next step is to get your API key and account ID, which are needed to make calls to the Scale GP API and to create, modify resources in the right place. Open your organization’s SGP deployment using the host provided by your administrator. If you do not have an account, ask your administrator or Scale team to provision one.
The pages available to you depend on your deployment and permissions. If you can’t see the pages described below, ask your administrator for access.

Deployments with Identity & Access

Open your profile menu and select Identity & Access. This opens the IAM dashboard configured for your deployment. Use its API key and account management pages to obtain your key and the ID of the account you want to use.

Deployments with Access Management

If your profile menu shows Access Management, open it and select the account group containing your account. In the group’s Accounts table, copy the Account ID for the account you want to use. The Account Group ID shown in the group listing is a different identifier. Use the profile menu’s API Key entry to obtain your API key.

Legacy admin dashboard

If your profile menu has API Key and Manage Accounts entries instead, use the legacy admin pages below. On your deployment’s SGP host, open /admin/api-key to get your API key. The screenshots in this section show this interface. Deployments with Identity & Access redirect these legacy pages, and deployments with Access Management redirect the legacy Accounts page; use the matching section above instead.
If the API Key tab says API key management has moved to the IAM dashboard, Rotate API Key is disabled. Manage your API keys from Identity & Access instead.
Switch to Accounts and find the account ID.
API Key menu
Next, open /admin/accounts on the same SGP host and find the account ID for the account that you want to work with. You can also create a new account. Make sure to copy this ID to use it when testing your setup.
You can also create a new account.
If you have an existing account but want to add Users to it, you can click into the account and add users.
Click into the account to add users.
You can also change the role of a user by clicking on the user and changing the role.
Change the role of a user.
You can also remove a user by clicking on the remove button in the actions column.
Remove a user.

Storing Your Credentials

Store your API key in an environment variable so it never ends up in your code or a repository. The account ID isn’t secret, but setting it as an environment variable too lets the SDK pick up both automatically.
The SDK will automatically use the SGP_API_KEY and SGP_ACCOUNT_ID environment variables if they are set. Otherwise, you can pass them to the SGPClient constructor.
Python
The SGPClient constructor accepts the following parameters:
To make the environment variables persist across sessions, add the export commands to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc, or ~/.bash_profile).