Phone system & SMS
Add to do-not-call list
Puts the number on the do-not-call list: it's never added to call lists again and is written to the blocklist address of the connected call centres. Without phone the contact's, then the company's phone is used. Returns message, e164, synced (connection → written; failures are retried by the scheduler). Removing a number is web-only, for admins.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope:
crm.writeBody application/json
phonestringoptionalNumber.
contact_idintegeroptionalContact.
customer_idintegeroptionalCompany.
notestringoptionalNote.
Errors
| HTTP | error | Meaning |
|---|---|---|
400 | phone | phone |
404 | not_found | Record not found. |
403 | plan | plan |
403 | module | The module is off in the licence or for the user. |
Request
curl -X POST https://ornek.solk.app/api/v1/tel/do-not-call \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/tel/do-not-call", {
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/tel/do-not-call",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response