Skip to main content
An organisation is divided into workspaces: offices, regions or teams, each with its own packages, templates, contacts and members. Every organisation has a default workspace. An API key belongs to the organisation and acts in exactly one workspace per request.

Listing workspaces

GET /api/v1/workspaces returns the workspaces the key’s user can act in, and which one the call itself acted in.

Choosing a workspace

Send the X-Workspace-Id header with a workspace id from the list above. Packages and templates you list, create or act on are scoped to that workspace.
Rules:
  • Omit the header to act in the organisation’s default workspace.
  • An id the key cannot act in (unknown, or a workspace the key’s user is not a member of) is treated as if the header were omitted: the call lands in the default workspace. It is never widened to the whole organisation.
  • GET /api/v1/workspaces reports the workspace actually used in active, so you can confirm a header was honoured.
Webhook endpoints belong to the organisation, not a workspace. Events from every workspace are delivered to every subscribed endpoint.