{"openapi":"3.1.0","info":{"title":"Kontaktfix API","version":"1.0.0","description":"Maintain the shared contacts and lists of a Kontaktfix organization. Authenticate with an API key from Settings > API: Authorization: Bearer kf_live_..."},"servers":[{"url":"https://app.kontaktfix.ch/api/v1"}],"security":[{"apiKey":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"API key"}}},"tags":[{"name":"Contacts"},{"name":"Lists"},{"name":"Sync"}],"paths":{"/contacts":{"get":{"operationId":"listContacts","tags":["Contacts"],"summary":"List contacts","description":"Contacts sorted by name, page by page. Keys limited to lists only see contacts in those lists.\n\nScope: read.","parameters":[{"name":"q","in":"query","required":false,"description":"Search in name, company, job title, email, notes and phone numbers.","schema":{"type":"string"}},{"name":"listId","in":"query","required":false,"description":"Only contacts in this list. Without it, employees from Microsoft 365 are left out.","schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","required":false,"description":"Page, from 1.","schema":{"type":"integer"}},{"name":"pageSize","in":"query","required":false,"description":"Items per page, 1 to 200.","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string"},"title":{"type":["string","null"]},"givenName":{"type":["string","null"]},"middleName":{"type":["string","null"]},"surname":{"type":["string","null"]},"nickName":{"type":["string","null"]},"companyName":{"type":["string","null"]},"department":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"profession":{"type":["string","null"]},"officeLocation":{"type":["string","null"]},"manager":{"type":["string","null"]},"assistantName":{"type":["string","null"]},"imAddress":{"type":["string","null"]},"website":{"type":["string","null"]},"notes":{"type":["string","null"]},"email1":{"type":["string","null"]},"email2":{"type":["string","null"]},"email3":{"type":["string","null"]},"businessPhone1":{"type":["string","null"]},"businessPhone2":{"type":["string","null"]},"mobilePhone":{"type":["string","null"]},"homePhone1":{"type":["string","null"]},"homePhone2":{"type":["string","null"]},"businessAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}]},"homeAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}]},"otherAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}]},"listIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"source":{"type":"string","enum":["manual","directory","file"]},"readOnly":{"type":"boolean"},"hasPhoto":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","title","givenName","middleName","surname","nickName","companyName","department","jobTitle","profession","officeLocation","manager","assistantName","imAddress","website","notes","email1","email2","email3","businessPhone1","businessPhone2","mobilePhone","homePhone1","homePhone2","businessAddress","homeAddress","otherAddress","listIds","source","readOnly","hasPhoto","createdAt","updatedAt"],"additionalProperties":false}},"total":{"type":"integer"},"page":{"type":"integer"},"pageSize":{"type":"integer"}},"required":["items","total","page","pageSize"],"additionalProperties":false},"example":{"items":[{"id":"4b1f6a3e-2c1d-4a8e-9f5b-0c7d2e9a1b34","displayName":"Anna Meier","title":null,"givenName":"Anna","middleName":null,"surname":"Meier","nickName":null,"companyName":"Muster Haustechnik AG","department":"Service","jobTitle":"Disponentin","profession":null,"officeLocation":"Zürich","manager":null,"assistantName":null,"imAddress":null,"website":"https://muster-haustechnik.ch","notes":"Pikett: 24 h","email1":"anna.meier@muster-haustechnik.ch","email2":null,"email3":null,"businessPhone1":"+41441234567","businessPhone2":null,"mobilePhone":"+41791234567","homePhone1":null,"homePhone2":null,"businessAddress":{"street":"Bahnhofstrasse 1","postalCode":"8001","city":"Zürich","state":"ZH","country":"Schweiz"},"homeAddress":null,"otherAddress":null,"listIds":["9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71"],"source":"manual","readOnly":false,"hasPhoto":false,"createdAt":"2026-10-20T08:15:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}],"total":1,"page":1,"pageSize":50}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"createContact","tags":["Contacts"],"summary":"Create a contact","description":"Creates the contact and puts it into the given lists. Delivery to the mailboxes starts right away.\n\nScope: write.","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":50},"givenName":{"type":"string","maxLength":100},"middleName":{"type":"string","maxLength":100},"surname":{"type":"string","maxLength":100,"description":"givenName, surname or companyName is required."},"nickName":{"type":"string","maxLength":100},"companyName":{"type":"string","maxLength":200},"department":{"type":"string","maxLength":200},"jobTitle":{"type":"string","maxLength":200},"profession":{"type":"string","maxLength":200},"officeLocation":{"type":"string","maxLength":200,"description":"Site or office."},"manager":{"type":"string","maxLength":200},"assistantName":{"type":"string","maxLength":200},"imAddress":{"type":"string","maxLength":200,"description":"Teams or SIP address."},"email1":{"type":"string"},"email2":{"type":"string"},"email3":{"type":"string"},"businessPhone1":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessPhone2":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"mobilePhone":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone1":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone2":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessAddress":{"anyOf":[{"type":"object","properties":{"street":{"default":"","type":"string","maxLength":200},"postalCode":{"default":"","type":"string","maxLength":20},"city":{"default":"","type":"string","maxLength":100},"state":{"default":"","type":"string","maxLength":100},"country":{"default":"","type":"string","maxLength":100}}},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"homeAddress":{"anyOf":[{"type":"object","properties":{"street":{"default":"","type":"string","maxLength":200},"postalCode":{"default":"","type":"string","maxLength":20},"city":{"default":"","type":"string","maxLength":100},"state":{"default":"","type":"string","maxLength":100},"country":{"default":"","type":"string","maxLength":100}}},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"otherAddress":{"anyOf":[{"type":"object","properties":{"street":{"default":"","type":"string","maxLength":200},"postalCode":{"default":"","type":"string","maxLength":20},"city":{"default":"","type":"string","maxLength":100},"state":{"default":"","type":"string","maxLength":100},"country":{"default":"","type":"string","maxLength":100}}},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"website":{"type":"string","description":"https:// is added when missing."},"notes":{"type":"string","maxLength":4000},"listIds":{"type":"array","items":{"type":"string","format":"uuid"},"description":"Lists the contact goes into. Required for keys limited to lists."}}},"example":{"givenName":"Anna","surname":"Meier","companyName":"Muster Haustechnik AG","mobilePhone":"079 123 45 67","email1":"anna.meier@muster-haustechnik.ch","listIds":["9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string","description":"Built from given, middle and surname, or the company. Read-only."},"title":{"type":["string","null"]},"givenName":{"type":["string","null"]},"middleName":{"type":["string","null"]},"surname":{"type":["string","null"],"description":"givenName, surname or companyName is required."},"nickName":{"type":["string","null"]},"companyName":{"type":["string","null"]},"department":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"profession":{"type":["string","null"]},"officeLocation":{"type":["string","null"],"description":"Site or office."},"manager":{"type":["string","null"]},"assistantName":{"type":["string","null"]},"imAddress":{"type":["string","null"],"description":"Teams or SIP address."},"website":{"type":["string","null"],"description":"https:// is added when missing."},"notes":{"type":["string","null"]},"email1":{"type":["string","null"]},"email2":{"type":["string","null"]},"email3":{"type":["string","null"]},"businessPhone1":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessPhone2":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"mobilePhone":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone1":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone2":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"homeAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"otherAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"listIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Ids of the lists the contact is in (only lists the key may see)."},"source":{"type":"string","enum":["manual","directory","file"],"description":"manual: maintained in Kontaktfix. directory: employee from Microsoft 365. file: from a file list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"hasPhoto":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","title","givenName","middleName","surname","nickName","companyName","department","jobTitle","profession","officeLocation","manager","assistantName","imAddress","website","notes","email1","email2","email3","businessPhone1","businessPhone2","mobilePhone","homePhone1","homePhone2","businessAddress","homeAddress","otherAddress","listIds","source","readOnly","hasPhoto","createdAt","updatedAt"],"additionalProperties":false},"example":{"id":"4b1f6a3e-2c1d-4a8e-9f5b-0c7d2e9a1b34","displayName":"Anna Meier","title":null,"givenName":"Anna","middleName":null,"surname":"Meier","nickName":null,"companyName":"Muster Haustechnik AG","department":"Service","jobTitle":"Disponentin","profession":null,"officeLocation":"Zürich","manager":null,"assistantName":null,"imAddress":null,"website":"https://muster-haustechnik.ch","notes":"Pikett: 24 h","email1":"anna.meier@muster-haustechnik.ch","email2":null,"email3":null,"businessPhone1":"+41441234567","businessPhone2":null,"mobilePhone":"+41791234567","homePhone1":null,"homePhone2":null,"businessAddress":{"street":"Bahnhofstrasse 1","postalCode":"8001","city":"Zürich","state":"ZH","country":"Schweiz"},"homeAddress":null,"otherAddress":null,"listIds":["9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71"],"source":"manual","readOnly":false,"hasPhoto":false,"createdAt":"2026-10-20T08:15:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}}},"/contacts/{id}":{"get":{"operationId":"getContact","tags":["Contacts"],"summary":"Get a contact","description":"One contact with all fields.\n\nScope: read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string","description":"Built from given, middle and surname, or the company. Read-only."},"title":{"type":["string","null"]},"givenName":{"type":["string","null"]},"middleName":{"type":["string","null"]},"surname":{"type":["string","null"],"description":"givenName, surname or companyName is required."},"nickName":{"type":["string","null"]},"companyName":{"type":["string","null"]},"department":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"profession":{"type":["string","null"]},"officeLocation":{"type":["string","null"],"description":"Site or office."},"manager":{"type":["string","null"]},"assistantName":{"type":["string","null"]},"imAddress":{"type":["string","null"],"description":"Teams or SIP address."},"website":{"type":["string","null"],"description":"https:// is added when missing."},"notes":{"type":["string","null"]},"email1":{"type":["string","null"]},"email2":{"type":["string","null"]},"email3":{"type":["string","null"]},"businessPhone1":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessPhone2":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"mobilePhone":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone1":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone2":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"homeAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"otherAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"listIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Ids of the lists the contact is in (only lists the key may see)."},"source":{"type":"string","enum":["manual","directory","file"],"description":"manual: maintained in Kontaktfix. directory: employee from Microsoft 365. file: from a file list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"hasPhoto":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","title","givenName","middleName","surname","nickName","companyName","department","jobTitle","profession","officeLocation","manager","assistantName","imAddress","website","notes","email1","email2","email3","businessPhone1","businessPhone2","mobilePhone","homePhone1","homePhone2","businessAddress","homeAddress","otherAddress","listIds","source","readOnly","hasPhoto","createdAt","updatedAt"],"additionalProperties":false},"example":{"id":"4b1f6a3e-2c1d-4a8e-9f5b-0c7d2e9a1b34","displayName":"Anna Meier","title":null,"givenName":"Anna","middleName":null,"surname":"Meier","nickName":null,"companyName":"Muster Haustechnik AG","department":"Service","jobTitle":"Disponentin","profession":null,"officeLocation":"Zürich","manager":null,"assistantName":null,"imAddress":null,"website":"https://muster-haustechnik.ch","notes":"Pikett: 24 h","email1":"anna.meier@muster-haustechnik.ch","email2":null,"email3":null,"businessPhone1":"+41441234567","businessPhone2":null,"mobilePhone":"+41791234567","homePhone1":null,"homePhone2":null,"businessAddress":{"street":"Bahnhofstrasse 1","postalCode":"8001","city":"Zürich","state":"ZH","country":"Schweiz"},"homeAddress":null,"otherAddress":null,"listIds":["9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71"],"source":"manual","readOnly":false,"hasPhoto":false,"createdAt":"2026-10-20T08:15:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"operationId":"updateContact","tags":["Contacts"],"summary":"Update a contact","description":"Changes only the fields you send. Send null or an empty string to clear a field. List membership is changed with the list endpoints.\n\nScope: write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","maxLength":50},"givenName":{"type":"string","maxLength":100},"middleName":{"type":"string","maxLength":100},"surname":{"type":"string","maxLength":100,"description":"givenName, surname or companyName is required."},"nickName":{"type":"string","maxLength":100},"companyName":{"type":"string","maxLength":200},"department":{"type":"string","maxLength":200},"jobTitle":{"type":"string","maxLength":200},"profession":{"type":"string","maxLength":200},"officeLocation":{"type":"string","maxLength":200,"description":"Site or office."},"manager":{"type":"string","maxLength":200},"assistantName":{"type":"string","maxLength":200},"imAddress":{"type":"string","maxLength":200,"description":"Teams or SIP address."},"email1":{"type":"string"},"email2":{"type":"string"},"email3":{"type":"string"},"businessPhone1":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessPhone2":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"mobilePhone":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone1":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone2":{"type":"string","description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessAddress":{"anyOf":[{"type":"object","properties":{"street":{"default":"","type":"string","maxLength":200},"postalCode":{"default":"","type":"string","maxLength":20},"city":{"default":"","type":"string","maxLength":100},"state":{"default":"","type":"string","maxLength":100},"country":{"default":"","type":"string","maxLength":100}}},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"homeAddress":{"anyOf":[{"type":"object","properties":{"street":{"default":"","type":"string","maxLength":200},"postalCode":{"default":"","type":"string","maxLength":20},"city":{"default":"","type":"string","maxLength":100},"state":{"default":"","type":"string","maxLength":100},"country":{"default":"","type":"string","maxLength":100}}},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"otherAddress":{"anyOf":[{"type":"object","properties":{"street":{"default":"","type":"string","maxLength":200},"postalCode":{"default":"","type":"string","maxLength":20},"city":{"default":"","type":"string","maxLength":100},"state":{"default":"","type":"string","maxLength":100},"country":{"default":"","type":"string","maxLength":100}}},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"website":{"type":"string","description":"https:// is added when missing."},"notes":{"type":"string","maxLength":4000}}},"example":{"jobTitle":"Leiterin Disposition","businessPhone2":null}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"displayName":{"type":"string","description":"Built from given, middle and surname, or the company. Read-only."},"title":{"type":["string","null"]},"givenName":{"type":["string","null"]},"middleName":{"type":["string","null"]},"surname":{"type":["string","null"],"description":"givenName, surname or companyName is required."},"nickName":{"type":["string","null"]},"companyName":{"type":["string","null"]},"department":{"type":["string","null"]},"jobTitle":{"type":["string","null"]},"profession":{"type":["string","null"]},"officeLocation":{"type":["string","null"],"description":"Site or office."},"manager":{"type":["string","null"]},"assistantName":{"type":["string","null"]},"imAddress":{"type":["string","null"],"description":"Teams or SIP address."},"website":{"type":["string","null"],"description":"https:// is added when missing."},"notes":{"type":["string","null"]},"email1":{"type":["string","null"]},"email2":{"type":["string","null"]},"email3":{"type":["string","null"]},"businessPhone1":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessPhone2":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"mobilePhone":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone1":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"homePhone2":{"type":["string","null"],"description":"Any common format, Swiss numbers without country code too. Returned in E.164 (+41...)."},"businessAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"homeAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"otherAddress":{"anyOf":[{"type":"object","properties":{"street":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"}},"required":["street","postalCode","city","state","country"],"additionalProperties":false},{"type":"null"}],"description":"Object with street, postalCode, city, state, country."},"listIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"description":"Ids of the lists the contact is in (only lists the key may see)."},"source":{"type":"string","enum":["manual","directory","file"],"description":"manual: maintained in Kontaktfix. directory: employee from Microsoft 365. file: from a file list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"hasPhoto":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","displayName","title","givenName","middleName","surname","nickName","companyName","department","jobTitle","profession","officeLocation","manager","assistantName","imAddress","website","notes","email1","email2","email3","businessPhone1","businessPhone2","mobilePhone","homePhone1","homePhone2","businessAddress","homeAddress","otherAddress","listIds","source","readOnly","hasPhoto","createdAt","updatedAt"],"additionalProperties":false},"example":{"id":"4b1f6a3e-2c1d-4a8e-9f5b-0c7d2e9a1b34","displayName":"Anna Meier","title":null,"givenName":"Anna","middleName":null,"surname":"Meier","nickName":null,"companyName":"Muster Haustechnik AG","department":"Service","jobTitle":"Disponentin","profession":null,"officeLocation":"Zürich","manager":null,"assistantName":null,"imAddress":null,"website":"https://muster-haustechnik.ch","notes":"Pikett: 24 h","email1":"anna.meier@muster-haustechnik.ch","email2":null,"email3":null,"businessPhone1":"+41441234567","businessPhone2":null,"mobilePhone":"+41791234567","homePhone1":null,"homePhone2":null,"businessAddress":{"street":"Bahnhofstrasse 1","postalCode":"8001","city":"Zürich","state":"ZH","country":"Schweiz"},"homeAddress":null,"otherAddress":null,"listIds":["9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71"],"source":"manual","readOnly":false,"hasPhoto":false,"createdAt":"2026-10-20T08:15:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"operationId":"deleteContact","tags":["Contacts"],"summary":"Delete a contact","description":"Deletes the contact and removes it from all mailboxes.\n\nScope: write (key not limited to lists).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}}},"/lists":{"get":{"operationId":"listLists","tags":["Lists"],"summary":"List lists","description":"All lists the key may see, sorted by name.\n\nScope: read.","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":"string","enum":["gray","iris","blue","teal","green","amber","orange","red","pink","violet"]},"kind":{"type":"string","enum":["manual","directory","file"],"description":"manual, directory (Microsoft 365) or file (CSV/XLSX). Only manual lists take contacts through the API."},"contactCount":{"type":"integer","description":"Contacts in the list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","description","color","kind","contactCount","readOnly","createdAt","updatedAt"],"additionalProperties":false}},"example":[{"id":"9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71","name":"Lieferanten","description":"Alle Lieferanten mit Pikettnummern","color":"iris","kind":"manual","contactCount":128,"readOnly":false,"createdAt":"2026-09-02T09:00:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}]}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"post":{"operationId":"createList","tags":["Lists"],"summary":"Create a list","description":"Creates a manual list. Who receives it is set in the app (Lists > Assignments).\n\nScope: write (key not limited to lists).","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"color":{"default":"iris","type":"string","enum":["gray","iris","blue","teal","green","amber","orange","red","pink","violet"]}},"required":["name"]},"example":{"name":"Lieferanten","description":"Alle Lieferanten mit Pikettnummern","color":"iris"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":"string","enum":["gray","iris","blue","teal","green","amber","orange","red","pink","violet"]},"kind":{"type":"string","enum":["manual","directory","file"],"description":"manual, directory (Microsoft 365) or file (CSV/XLSX). Only manual lists take contacts through the API."},"contactCount":{"type":"integer","description":"Contacts in the list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","description","color","kind","contactCount","readOnly","createdAt","updatedAt"],"additionalProperties":false},"example":{"id":"9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71","name":"Lieferanten","description":"Alle Lieferanten mit Pikettnummern","color":"iris","kind":"manual","contactCount":128,"readOnly":false,"createdAt":"2026-09-02T09:00:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}}},"/lists/{id}":{"get":{"operationId":"getList","tags":["Lists"],"summary":"Get a list","description":"One list.\n\nScope: read.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":"string","enum":["gray","iris","blue","teal","green","amber","orange","red","pink","violet"]},"kind":{"type":"string","enum":["manual","directory","file"],"description":"manual, directory (Microsoft 365) or file (CSV/XLSX). Only manual lists take contacts through the API."},"contactCount":{"type":"integer","description":"Contacts in the list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","description","color","kind","contactCount","readOnly","createdAt","updatedAt"],"additionalProperties":false},"example":{"id":"9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71","name":"Lieferanten","description":"Alle Lieferanten mit Pikettnummern","color":"iris","kind":"manual","contactCount":128,"readOnly":false,"createdAt":"2026-09-02T09:00:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"operationId":"updateList","tags":["Lists"],"summary":"Update a list","description":"Changes name, description or color. The name is the Outlook category, so a rename updates the delivered contacts.\n\nScope: write (key not limited to lists).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"color":{"default":"iris","type":"string","enum":["gray","iris","blue","teal","green","amber","orange","red","pink","violet"]}}},"example":{"name":"Lieferanten Schweiz"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]},"color":{"type":"string","enum":["gray","iris","blue","teal","green","amber","orange","red","pink","violet"]},"kind":{"type":"string","enum":["manual","directory","file"],"description":"manual, directory (Microsoft 365) or file (CSV/XLSX). Only manual lists take contacts through the API."},"contactCount":{"type":"integer","description":"Contacts in the list."},"readOnly":{"type":"boolean","description":"Directory and file contacts cannot be changed through the API."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","name","description","color","kind","contactCount","readOnly","createdAt","updatedAt"],"additionalProperties":false},"example":{"id":"9e2c4d1a-7b3f-4e8a-a1c5-3d6f8b0e2a71","name":"Lieferanten","description":"Alle Lieferanten mit Pikettnummern","color":"iris","kind":"manual","contactCount":128,"readOnly":false,"createdAt":"2026-09-02T09:00:00.000Z","updatedAt":"2026-10-24T13:42:10.000Z"}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"operationId":"deleteList","tags":["Lists"],"summary":"Delete a list","description":"Deletes the list. Its contacts stay, but leave the mailboxes that received them only through this list.\n\nScope: write (key not limited to lists).","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}}},"/lists/{id}/contacts/{contactId}":{"put":{"operationId":"addContactToList","tags":["Lists"],"summary":"Add a contact to a list","description":"Idempotent: adding a contact that is already in the list changes nothing.\n\nScope: write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"operationId":"removeContactFromList","tags":["Lists"],"summary":"Remove a contact from a list","description":"The contact itself stays. Idempotent.\n\nScope: write.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"No content"},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}}},"/sync/status":{"get":{"operationId":"getSyncStatus","tags":["Sync"],"summary":"Delivery status","description":"Connection to Microsoft 365, people by status and the last delivery run.\n\nScope: read.","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"connection":{"type":"string","enum":["none","granted","error"]},"running":{"type":"boolean","description":"A delivery is in progress."},"lastSuccessAt":{"type":["string","null"],"description":"Last time a mailbox was brought up to date."},"recipients":{"type":"object","properties":{"pending":{"type":"integer"},"syncing":{"type":"integer"},"ok":{"type":"integer"},"error":{"type":"integer"},"unreachable":{"type":"integer"},"removing":{"type":"integer"}},"required":["pending","syncing","ok","error","unreachable","removing"],"additionalProperties":false,"description":"People by delivery status."},"lastRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"trigger":{"type":"string","enum":["change","manual","schedule","directory","setup","disconnect"]},"status":{"type":"string","enum":["running","done","failed","cancelled"]},"startedAt":{"type":"string"},"finishedAt":{"type":["string","null"]},"created":{"type":"integer"},"updated":{"type":"integer"},"deleted":{"type":"integer"},"errors":{"type":"integer"}},"required":["id","trigger","status","startedAt","finishedAt","created","updated","deleted","errors"],"additionalProperties":false},{"type":"null"}]}},"required":["connection","running","lastSuccessAt","recipients","lastRun"],"additionalProperties":false},"example":{"connection":"granted","running":false,"lastSuccessAt":"2026-10-25T06:00:12.000Z","recipients":{"pending":0,"syncing":0,"ok":48,"error":1,"unreachable":2,"removing":0},"lastRun":{"id":"c3a7e5f2-1b9d-4c6e-8a2f-7d0b4e1c9a53","trigger":"change","status":"done","startedAt":"2026-10-25T06:00:00.000Z","finishedAt":"2026-10-25T06:00:12.000Z","created":3,"updated":51,"deleted":0,"errors":0}}}}},"400":{"description":"Validation failed","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Missing, invalid or expired API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"The key lacks the scope or list access","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Not found or not visible to the key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Conflict, e.g. a read-only contact or a taken list name","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit exceeded, see Retry-After","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}},"required":["path","message"],"additionalProperties":false}}},"required":["error"],"additionalProperties":false}}}}}}}}}