You can interact with the API through HTTP requests from any language or via our official Python bindings (alpha)Documentation Index
Fetch the complete documentation index at: https://docs.gp.scale.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
Make sure to follow the previous steps described in Authentication to obtain an API key and account ID.Installing the SGP SDK Client
To install the ScaleGP Python client, run the following command:Configuring the Client
The SGP client can be configured with your API key and account ID. Examples on how to use the SGP client can be found in Recipes. The simplest approach is to set environment variables:SGP_API_KEY and SGP_ACCOUNT_ID environment variables. You can also pass them explicitly:
SGPClient constructor accepts the following parameters:
| Parameter | Description | Default |
|---|---|---|
account_id | Your SGP account ID. Found in the Accounts tab of the admin dashboard. | SGP_ACCOUNT_ID environment variable |
api_key | Your SGP API key. Found in the API Keys tab of the admin dashboard. | SGP_API_KEY environment variable |
environment | The SGP environment to connect to. Possible values: production-multitenant, staging, development, local. | production-multitenant |
base_url | Override the base URL with a custom endpoint. Takes precedence over environment. | None |
Connecting to Non-Production Environments
Use theenvironment parameter to connect to development or staging environments:
SGP_CLIENT_BASE_URL environment variable or the base_url parameter (which takes precedence over environment).

