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. First navigate to the SGP Admin and grab your API key. If you do not have an account provisioned by your organization or Scale, please contact the relevant System administrator.
Switch to Accounts and find the account ID.
or via the UI by clicking on the “API Keys” tab in the admin dashboard.
API Key menu
Next, switch to Accounts 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

For security and convenience when using the SDK, it’s recommended to store your API key and account ID as environment variables. This prevents accidentally exposing your credentials in code repositories.
export SCALE_API_KEY="your-api-key-here"
export SCALE_ACCOUNT_ID="your-account-id-here"
You can then reference these environment variables in your code:
Python
import os
from scale_gp_beta import SGPClient

api_key = os.environ.get("SCALE_API_KEY")
account_id = os.environ.get("SCALE_ACCOUNT_ID")

client = SGPClient(api_key=api_key, account_id=account_id)
To make the environment variables persist across sessions, add the export commands to your shell configuration file (e.g., ~/.bashrc, ~/.zshrc, or ~/.bash_profile).
I