Choose your API region
Use the API for your account’s region. Resource IDs belong to that region; changing the host does not move a project or its data.
| Account | API base URL |
|---|---|
| US | https://api.testcollab.io |
| EU | https://api-eu.testcollab.io |
| Self-hosted | The API base URL supplied by your TestCollab administrator |
Configure the SDK
Section titled “Configure the SDK”import { createConfiguration, TestCasesApi } from '@testcollab/sdk';
const config = createConfiguration(process.env.TESTCOLLAB_TOKEN!, { basePath: 'https://api-eu.testcollab.io',});
const api = new TestCasesApi(config);const testCase = await api.getTestCase({ id: 456, project: 123 });console.log(testCase.title);Create the configuration once and pass it to each API client in the workflow. Keep project lookups, case updates and report requests on the same base URL.
Configure the CLI
Section titled “Configure the CLI”tc getTestPlan --project 123 --test-plan-id 456 \ --api-url https://api-eu.testcollab.ioConfigure MCP
Section titled “Configure MCP”Set TC_API_URL to your account’s API base URL in the MCP server environment.
When a known record cannot be found
Section titled “When a known record cannot be found”A region mismatch can look like an authentication, permission or missing-record error. Confirm the API host before changing IDs or retrying a write.