Authentication
Log out
Revokes the token used for the request. Meant for mobile session tokens (xk_); API keys are revoked on the Developers page.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope:
crm.readRequest
curl -X POST https://ornek.solk.app/api/v1/logout \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/logout", {
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/logout",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response
{
"ok": true
}Example responses were captured from a v22 installation running sample data; lists are shortened to two items.