Companies
Company location
v66: sets or clears (clear: true) the company's location. Admins or the company's owner. Distances in visits are measured to this point. The company card (GET /customers/{id}) carries geo (lat, lng, src — visit from the first visit with a location · manual, at), geo_can_set and the open check-in at this company checkin. Response: geo.
Authorization
AuthorizationheaderrequiredBearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: CustomersScope:
crm.writePath parameters
idintegerrequiredCompany id.
Body application/json
lat / lngnumberoptionalLatitude, longitude (or
geo_lat, geo_lng).clearbooleanoptionalClear the location.
Errors
| HTTP | error | Meaning |
|---|---|---|
400 | invalid | Missing or invalid field (`message` explains). |
403 | forbidden | You may not see / edit this record. |
404 | not_found | Record not found. |
Request
curl -X POST https://ornek.solk.app/api/v1/customers/{id}/geo \
-H "Authorization: Bearer $SOLK_API_KEY"const res = await fetch("https://ornek.solk.app/api/v1/customers/{id}/geo", {
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/customers/{id}/geo",
headers={"Authorization": f"Bearer {os.environ['SOLK_API_KEY']}"},
)
print(r.json())Response