API reference
Organisation
10 requests. Each shows the permission a key needs, what to send and what comes back.
On this page
This organisation and its settings
GET/v1/organization
- Permission
Any key- Answers
200
Response object
iduuidrequirednamestringrequiredtimeZonestringrequiredcurrencystringrequiredmodulesarray of enumrequiredtermsobjectrequiredclientobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
projectobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
bookingobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
jobobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamMemberobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
durationDisplayenumrequiredOne of
"minutes","hours"weekStartsOnenumrequiredOne of
"saturday","sunday","monday"needsClockInDefaultbooleanrequiredrecordClockLocationbooleanrequiredopenPickupbooleanrequiredopenNotifyDelayMinutesintegerrequired-9007199254740991 to 9007199254740991
missedClockInAlertsbooleanrequiredmissedClockInGraceMinutesintegerrequired-9007199254740991 to 9007199254740991
phoneRemindersbooleanrequiredphotosVisibleToClientsbooleanrequiredDefault
truelogoUrlstringrequiredcan be nulladdressstringrequiredcan be nullphonestringrequiredcan be nullemailstringrequiredcan be nullwebsitestringrequiredcan be nullcompanyNumberstringrequiredcan be nullvatNumberstringrequiredcan be nullvatRegisteredbooleanrequiredvatRateBpintegerrequired-9007199254740991 to 9007199254740991
activeClientDaysintegerrequired-9007199254740991 to 9007199254740991
emailCopyToCompanybooleanrequiredprofileobjectrequiredcan be nullteamSizeenumrequiredOne of
"1","2-5","6-10","11-25","26-50","50+"workTypeenumrequiredOne of
"domestic-cleaning","commercial-cleaning","end-of-tenancy-cleaning","window-cleaning","carpet-and-upholstery-cleaning","plumbers","heating-engineers","electricians","air-conditioning","roofers","property-maintenance","facilities-management","gardening-and-landscaping","grounds-maintenance","pest-control","pool-and-hot-tub-care","fire-safety-servicing","security-patrols","other"workTypesarray of enumrequiredworkTypeOtherstringrequiredcan be nullcustomerTypeenumrequiredOne of
"commercial","domestic","both"clientCountenumrequiredOne of
"0-10","11-50","51-100","101-250","250+"answeredAtstringrequired
closureobjectrequiredcan be nullclosedAtstringrequireddeleteAfterstringrequired
curl "https://app.workscope.co.uk/v1/organization" \
-H "Authorization: Bearer wsk_your_key_here"Example response
{
"id": "3f2a9c1e-6b4d-4e8a-9f1c-2d7b5a0e8c41",
"name": "Harbourside Dental",
"timeZone": "text",
"currency": "text",
"modules": [
"projects"
],
"terms": {
"client": {
"one": "text",
"many": "text"
},
"project": {
"one": "text",
"many": "text"
},
"booking": {
"one": "text",
"many": "text"
},
"job": {
"one": "text",
"many": "text"
},
"teamMember": {
"one": "text",
"many": "text"
},
"team": {
"one": "text",
"many": "text"
}
},
"durationDisplay": "minutes",
"weekStartsOn": "saturday",
"needsClockInDefault": false,
"recordClockLocation": false,
"openPickup": false,
"openNotifyDelayMinutes": 120,
"missedClockInAlerts": false,
"missedClockInGraceMinutes": 120,
"phoneReminders": false,
"photosVisibleToClients": true,
"logoUrl": "https://example.co.uk",
"address": "1 Harbour Road, Bristol",
"phone": "0117 496 0123",
"email": "office@example.co.uk",
"website": "https://example.co.uk",
"companyNumber": "text",
"vatNumber": "text",
"vatRegistered": false,
"vatRateBp": 1207,
"activeClientDays": -9007199254740991,
"emailCopyToCompany": false,
"profile": {
"teamSize": "1",
"workType": "domestic-cleaning",
"workTypes": [
"domestic-cleaning"
],
"workTypeOther": "text",
"customerType": "commercial",
"clientCount": "0-10",
"answeredAt": "2026-11-06T09:30:00.000Z"
},
"closure": {
"closedAt": "2026-11-06T09:30:00.000Z",
"deleteAfter": "text"
}
}Change settings
PATCH/v1/organization
- Permission
organization.update- Answers
200
Request body JSON
namestringoptional1–200 characters
timeZonestringoptionalmodulesarray of enumoptionaltermsobjectoptionalclientobjectoptionalcan be nullonestringrequired1–40 characters
manystringrequired1–40 characters
projectobjectoptionalcan be nullonestringrequired1–40 characters
manystringrequired1–40 characters
bookingobjectoptionalcan be nullonestringrequired1–40 characters
manystringrequired1–40 characters
teamMemberobjectoptionalcan be nullonestringrequired1–40 characters
manystringrequired1–40 characters
teamobjectoptionalcan be nullonestringrequired1–40 characters
manystringrequired1–40 characters
durationDisplayenumoptionalOne of
"minutes","hours"weekStartsOnenumoptionalOne of
"saturday","sunday","monday"needsClockInDefaultbooleanoptionalrecordClockLocationbooleanoptionalopenPickupbooleanoptionalopenNotifyDelayMinutesintegeroptional0 to 60
missedClockInAlertsbooleanoptionalmissedClockInGraceMinutesintegeroptional0 to 240
phoneRemindersbooleanoptionalphotosVisibleToClientsbooleanoptionalinvoiceSignedOffOnlybooleanoptionalactiveClientDaysintegeroptional1 to 366
emailCopyToCompanybooleanoptionaladdressstringoptionalcan be nullUp to 500 characters
phonestringoptionalcan be nullUp to 50 characters
emailconstant or stringoptionalcan be nullwebsitestringoptionalcan be nullUp to 200 characters
companyNumberstringoptionalcan be nullvatNumberstringoptionalcan be nullvatRegisteredbooleanoptionalvatRateBpintegeroptional0 to 10000
profileobjectoptionalteamSizeenumrequiredOne of
"1","2-5","6-10","11-25","26-50","50+"workTypeenumrequiredOne of
"domestic-cleaning","commercial-cleaning","end-of-tenancy-cleaning","window-cleaning","carpet-and-upholstery-cleaning","plumbers","heating-engineers","electricians","air-conditioning","roofers","property-maintenance","facilities-management","gardening-and-landscaping","grounds-maintenance","pest-control","pool-and-hot-tub-care","fire-safety-servicing","security-patrols","other"workTypesarray of enumoptionalcan be nullUp to 19 items
workTypeOtherstringoptionalcan be nullUp to 100 characters
customerTypeenumrequiredOne of
"commercial","domestic","both"clientCountenumrequiredOne of
"0-10","11-50","51-100","101-250","250+"
Response object
iduuidrequirednamestringrequiredtimeZonestringrequiredcurrencystringrequiredmodulesarray of enumrequiredtermsobjectrequiredclientobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
projectobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
bookingobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
jobobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamMemberobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
durationDisplayenumrequiredOne of
"minutes","hours"weekStartsOnenumrequiredOne of
"saturday","sunday","monday"needsClockInDefaultbooleanrequiredrecordClockLocationbooleanrequiredopenPickupbooleanrequiredopenNotifyDelayMinutesintegerrequired-9007199254740991 to 9007199254740991
missedClockInAlertsbooleanrequiredmissedClockInGraceMinutesintegerrequired-9007199254740991 to 9007199254740991
phoneRemindersbooleanrequiredphotosVisibleToClientsbooleanrequiredDefault
truelogoUrlstringrequiredcan be nulladdressstringrequiredcan be nullphonestringrequiredcan be nullemailstringrequiredcan be nullwebsitestringrequiredcan be nullcompanyNumberstringrequiredcan be nullvatNumberstringrequiredcan be nullvatRegisteredbooleanrequiredvatRateBpintegerrequired-9007199254740991 to 9007199254740991
activeClientDaysintegerrequired-9007199254740991 to 9007199254740991
emailCopyToCompanybooleanrequiredprofileobjectrequiredcan be nullteamSizeenumrequiredOne of
"1","2-5","6-10","11-25","26-50","50+"workTypeenumrequiredOne of
"domestic-cleaning","commercial-cleaning","end-of-tenancy-cleaning","window-cleaning","carpet-and-upholstery-cleaning","plumbers","heating-engineers","electricians","air-conditioning","roofers","property-maintenance","facilities-management","gardening-and-landscaping","grounds-maintenance","pest-control","pool-and-hot-tub-care","fire-safety-servicing","security-patrols","other"workTypesarray of enumrequiredworkTypeOtherstringrequiredcan be nullcustomerTypeenumrequiredOne of
"commercial","domestic","both"clientCountenumrequiredOne of
"0-10","11-50","51-100","101-250","250+"answeredAtstringrequired
closureobjectrequiredcan be nullclosedAtstringrequireddeleteAfterstringrequired
curl -X PATCH "https://app.workscope.co.uk/v1/organization" \
-H "Authorization: Bearer wsk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"name": "Harbourside Dental",
"timeZone": "text",
"modules": [
"projects"
],
"terms": {
"client": {
"one": "text",
"many": "text"
},
"project": {
"one": "text",
"many": "text"
},
"booking": {
"one": "text",
"many": "text"
},
"teamMember": {
"one": "text",
"many": "text"
},
"team": {
"one": "text",
"many": "text"
}
},
"durationDisplay": "minutes",
"weekStartsOn": "saturday",
"needsClockInDefault": false,
"recordClockLocation": false,
"openPickup": false,
"openNotifyDelayMinutes": 120,
"missedClockInAlerts": false,
"missedClockInGraceMinutes": 120,
"phoneReminders": false,
"photosVisibleToClients": false,
"invoiceSignedOffOnly": false,
"activeClientDays": 1,
"emailCopyToCompany": false,
"address": "1 Harbour Road, Bristol",
"phone": "0117 496 0123",
"email": "",
"website": "https://example.co.uk",
"companyNumber": "text",
"vatNumber": "text",
"vatRegistered": false,
"vatRateBp": 1207,
"profile": {
"teamSize": "1",
"workType": "domestic-cleaning",
"workTypes": [
"domestic-cleaning"
],
"workTypeOther": "text",
"customerType": "commercial",
"clientCount": "0-10"
}
}'Example response
{
"id": "3f2a9c1e-6b4d-4e8a-9f1c-2d7b5a0e8c41",
"name": "Harbourside Dental",
"timeZone": "text",
"currency": "text",
"modules": [
"projects"
],
"terms": {
"client": {
"one": "text",
"many": "text"
},
"project": {
"one": "text",
"many": "text"
},
"booking": {
"one": "text",
"many": "text"
},
"job": {
"one": "text",
"many": "text"
},
"teamMember": {
"one": "text",
"many": "text"
},
"team": {
"one": "text",
"many": "text"
}
},
"durationDisplay": "minutes",
"weekStartsOn": "saturday",
"needsClockInDefault": false,
"recordClockLocation": false,
"openPickup": false,
"openNotifyDelayMinutes": 120,
"missedClockInAlerts": false,
"missedClockInGraceMinutes": 120,
"phoneReminders": false,
"photosVisibleToClients": true,
"logoUrl": "https://example.co.uk",
"address": "1 Harbour Road, Bristol",
"phone": "0117 496 0123",
"email": "office@example.co.uk",
"website": "https://example.co.uk",
"companyNumber": "text",
"vatNumber": "text",
"vatRegistered": false,
"vatRateBp": 1207,
"activeClientDays": -9007199254740991,
"emailCopyToCompany": false,
"profile": {
"teamSize": "1",
"workType": "domestic-cleaning",
"workTypes": [
"domestic-cleaning"
],
"workTypeOther": "text",
"customerType": "commercial",
"clientCount": "0-10",
"answeredAt": "2026-11-06T09:30:00.000Z"
},
"closure": {
"closedAt": "2026-11-06T09:30:00.000Z",
"deleteAfter": "text"
}
}Download the company's data: a ZIP of CSV files (clients, contacts, projects, bookings, repeat bookings, team members); owners only
GET/v1/organization/export
- Permission
organization.close- Answers
200with a file (image/jpeg)
curl "https://app.workscope.co.uk/v1/organization/export" \
-H "Authorization: Bearer wsk_your_key_here"The company's logo (PNG)
GET/v1/organization/logo
- Permission
Any key- Answers
200with a file (image/jpeg)
curl "https://app.workscope.co.uk/v1/organization/logo" \
-H "Authorization: Bearer wsk_your_key_here"Set the company's logo: send the image itself (JPEG, PNG, WebP; up to 5 MB)
POST/v1/organization/logo
- Permission
organization.update- Answers
200
Request body the file itself
Send the file as the body, with Content-Type one of image/jpeg, image/png, image/webp. See Files and photos.
Response object
iduuidrequirednamestringrequiredtimeZonestringrequiredcurrencystringrequiredmodulesarray of enumrequiredtermsobjectrequiredclientobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
projectobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
bookingobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
jobobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamMemberobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
durationDisplayenumrequiredOne of
"minutes","hours"weekStartsOnenumrequiredOne of
"saturday","sunday","monday"needsClockInDefaultbooleanrequiredrecordClockLocationbooleanrequiredopenPickupbooleanrequiredopenNotifyDelayMinutesintegerrequired-9007199254740991 to 9007199254740991
missedClockInAlertsbooleanrequiredmissedClockInGraceMinutesintegerrequired-9007199254740991 to 9007199254740991
phoneRemindersbooleanrequiredphotosVisibleToClientsbooleanrequiredDefault
truelogoUrlstringrequiredcan be nulladdressstringrequiredcan be nullphonestringrequiredcan be nullemailstringrequiredcan be nullwebsitestringrequiredcan be nullcompanyNumberstringrequiredcan be nullvatNumberstringrequiredcan be nullvatRegisteredbooleanrequiredvatRateBpintegerrequired-9007199254740991 to 9007199254740991
activeClientDaysintegerrequired-9007199254740991 to 9007199254740991
emailCopyToCompanybooleanrequiredprofileobjectrequiredcan be nullteamSizeenumrequiredOne of
"1","2-5","6-10","11-25","26-50","50+"workTypeenumrequiredOne of
"domestic-cleaning","commercial-cleaning","end-of-tenancy-cleaning","window-cleaning","carpet-and-upholstery-cleaning","plumbers","heating-engineers","electricians","air-conditioning","roofers","property-maintenance","facilities-management","gardening-and-landscaping","grounds-maintenance","pest-control","pool-and-hot-tub-care","fire-safety-servicing","security-patrols","other"workTypesarray of enumrequiredworkTypeOtherstringrequiredcan be nullcustomerTypeenumrequiredOne of
"commercial","domestic","both"clientCountenumrequiredOne of
"0-10","11-50","51-100","101-250","250+"answeredAtstringrequired
closureobjectrequiredcan be nullclosedAtstringrequireddeleteAfterstringrequired
curl -X POST "https://app.workscope.co.uk/v1/organization/logo" \
-H "Authorization: Bearer wsk_your_key_here" \
-H "Content-Type: image/jpeg" \
--data-binary @photo.jpgExample response
{
"id": "3f2a9c1e-6b4d-4e8a-9f1c-2d7b5a0e8c41",
"name": "Harbourside Dental",
"timeZone": "text",
"currency": "text",
"modules": [
"projects"
],
"terms": {
"client": {
"one": "text",
"many": "text"
},
"project": {
"one": "text",
"many": "text"
},
"booking": {
"one": "text",
"many": "text"
},
"job": {
"one": "text",
"many": "text"
},
"teamMember": {
"one": "text",
"many": "text"
},
"team": {
"one": "text",
"many": "text"
}
},
"durationDisplay": "minutes",
"weekStartsOn": "saturday",
"needsClockInDefault": false,
"recordClockLocation": false,
"openPickup": false,
"openNotifyDelayMinutes": 120,
"missedClockInAlerts": false,
"missedClockInGraceMinutes": 120,
"phoneReminders": false,
"photosVisibleToClients": true,
"logoUrl": "https://example.co.uk",
"address": "1 Harbour Road, Bristol",
"phone": "0117 496 0123",
"email": "office@example.co.uk",
"website": "https://example.co.uk",
"companyNumber": "text",
"vatNumber": "text",
"vatRegistered": false,
"vatRateBp": 1207,
"activeClientDays": -9007199254740991,
"emailCopyToCompany": false,
"profile": {
"teamSize": "1",
"workType": "domestic-cleaning",
"workTypes": [
"domestic-cleaning"
],
"workTypeOther": "text",
"customerType": "commercial",
"clientCount": "0-10",
"answeredAt": "2026-11-06T09:30:00.000Z"
},
"closure": {
"closedAt": "2026-11-06T09:30:00.000Z",
"deleteAfter": "text"
}
}Remove the company's logo
DELETE/v1/organization/logo
- Permission
organization.update- Answers
200
Response object
iduuidrequirednamestringrequiredtimeZonestringrequiredcurrencystringrequiredmodulesarray of enumrequiredtermsobjectrequiredclientobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
projectobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
bookingobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
jobobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamMemberobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
teamobjectrequiredonestringrequired1–40 characters
manystringrequired1–40 characters
durationDisplayenumrequiredOne of
"minutes","hours"weekStartsOnenumrequiredOne of
"saturday","sunday","monday"needsClockInDefaultbooleanrequiredrecordClockLocationbooleanrequiredopenPickupbooleanrequiredopenNotifyDelayMinutesintegerrequired-9007199254740991 to 9007199254740991
missedClockInAlertsbooleanrequiredmissedClockInGraceMinutesintegerrequired-9007199254740991 to 9007199254740991
phoneRemindersbooleanrequiredphotosVisibleToClientsbooleanrequiredDefault
truelogoUrlstringrequiredcan be nulladdressstringrequiredcan be nullphonestringrequiredcan be nullemailstringrequiredcan be nullwebsitestringrequiredcan be nullcompanyNumberstringrequiredcan be nullvatNumberstringrequiredcan be nullvatRegisteredbooleanrequiredvatRateBpintegerrequired-9007199254740991 to 9007199254740991
activeClientDaysintegerrequired-9007199254740991 to 9007199254740991
emailCopyToCompanybooleanrequiredprofileobjectrequiredcan be nullteamSizeenumrequiredOne of
"1","2-5","6-10","11-25","26-50","50+"workTypeenumrequiredOne of
"domestic-cleaning","commercial-cleaning","end-of-tenancy-cleaning","window-cleaning","carpet-and-upholstery-cleaning","plumbers","heating-engineers","electricians","air-conditioning","roofers","property-maintenance","facilities-management","gardening-and-landscaping","grounds-maintenance","pest-control","pool-and-hot-tub-care","fire-safety-servicing","security-patrols","other"workTypesarray of enumrequiredworkTypeOtherstringrequiredcan be nullcustomerTypeenumrequiredOne of
"commercial","domestic","both"clientCountenumrequiredOne of
"0-10","11-50","51-100","101-250","250+"answeredAtstringrequired
closureobjectrequiredcan be nullclosedAtstringrequireddeleteAfterstringrequired
curl -X DELETE "https://app.workscope.co.uk/v1/organization/logo" \
-H "Authorization: Bearer wsk_your_key_here"Example response
{
"id": "3f2a9c1e-6b4d-4e8a-9f1c-2d7b5a0e8c41",
"name": "Harbourside Dental",
"timeZone": "text",
"currency": "text",
"modules": [
"projects"
],
"terms": {
"client": {
"one": "text",
"many": "text"
},
"project": {
"one": "text",
"many": "text"
},
"booking": {
"one": "text",
"many": "text"
},
"job": {
"one": "text",
"many": "text"
},
"teamMember": {
"one": "text",
"many": "text"
},
"team": {
"one": "text",
"many": "text"
}
},
"durationDisplay": "minutes",
"weekStartsOn": "saturday",
"needsClockInDefault": false,
"recordClockLocation": false,
"openPickup": false,
"openNotifyDelayMinutes": 120,
"missedClockInAlerts": false,
"missedClockInGraceMinutes": 120,
"phoneReminders": false,
"photosVisibleToClients": true,
"logoUrl": "https://example.co.uk",
"address": "1 Harbour Road, Bristol",
"phone": "0117 496 0123",
"email": "office@example.co.uk",
"website": "https://example.co.uk",
"companyNumber": "text",
"vatNumber": "text",
"vatRegistered": false,
"vatRateBp": 1207,
"activeClientDays": -9007199254740991,
"emailCopyToCompany": false,
"profile": {
"teamSize": "1",
"workType": "domestic-cleaning",
"workTypes": [
"domestic-cleaning"
],
"workTypeOther": "text",
"customerType": "commercial",
"clientCount": "0-10",
"answeredAt": "2026-11-06T09:30:00.000Z"
},
"closure": {
"closedAt": "2026-11-06T09:30:00.000Z",
"deleteAfter": "text"
}
}Setting up a new company: where the guide carries on from, and the checklist Home shows (worked out from the company's data)
GET/v1/organization/setup
- Permission
organization.update- Answers
200
Response object
stepenumrequiredOne of
"company","modules","words","money","team","clients","done"seenarray of enumrequiredchecklistarray of objectrequiredkeyenumrequiredOne of
"company","modules","words","money","team","clients","job","booking"donebooleanrequired
completebooleanrequireddismissedbooleanrequiredshowbooleanrequired
curl "https://app.workscope.co.uk/v1/organization/setup" \
-H "Authorization: Bearer wsk_your_key_here"Example response
{
"step": "company",
"seen": [
"company"
],
"checklist": [
{
"key": "company",
"done": false
}
],
"complete": false,
"dismissed": false,
"show": false
}Move the setup guide on, mark a step finished, or hide the checklist
PATCH/v1/organization/setup
- Permission
organization.update- Answers
200
Request body JSON
stepenumoptionalOne of
"company","modules","words","money","team","clients","done"seenenumoptionalOne of
"company","modules","words","money","team","clients"dismissedbooleanoptional
Response object
stepenumrequiredOne of
"company","modules","words","money","team","clients","done"seenarray of enumrequiredchecklistarray of objectrequiredkeyenumrequiredOne of
"company","modules","words","money","team","clients","job","booking"donebooleanrequired
completebooleanrequireddismissedbooleanrequiredshowbooleanrequired
curl -X PATCH "https://app.workscope.co.uk/v1/organization/setup" \
-H "Authorization: Bearer wsk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"step": "company",
"seen": "company",
"dismissed": false
}'Example response
{
"step": "company",
"seen": [
"company"
],
"checklist": [
{
"key": "company",
"done": false
}
],
"complete": false,
"dismissed": false,
"show": false
}How the live sync from Xota is doing, and the differences left to decide
GET/v1/xota-sync
- Permission
organization.update- Answers
200
Response object
setUpbooleanrequiredenabledbooleanrequiredxotaOrganizationIdstringrequiredcan be nullenabledAtstringrequiredcan be nulllastRunAtstringrequiredcan be nulllastOkAtstringrequiredcan be nulllastErrorstringrequiredcan be nulllastCountsobjectrequiredcreatednumberrequiredupdatednumberrequiredunchangednumberrequiredconflictsnumberrequiredfailednumberrequiredskippednumberrequired
openConflictsnumberrequiredconflictsarray of objectrequiredidstringrequiredlabelstringrequiredcan be nulltablestringrequiredfieldstringrequiredworkscopeValueanyrequiredxotaValueanyrequiredseenAtstringrequired
curl "https://app.workscope.co.uk/v1/xota-sync" \
-H "Authorization: Bearer wsk_your_key_here"Example response
{
"setUp": false,
"enabled": false,
"xotaOrganizationId": "text",
"enabledAt": "2026-11-06T09:30:00.000Z",
"lastRunAt": "2026-11-06T09:30:00.000Z",
"lastOkAt": "2026-11-06T09:30:00.000Z",
"lastError": "text",
"lastCounts": {},
"openConflicts": 1,
"conflicts": [
{
"id": "text",
"label": "text",
"table": "text",
"field": "text",
"workscopeValue": null,
"xotaValue": null,
"seenAt": "2026-11-06T09:30:00.000Z"
}
]
}Decide a difference: take Xota's value, or keep Workscope's
POST/v1/xota-sync/conflicts/{id}/resolve
- Permission
organization.update- Answers
200
Parameters
| Name | In | Kind | |
|---|---|---|---|
id | path | uuidrequired |
Request body JSON
choiceenumrequiredOne of
"xota","workscope"
Response object
setUpbooleanrequiredenabledbooleanrequiredxotaOrganizationIdstringrequiredcan be nullenabledAtstringrequiredcan be nulllastRunAtstringrequiredcan be nulllastOkAtstringrequiredcan be nulllastErrorstringrequiredcan be nulllastCountsobjectrequiredcreatednumberrequiredupdatednumberrequiredunchangednumberrequiredconflictsnumberrequiredfailednumberrequiredskippednumberrequired
openConflictsnumberrequiredconflictsarray of objectrequiredidstringrequiredlabelstringrequiredcan be nulltablestringrequiredfieldstringrequiredworkscopeValueanyrequiredxotaValueanyrequiredseenAtstringrequired
curl -X POST "https://app.workscope.co.uk/v1/xota-sync/conflicts/ID/resolve" \
-H "Authorization: Bearer wsk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"choice": "xota"
}'Example response
{
"setUp": false,
"enabled": false,
"xotaOrganizationId": "text",
"enabledAt": "2026-11-06T09:30:00.000Z",
"lastRunAt": "2026-11-06T09:30:00.000Z",
"lastOkAt": "2026-11-06T09:30:00.000Z",
"lastError": "text",
"lastCounts": {},
"openConflicts": 1,
"conflicts": [
{
"id": "text",
"label": "text",
"table": "text",
"field": "text",
"workscopeValue": null,
"xotaValue": null,
"seenAt": "2026-11-06T09:30:00.000Z"
}
]
}