Phone system & SMS
SMS compose data
To send an SMS from a record: people (contacts and the company phone — kind, id, label, to, cid, optout), templates (id, name, kind, body), kinds (k info · tacir · bireysel, l, d, off — commercial kinds are off when the provider has no İYS filter), footer (commercial message line), provider, vars (placeholders).
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope:
crm.readQuery parameters
customer_idintegeroptionalCompany.
contact_idintegeroptionalContact.
opportunity_idintegeroptionalOpportunity (its company).
Errors
| HTTP | error | Meaning |
|---|---|---|
403 | plan | plan |
403 | module | The module is off in the licence or for the user. |
Request
curl https://ornek.solk.app/api/v1/sms/compose \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/sms/compose", {
headers: {
Authorization: `Bearer ${process.env.SOLK_API_KEY}`,
},
});
const data = await res.json();import os, requests
r = requests.get(
"https://ornek.solk.app/api/v1/sms/compose",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response