Skip to content

Authentication

Generating API Keys

To access the Cloud Platform API, you will need to obtain an API key.

  1. Navigate to the Cloud Platform Console.
  2. Log in to the console.
  3. Navigate to "API Keys" section.
  4. In the upper right, click "Add API Keys".
  5. Name and click "Submit". Generating API Keys
  6. Your key will be generated. Copy and store the API key in a secure location.

Note

Be careful not exposing and not sharing your API key. It's your responsibility to keep it secure and private.

Pass this token as Bearer in the Authorization header.

Preparing Authentication

We suggest setting up your authentication reusably in the following way.

export SCP_TOKEN="YOUR-API-TOKEN"
import json
import requests

session = requests.session()
session.headers = {
    "Authorization": "Bearer YOUR-API-TOKEN"
}