Choose your capability
Decide whether the integration will send messages, read conversations, publish social content, or ingest documents.
Create a narrowly scoped API key, make a safe first request, and understand the response and rate-limit basics.
Decide whether the integration will send messages, read conversations, publish social content, or ingest documents.
In Global Clinic Connect, open Settings, choose Developer, create a key with only the scopes needed, and store the one-time secret in your server-side secret manager.
Use the API base URL for the same environment where the key was created. Keys do not move between development, staging, and production.
Add Authorization: Bearer YOUR_API_KEY to every request. Do not send an X-Tenant-Id header; the key already belongs to one workspace.
Treat 2xx as acceptance of the state described by the response. Handle 4xx outcomes explicitly and retry only when the guidance says it is safe.
These are the supported public contracts for this integration step.
/api/public/v1/conversations?channel=whatsapp&limit=25conversations:readRead a recent page of conversations, optionally limited to one channel.
GET /api/public/v1/conversations?channel=whatsapp&limit=25
Authorization: Bearer YOUR_API_KEY
Accept: application/json{
"conversations": [
{
"conversation_id": "conv_example",
"channel": "whatsapp",
"status": "open",
"last_message_at": "2026-07-12T08:30:00.000Z",
"last_message_preview": "Your appointment is confirmed"
}
],
"next_cursor": null
}invalid channel filterUse web_chat, sms, whatsapp, or email as the channel.
INSUFFICIENT_SCOPECreate a key with conversations:read.
RATE_LIMITEDPause until the current minute ends.
Requests go directly from this browser tab to the API environment you choose. Keys and responses are held in memory only and are cleared when the page closes.
/api/public/v1/conversations?channel=whatsapp&limit=25Enter a test key, review the sample request, and send it. The response will appear here.
curl -X GET 'https://api.connect.globalclinic.app/api/public/v1/conversations?channel=whatsapp&limit=25' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json'conversations:readRead a recent page of conversations, optionally limited to one channel.
Send a transactional text or approved WhatsApp template while respecting consent, reply windows, and delivery state.
→Step 03Synchronize conversationsRead conversation summaries and messages for a connected inbox or workflow system.
→Step 04Publish social contentCreate drafts, schedule posts, publish approved content, and track each network’s outcome.
→Step 05Ingest documentsCreate a document and upload its bytes through a short-lived, controlled upload form.
→