Skip to main content
Use the legacy workspace API key only for existing WhatsApp template-send integrations.

Base URL

  • Global region: https://app.sagepilot.ai
  • Europe region: https://eu.sagepilot.ai

Setup flow

1

Open API Details

In the Sagepilot dashboard, go to Settings > API Details.
2

Find the legacy workspace key

Locate the legacy workspace API key section. You must be a workspace admin to view or generate this credential.
3

Copy the workspace ID

Copy the workspace ID from Settings > API Details > Channels.
4

Send both headers

Add the legacy API key in Authorization and the workspace ID in X-SP-Workspace-Id.
5

Use only the legacy route

Use this flow only for the existing WhatsApp template-send route.

Required headers

Authorization: Bearer <legacy_workspace_api_key>
X-SP-Workspace-Id: <workspace_id>
Authorization
string
required
Bearer token using the legacy workspace API key.
X-SP-Workspace-Id
string
required
Workspace ID for the request. Find it in Settings > API Details > Channels. This header is always required for the legacy flow.
This flow is for the legacy WhatsApp template-send route only. Do not use it for analytics, exports, ticket list APIs, customer APIs, or new integrations.