Authentication

Learn how to authenticate to the Seam API.

Export your API key as an environment variable. Seam client libraries automatically pick up this exported key. For example:

$ export SEAM_API_KEY=seam_test2bMS_94SrGUXuNR2JmJkjtvBQDg5c

Next, run the following code to confirm that you are correctly authenticated:

Code:

from seam import Seam

seam = Seam()  # Seam automatically uses your exported SEAM_API_KEY.

workspace = seam.workspaces.get()
pprint(workspace)

Output:

Workspace(
  workspace_id='00000000-0000-0000-0000-000000000000',
  name='Sandbox',
  company_name='Acme',
  connect_partner_name='Acme',
  is_sandbox=True
)

Last updated

Logo

© Seam Labs, Inc. All rights reserved.