Skip to main content
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:
import { Seam } from 'seam'

const seam = new Seam() // Seam automatically uses your exported SEAM_API_KEY.

const checkAuth = async () => {
  const workspace = await seam.workspaces.get()
  console.log(workspace)
}

checkAuth()
Output:
{
  workspace_id: '00000000-0000-0000-0000-000000000000',
  name: 'Sandbox',
  company_name: 'Acme',
  connect_partner_name: 'Acme',
  is_sandbox": true
}