WhatsApp Business
Open a conversation
v92 (beta): finds or opens the number's conversation and links it to the company; sends nothing. Response: chat.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope:
crm.writeBody application/json
phonestringoptionalPhone (defaults to the contact's phone).
contact_idintegeroptionalContact id.
company_idintegeroptionalCompany id.
Errors
| HTTP | error | Meaning |
|---|---|---|
400 | invalid | Missing or invalid field (`message` explains). |
403 | module | The module is off in the licence or for the user. |
404 | not_found | Record not found. |
Request
curl -X POST https://ornek.solk.app/api/v1/whatsapp/open \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/whatsapp/open", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.post(
"https://ornek.solk.app/api/v1/whatsapp/open",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response