x-workspace-id header and indicates which workspace the request is coming from. In practice, it defines where the execution credits will be consumed from.
The Workspace Id does not work as a filter, you can find any public agent in the API that is available on Tess and that is in other Workspaces.
What is it?
Every Tess user is linked to one or more workspaces: spaces where agents, automations, members, and credits are organized. The Workspace ID is the numeric code that uniquely identifies each of these environments. Every time you make a call to the Tess API — whether directly through code or through an integration platform — send the Workspace ID in thex-workspace-id header.
Tess uses this value to identify:
- The workspace of origin of the request;
- The workspace associated with the API Key used;
- The workspace from which the execution credits will be deducted.
Important:The
x-workspace-id does not limit which agents can be executed. You can run public agents from other workspaces, as long as you have access to them. In that case, the call still originates from your workspace and the credits are consumed from it.Where to find it
To locate the Workspace ID of the current environment:- In Tess, open Settings.
- Click on Workspace.
- Locate the Workspace ID field.
- Copy only the number shown.

There is an alternative option, identifying it via URL, but attention is needed to avoid any errors:When using the URL, confirm that you are browsing in the correct workspace before copying the value.
- Look at the browser’s address bar and locate the
w=parameter. The number right after this parameter is the Workspace ID.
Example:
Applying it in the API
Include the Workspace ID in thex-workspace-id header in every request sent to the Tess API.
In addition to it, also include your API Key in the Authorization header.
This applies to calls made from:
- Your own code, such as HTML, JavaScript, Python, or other languages;
- API testing tools, such as Postman or Insomnia;
- Automation platforms, such as N8n, Zapier, Make, and Power Automate;
- Internal systems, CRMs, backends, and custom integrations.
agent_id and the prompt that will be processed by the agent.
Best practices
- Include the
x-workspace-idin every request to the Tess API. - Prioritize checking Settings > Workspace to copy the correct ID.
- Copy only the Workspace ID number, without spaces or extra characters.
- Always use the Workspace ID associated with the API Key configured in the integration.
- In automations with multiple agents, keep the same
x-workspace-idwhen the calls originate from the same workspace. - Store the API Key in environment variables, credential vaults, or secure fields of the integration platform.
- Never share your API Key in prompts, messages, public repositories, or screenshots.