Authentication
Update the profile
Only the fields you send change; all are validated first (nothing is written if one is invalid). Palette and theme are the same as Settings › Appearance on the web. PATCH is accepted too.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope:
crm.writeBody application/json
full_namestringoptionalFull name (2–120 characters; < > are removed).
phonestringoptionalPhone.
palettestringoptionalColour palette (
palettes[].key; empty = company colour).Values
graphitepetrolnavyvioletplumwalnutthemestringoptionalTheme.
Values
lightdarksystemErrors
| HTTP | error | Meaning |
|---|---|---|
400 | invalid | Missing or invalid field (`message` explains). |
Request
curl -X POST https://ornek.solk.app/api/v1/profile \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/profile", {
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/profile",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response