{"info":{"title":"Krinoa API","version":"contract-7","description":"REST API for Krinoa. Breaking changes bump the contract version; see `GET /version`."},"servers":[{"url":"/api/v1"}],"openapi":"3.1.1","paths":{"/version":{"get":{"operationId":"version","summary":"Server and contract version","tags":["meta"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"server":{"type":"string"},"contract":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minClientContract":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["server","contract","minClientContract"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/openapi.json":{"get":{"operationId":"openapi","summary":"This API as an OpenAPI 3.1 document","tags":["meta"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/me":{"get":{"operationId":"me","summary":"The signed-in user, the auth method, and the active workspace","tags":["meta"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"]},"org":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"about":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"object","properties":{"replyTo":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}]},"rejectionDelayHours":{"type":"integer","minimum":0,"maximum":168},"sendConfirmation":{"type":"boolean"},"sendDecision":{"type":"boolean"},"signature":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["replyTo","rejectionDelayHours","sendConfirmation","sendDecision","signature"]},"scheduling":{"type":"object","properties":{"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"minNoticeHours":{"type":"integer","minimum":0,"maximum":168},"rescheduleCutoffHours":{"type":"integer","minimum":0,"maximum":168},"reminderHours":{"type":"array","maxItems":3,"items":{"type":"integer","minimum":1,"maximum":168}}},"required":["timezone","meetingLink","minNoticeHours","rescheduleCutoffHours","reminderHours"]},"screening":{"type":"object","properties":{"rereadOnEvidence":{"type":"boolean"}},"required":["rereadOnEvidence"]},"whatsapp":{"type":"object","properties":{"companions":{"type":"array","items":{"enum":["application.received","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder"],"type":"string"}},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}},"required":["companions","language"]},"retention":{"type":"object","properties":{"candidateMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]}},"required":["candidateMonths"]}},"required":["id","name","slug","createdAt","logoUrl","about","brandColor","email","scheduling","screening","whatsapp","retention"]},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"via":{"enum":["session","api_key"],"type":"string"},"apiKey":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name"]},{"type":"null"}]}},"required":["user","org","role","via","apiKey"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/orgs":{"get":{"operationId":"orgs.list","summary":"Workspaces the acting user belongs to","tags":["orgs"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"active":{"type":"boolean"}},"required":["id","name","slug","role","active"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/orgs/active":{"post":{"operationId":"orgs.setActive","summary":"Switch the session's active workspace (session tokens only)","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slug":{"type":"string","minLength":1,"maxLength":50}},"required":["slug"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"active":{"type":"boolean"}},"required":["id","name","slug","role","active"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/org":{"get":{"operationId":"orgs.get","summary":"The current workspace","tags":["orgs"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"about":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"object","properties":{"replyTo":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}]},"rejectionDelayHours":{"type":"integer","minimum":0,"maximum":168},"sendConfirmation":{"type":"boolean"},"sendDecision":{"type":"boolean"},"signature":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["replyTo","rejectionDelayHours","sendConfirmation","sendDecision","signature"]},"scheduling":{"type":"object","properties":{"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"minNoticeHours":{"type":"integer","minimum":0,"maximum":168},"rescheduleCutoffHours":{"type":"integer","minimum":0,"maximum":168},"reminderHours":{"type":"array","maxItems":3,"items":{"type":"integer","minimum":1,"maximum":168}}},"required":["timezone","meetingLink","minNoticeHours","rescheduleCutoffHours","reminderHours"]},"screening":{"type":"object","properties":{"rereadOnEvidence":{"type":"boolean"}},"required":["rereadOnEvidence"]},"whatsapp":{"type":"object","properties":{"companions":{"type":"array","items":{"enum":["application.received","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder"],"type":"string"}},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}},"required":["companions","language"]},"retention":{"type":"object","properties":{"candidateMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]}},"required":["candidateMonths"]}},"required":["id","name","slug","createdAt","logoUrl","about","brandColor","email","scheduling","screening","whatsapp","retention"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"patch":{"operationId":"orgs.update","summary":"Update name, slug, careers branding or email settings","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"slug":{"type":"string","minLength":1,"maxLength":50,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"about":{"type":"string","maxLength":2000},"brandColor":{"anyOf":[{"const":""},{"type":"string","pattern":"^#(?:[0-9a-f]{3}|[0-9a-f]{6})$"}]},"logoKey":{"type":"string","maxLength":500},"email":{"type":"object","properties":{"replyTo":{"anyOf":[{"const":""},{"type":"string","maxLength":320,"format":"email"}]},"rejectionDelayHours":{"type":"integer","minimum":0,"maximum":168},"sendConfirmation":{"type":"boolean"},"sendDecision":{"type":"boolean"},"signature":{"type":"string","maxLength":1000}}},"scheduling":{"type":"object","properties":{"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"const":""},{"type":"string","maxLength":500,"format":"uri"}]},"minNoticeHours":{"type":"integer","minimum":0,"maximum":168},"rescheduleCutoffHours":{"type":"integer","minimum":0,"maximum":168},"reminderHours":{"type":"array","maxItems":3,"items":{"type":"integer","minimum":1,"maximum":168}}}},"screening":{"type":"object","properties":{"rereadOnEvidence":{"type":"boolean"}}},"whatsapp":{"type":"object","properties":{"companions":{"type":"array","items":{"enum":["application.received","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder"],"type":"string"}},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}}},"retention":{"type":"object","properties":{"candidateMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]}}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"about":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"object","properties":{"replyTo":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}]},"rejectionDelayHours":{"type":"integer","minimum":0,"maximum":168},"sendConfirmation":{"type":"boolean"},"sendDecision":{"type":"boolean"},"signature":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["replyTo","rejectionDelayHours","sendConfirmation","sendDecision","signature"]},"scheduling":{"type":"object","properties":{"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"minNoticeHours":{"type":"integer","minimum":0,"maximum":168},"rescheduleCutoffHours":{"type":"integer","minimum":0,"maximum":168},"reminderHours":{"type":"array","maxItems":3,"items":{"type":"integer","minimum":1,"maximum":168}}},"required":["timezone","meetingLink","minNoticeHours","rescheduleCutoffHours","reminderHours"]},"screening":{"type":"object","properties":{"rereadOnEvidence":{"type":"boolean"}},"required":["rereadOnEvidence"]},"whatsapp":{"type":"object","properties":{"companions":{"type":"array","items":{"enum":["application.received","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder"],"type":"string"}},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}},"required":["companions","language"]},"retention":{"type":"object","properties":{"candidateMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]}},"required":["candidateMonths"]}},"required":["id","name","slug","createdAt","logoUrl","about","brandColor","email","scheduling","screening","whatsapp","retention"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/org/logo":{"post":{"operationId":"orgs.uploadLogo","summary":"Upload the workspace logo (multipart)","tags":["orgs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"}},"required":["file"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"about":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"object","properties":{"replyTo":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}]},"rejectionDelayHours":{"type":"integer","minimum":0,"maximum":168},"sendConfirmation":{"type":"boolean"},"sendDecision":{"type":"boolean"},"signature":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["replyTo","rejectionDelayHours","sendConfirmation","sendDecision","signature"]},"scheduling":{"type":"object","properties":{"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"minNoticeHours":{"type":"integer","minimum":0,"maximum":168},"rescheduleCutoffHours":{"type":"integer","minimum":0,"maximum":168},"reminderHours":{"type":"array","maxItems":3,"items":{"type":"integer","minimum":1,"maximum":168}}},"required":["timezone","meetingLink","minNoticeHours","rescheduleCutoffHours","reminderHours"]},"screening":{"type":"object","properties":{"rereadOnEvidence":{"type":"boolean"}},"required":["rereadOnEvidence"]},"whatsapp":{"type":"object","properties":{"companions":{"type":"array","items":{"enum":["application.received","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder"],"type":"string"}},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}},"required":["companions","language"]},"retention":{"type":"object","properties":{"candidateMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]}},"required":["candidateMonths"]}},"required":["id","name","slug","createdAt","logoUrl","about","brandColor","email","scheduling","screening","whatsapp","retention"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"orgs.removeLogo","summary":"Remove the workspace logo","tags":["orgs"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"about":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"object","properties":{"replyTo":{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"type":"null"}]},"rejectionDelayHours":{"type":"integer","minimum":0,"maximum":168},"sendConfirmation":{"type":"boolean"},"sendDecision":{"type":"boolean"},"signature":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["replyTo","rejectionDelayHours","sendConfirmation","sendDecision","signature"]},"scheduling":{"type":"object","properties":{"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"minNoticeHours":{"type":"integer","minimum":0,"maximum":168},"rescheduleCutoffHours":{"type":"integer","minimum":0,"maximum":168},"reminderHours":{"type":"array","maxItems":3,"items":{"type":"integer","minimum":1,"maximum":168}}},"required":["timezone","meetingLink","minNoticeHours","rescheduleCutoffHours","reminderHours"]},"screening":{"type":"object","properties":{"rereadOnEvidence":{"type":"boolean"}},"required":["rereadOnEvidence"]},"whatsapp":{"type":"object","properties":{"companions":{"type":"array","items":{"enum":["application.received","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder"],"type":"string"}},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}},"required":["companions","language"]},"retention":{"type":"object","properties":{"candidateMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":120},{"type":"null"}]}},"required":["candidateMonths"]}},"required":["id","name","slug","createdAt","logoUrl","about","brandColor","email","scheduling","screening","whatsapp","retention"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/jobs":{"get":{"operationId":"jobs.list","summary":"Every job in the workspace, newest first","tags":["jobs"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"department":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"employmentType":{"enum":["full_time","part_time","contract","internship"],"type":"string"},"status":{"enum":["draft","published","closed"],"type":"string"},"shortDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"requirements":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"compensation":{"anyOf":[{"type":"string"},{"type":"null"}]},"form":{"anyOf":[{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]},{"type":"null"}]},"interviewPlan":{"anyOf":[{"type":"object","properties":{"rounds":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"defaultInterviewerIds":{"type":"array","maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"prepNotes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"required":["id","name","durationMinutes","format","defaultInterviewerIds","prepNotes"]}}},"required":["rounds"]},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"applicationCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","publicId","title","department","location","employmentType","status","shortDescription","description","requirements","compensation","form","interviewPlan","publishedAt","createdAt","updatedAt","applicationCount"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"jobs.create","summary":"Create a job (draft unless status is given)","tags":["jobs"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"department":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":200},"employment_type":{"enum":["full_time","part_time","contract","internship"],"type":"string"},"short_description":{"type":"string","maxLength":2000},"description":{"type":"string","maxLength":50000},"requirements":{"type":"array","maxItems":100,"items":{"type":"string","maxLength":500}},"compensation":{"type":"string","maxLength":500},"status":{"enum":["draft","published","closed"],"type":"string"},"form":{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]}},"required":["title","employment_type"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string"}},"required":["publicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/jobs/{publicId}":{"get":{"operationId":"jobs.get","summary":"One job with per-stage application counts","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"department":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"employmentType":{"enum":["full_time","part_time","contract","internship"],"type":"string"},"status":{"enum":["draft","published","closed"],"type":"string"},"shortDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"requirements":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"compensation":{"anyOf":[{"type":"string"},{"type":"null"}]},"form":{"anyOf":[{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]},{"type":"null"}]},"interviewPlan":{"anyOf":[{"type":"object","properties":{"rounds":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"defaultInterviewerIds":{"type":"array","maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"prepNotes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"required":["id","name","durationMinutes","format","defaultInterviewerIds","prepNotes"]}}},"required":["rounds"]},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","publicId","title","department","location","employmentType","status","shortDescription","description","requirements","compensation","form","interviewPlan","publishedAt","createdAt","updatedAt"]},"counts":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"byStage":{"type":"object","properties":{"applied":{"type":"integer","minimum":0,"maximum":9007199254740991},"screening":{"type":"integer","minimum":0,"maximum":9007199254740991},"interview":{"type":"integer","minimum":0,"maximum":9007199254740991},"offer":{"type":"integer","minimum":0,"maximum":9007199254740991},"hired":{"type":"integer","minimum":0,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"withdrawn":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["applied","screening","interview","offer","hired","rejected","withdrawn"]}},"required":["total","byStage"]}},"required":["job","counts"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"patch":{"operationId":"jobs.update","summary":"Update any subset of a job's fields","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300},"department":{"type":"string","maxLength":200},"location":{"type":"string","maxLength":200},"employment_type":{"enum":["full_time","part_time","contract","internship"],"type":"string"},"short_description":{"type":"string","maxLength":2000},"description":{"type":"string","maxLength":50000},"requirements":{"type":"array","maxItems":100,"items":{"type":"string","maxLength":500}},"compensation":{"type":"string","maxLength":500},"status":{"enum":["draft","published","closed"],"type":"string"},"form":{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string"}},"required":["publicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"jobs.delete","summary":"Delete a job and everything under it","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string"}},"required":["publicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/jobs/{publicId}/pipeline":{"get":{"operationId":"jobs.pipeline","summary":"Live application counts per stage and round","description":"Counts only; spam-flagged applications are excluded.","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","order"]},{"type":"null"}]},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["stage","round","count"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/jobs/{publicId}/publish":{"post":{"operationId":"jobs.publish","summary":"Publish to the careers page","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string"}},"required":["publicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/jobs/{publicId}/close":{"post":{"operationId":"jobs.close","summary":"Close the job and stop accepting applications","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string"}},"required":["publicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/jobs/{publicId}/plan":{"get":{"operationId":"jobs.plan.get","summary":"The job's interview rounds; the default plan until it is edited","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rounds":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"defaultInterviewerIds":{"type":"array","maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"prepNotes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"required":["id","name","durationMinutes","format","defaultInterviewerIds","prepNotes"]}}},"required":["rounds"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"put":{"operationId":"jobs.plan.update","summary":"Replace the job's interview plan","description":"Rounds are ordered; keep ids stable to preserve where existing interviews sit. Past interviews keep the round name they were scheduled with.","tags":["jobs"],"parameters":[{"name":"publicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"object","properties":{"rounds":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"defaultInterviewerIds":{"type":"array","maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"prepNotes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"required":["id","name","durationMinutes","format","defaultInterviewerIds","prepNotes"]}}},"required":["rounds"]}},"required":["plan"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"rounds":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"defaultInterviewerIds":{"type":"array","maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"prepNotes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]}},"required":["id","name","durationMinutes","format","defaultInterviewerIds","prepNotes"]}}},"required":["rounds"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications":{"get":{"operationId":"applications.list","summary":"Applications you can access","description":"Owners and admins see the whole workspace; interviewers see only applications assigned to them. Spam-flagged applications are hidden unless includeSpam=true. assigned=me narrows to the caller's assignments.","tags":["applications"],"parameters":[{"name":"jobPublicId","in":"query","schema":{"type":"string","maxLength":16},"allowEmptyValue":true,"allowReserved":true},{"name":"stage","in":"query","schema":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"search","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true},{"name":"source","in":"query","schema":{"type":"string","maxLength":50},"allowEmptyValue":true,"allowReserved":true},{"name":"minScore","in":"query","schema":{"type":"integer","minimum":0,"maximum":100},"allowEmptyValue":true,"allowReserved":true},{"name":"includeSpam","in":"query","schema":{"type":"boolean"},"allowEmptyValue":true,"allowReserved":true},{"name":"sort","in":"query","schema":{"enum":["applied","score","name"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"dir","in":"query","schema":{"enum":["asc","desc"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"assigned","in":"query","schema":{"enum":["me"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"spam":{"type":"boolean"},"spamReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"screening":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","score","summary"]},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappOptInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","email","location","phoneE164","whatsappOptInAt","profile","linkedinUrl"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"}},"required":["id","publicId","title"]},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"interviewId":{"type":"string","format":"uuid"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","order","interviewId","status","startAt","createdAt"]},{"type":"null"}]}},"required":["id","publicId","stage","source","spam","spamReason","screening","appliedAt","candidate","job","round"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"applications.create","summary":"Add a candidate by hand (referral, sourced, inbound)","tags":["applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jobPublicId":{"type":"string","minLength":1,"maxLength":16},"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320,"format":"email"},"phone":{"type":"string","maxLength":50},"location":{"type":"string","maxLength":200},"linkedinUrl":{"type":"string","maxLength":500},"resumeKey":{"type":"string","maxLength":500},"source":{"enum":["referral","sourced","inbound","other"],"type":"string","default":"referral"},"referrerName":{"type":"string","maxLength":200},"notes":{"type":"string","maxLength":10000}},"required":["jobPublicId","name","email"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"candidateId":{"type":"string","format":"uuid"},"jobPublicId":{"type":"string"}},"required":["applicationId","publicId","candidateId","jobPublicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}":{"get":{"operationId":"applications.get","summary":"The packet: application + candidate + answers + job form","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"spam":{"type":"boolean"},"spamReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"screening":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","score","summary"]},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappOptInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"resumeKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"resumePageCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"whatsapp":{"type":"object","properties":{"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"optInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"optOutAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"source":{"anyOf":[{"enum":["apply_form","recruiter","inbound"],"type":"string"},{"type":"null"}]},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"unreachableAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"windowOpen":{"type":"boolean"},"windowUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sendable":{"type":"boolean"},"blockedReason":{"anyOf":[{"enum":["not_connected","no_phone","not_opted_in","opted_out","unreachable"],"type":"string"},{"type":"null"}]}},"required":["phoneE164","optInAt","optOutAt","source","lastInboundAt","unreachableAt","windowOpen","windowUntil","sendable","blockedReason"]}},"required":["id","name","email","location","phoneE164","whatsappOptInAt","profile","linkedinUrl","phone","githubUrl","resumeKey","resumePageCount","whatsapp"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"form":{"anyOf":[{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]},{"type":"null"}]}},"required":["id","publicId","title","form"]},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"interviewId":{"type":"string","format":"uuid"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","order","interviewId","status","startAt","createdAt"]},{"type":"null"}]},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"screeningDetail":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasons":{"anyOf":[{"type":"object","properties":{"strengths":{"type":"array","items":{"type":"string"}},"concerns":{"type":"array","items":{"type":"string"}}},"required":["strengths","concerns"]},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"read":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"summary":{"type":"string"},"confidence":{"enum":["strong","moderate","thin"],"type":"string"},"coverage":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"requirement":{"type":"string"},"verdict":{"enum":["met","partial","unclear","not_met"],"type":"string"},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["requirement","verdict","note","evidence"]}},"uncoveredRequirements":{"type":"integer","minimum":0,"maximum":9007199254740991},"findings":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"enum":["strength","concern","question","flag"],"type":"string"},"title":{"type":"string","maxLength":80},"detail":{"type":"string","maxLength":240},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}},"action":{"anyOf":[{"type":"object","properties":{"type":{"enum":["ask_candidate","probe_round"],"type":"string"},"draft":{"type":"string","maxLength":400},"roundId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","draft","roundId"]},{"type":"null"}]}},"required":["id","kind","title","detail","evidence","action"]}},"checks":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"kind":{"enum":["date_overlap","employment_gap","contradiction","templated_answer","other"],"type":"string"},"detail":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["kind","detail","evidence"]}},"changes":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"summary":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["summary","evidence"]}},"transitions":{"type":"array","items":{"type":"object","properties":{"requirement":{"type":"string"},"from":{"enum":["met","partial","unclear","not_met"],"type":"string"},"to":{"enum":["met","partial","unclear","not_met"],"type":"string"}},"required":["requirement","from","to"]}},"resumeUnverifiable":{"type":"boolean"},"model":{"type":"string"},"rubricVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"readAt":{"type":"string","format":"date-time"},"trigger":{"enum":["apply","manual","scorecard","reply","outcome","resume_replaced"],"type":"string"}},"required":["score","summary","confidence","coverage","uncoveredRequirements","findings","checks","changes","transitions","resumeUnverifiable","model","rubricVersion","readAt","trigger"]},{"type":"null"}]},"pool":{"anyOf":[{"type":"object","properties":{"rank":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"band":{"enum":["top_quarter","upper_half","lower_half","bottom_quarter"],"type":"string"}},"required":["rank","of","band"]},{"type":"null"}]},"previousRead":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","createdAt","score"]},{"type":"null"}]}},"required":["status","score","summary","reasons","attempts","read","pool","previousRead"]},{"type":"null"}]},"prepProbes":{"type":"array","items":{"type":"object","properties":{"roundId":{"type":"string"},"text":{"type":"string"},"findingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"addedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"addedAt":{"type":"string","format":"date-time"}},"required":["roundId","text","findingId","addedBy","addedAt"]}},"answers":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},{"type":"null"}]},"thread":{"type":"object","properties":{"needsReply":{"type":"boolean"},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastOutboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"doneAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"replyRoutingEnabled":{"type":"boolean"}},"required":["needsReply","lastInboundAt","lastOutboundAt","doneAt","owner","replyRoutingEnabled"]},"referrerName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","publicId","stage","source","spam","spamReason","screening","appliedAt","candidate","job","round","coverLetter","screeningDetail","prepProbes","answers","thread","referrerName"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"applications.delete","summary":"Delete one application and its files","description":"Removes the application, its messages, interviews, scorecards, comments and stored files. When it was the candidate's only application in this workspace their candidate record goes too (`candidateErased`). The ledger keeps an anonymized record. Owners and admins only; irreversible.","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"publicId":{"type":"string"},"candidateErased":{"type":"boolean"}},"required":["publicId","candidateErased"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/stage":{"post":{"operationId":"applications.moveStage","summary":"Move an application between pipeline stages","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"}},"required":["stage"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"}},"required":["applicationId","publicId","stage"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/reject":{"post":{"operationId":"applications.reject","summary":"Reject the application and send the decision email","description":"Moves to `rejected` and queues the decision email in the same transaction. Omit `email` to send the workspace's `application.rejected` template after the workspace's rejection delay; pass `email: false` to reject silently; pass an object to send that exact email. `sendNow` skips the delay.","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":2000},"email":{"anyOf":[{"const":false},{"type":"object","properties":{"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"sendNow":{"type":"boolean"}},"required":["subject","text"]}]},"sendNow":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"communication":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"kind":{"enum":["confirmation","decision","manual","team","auto","interview"],"type":"string"},"channel":{"enum":["email","whatsapp"],"type":"string"},"direction":{"enum":["out","in"],"type":"string"},"status":{"enum":["queued","sending","sent","delivered","bounced","failed","skipped","cancelled","received","read"],"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"from":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["name","address"]},"to":{"type":"string"},"cc":{"type":"array","items":{"type":"string"}},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"templateKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendAfter":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"delivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string"},"smtpStatusCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pricingCategory":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","smtpStatusCode","reason","at","pricingCategory"]},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","filename","type","size","url"]}},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"inReplyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","kind","channel","direction","status","subject","text","from","to","cc","replyTo","templateKey","sendAfter","sentAt","deliveredAt","readAt","attempts","error","delivery","attachments","actor","messageId","inReplyTo","createdAt"]},{"type":"null"}]}},"required":["applicationId","publicId","stage","communication"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/rescreen":{"post":{"operationId":"applications.rescreen","summary":"Reset and re-run AI screening","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"const":"scored"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","score"]},{"type":"object","properties":{"status":{"const":"skipped"},"reason":{"enum":["not_configured","already_screened","spam","budget"],"type":"string"}},"required":["status","reason"]},{"type":"object","properties":{"status":{"const":"failed"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["status","attempts"]}]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/reads":{"get":{"operationId":"applications.reads","summary":"Every read of this application, newest first","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"model":{"type":"string"},"rubricVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"score":{"type":"integer","minimum":0,"maximum":100},"trigger":{"enum":["apply","manual","scorecard","reply","outcome","resume_replaced"],"type":"string"},"legacy":{"type":"boolean"},"redacted":{"type":"boolean"}},"required":["id","createdAt","model","rubricVersion","score","trigger","legacy","redacted"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/reads/{id}":{"get":{"operationId":"applications.read","summary":"One past read in full","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}},{"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"},"createdAt":{"type":"string","format":"date-time"},"model":{"type":"string"},"rubricVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"score":{"type":"integer","minimum":0,"maximum":100},"trigger":{"enum":["apply","manual","scorecard","reply","outcome","resume_replaced"],"type":"string"},"legacy":{"type":"boolean"},"redacted":{"type":"boolean"},"summary":{"type":"string"},"read":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"summary":{"type":"string"},"confidence":{"enum":["strong","moderate","thin"],"type":"string"},"coverage":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"requirement":{"type":"string"},"verdict":{"enum":["met","partial","unclear","not_met"],"type":"string"},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["requirement","verdict","note","evidence"]}},"uncoveredRequirements":{"type":"integer","minimum":0,"maximum":9007199254740991},"findings":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"enum":["strength","concern","question","flag"],"type":"string"},"title":{"type":"string","maxLength":80},"detail":{"type":"string","maxLength":240},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}},"action":{"anyOf":[{"type":"object","properties":{"type":{"enum":["ask_candidate","probe_round"],"type":"string"},"draft":{"type":"string","maxLength":400},"roundId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","draft","roundId"]},{"type":"null"}]}},"required":["id","kind","title","detail","evidence","action"]}},"checks":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"kind":{"enum":["date_overlap","employment_gap","contradiction","templated_answer","other"],"type":"string"},"detail":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["kind","detail","evidence"]}},"changes":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"summary":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["summary","evidence"]}},"transitions":{"type":"array","items":{"type":"object","properties":{"requirement":{"type":"string"},"from":{"enum":["met","partial","unclear","not_met"],"type":"string"},"to":{"enum":["met","partial","unclear","not_met"],"type":"string"}},"required":["requirement","from","to"]}},"resumeUnverifiable":{"type":"boolean"},"model":{"type":"string"},"rubricVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"readAt":{"type":"string","format":"date-time"},"trigger":{"enum":["apply","manual","scorecard","reply","outcome","resume_replaced"],"type":"string"}},"required":["score","summary","confidence","coverage","uncoveredRequirements","findings","checks","changes","transitions","resumeUnverifiable","model","rubricVersion","readAt","trigger"]},{"type":"null"}]},"reasons":{"anyOf":[{"type":"object","properties":{"strengths":{"type":"array","items":{"type":"string"}},"concerns":{"type":"array","items":{"type":"string"}}},"required":["strengths","concerns"]},{"type":"null"}]}},"required":["id","createdAt","model","rubricVersion","score","trigger","legacy","redacted","summary","read","reasons"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/probes":{"post":{"operationId":"applications.probe","summary":"Push a question into a round's interview prep","description":"Appends to that round's interview prep notes when the interview exists; otherwise queues on the application and `interviews.propose/book` merge it in. Interviewers read it in their invite and on the packet.","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roundId":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","minLength":1,"maxLength":500},"findingId":{"type":"string","maxLength":16}},"required":["roundId","text"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"spam":{"type":"boolean"},"spamReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"screening":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","score","summary"]},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappOptInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"resumeKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"resumePageCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"whatsapp":{"type":"object","properties":{"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"optInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"optOutAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"source":{"anyOf":[{"enum":["apply_form","recruiter","inbound"],"type":"string"},{"type":"null"}]},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"unreachableAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"windowOpen":{"type":"boolean"},"windowUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sendable":{"type":"boolean"},"blockedReason":{"anyOf":[{"enum":["not_connected","no_phone","not_opted_in","opted_out","unreachable"],"type":"string"},{"type":"null"}]}},"required":["phoneE164","optInAt","optOutAt","source","lastInboundAt","unreachableAt","windowOpen","windowUntil","sendable","blockedReason"]}},"required":["id","name","email","location","phoneE164","whatsappOptInAt","profile","linkedinUrl","phone","githubUrl","resumeKey","resumePageCount","whatsapp"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"form":{"anyOf":[{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]},{"type":"null"}]}},"required":["id","publicId","title","form"]},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"interviewId":{"type":"string","format":"uuid"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","order","interviewId","status","startAt","createdAt"]},{"type":"null"}]},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"screeningDetail":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasons":{"anyOf":[{"type":"object","properties":{"strengths":{"type":"array","items":{"type":"string"}},"concerns":{"type":"array","items":{"type":"string"}}},"required":["strengths","concerns"]},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"read":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"summary":{"type":"string"},"confidence":{"enum":["strong","moderate","thin"],"type":"string"},"coverage":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"requirement":{"type":"string"},"verdict":{"enum":["met","partial","unclear","not_met"],"type":"string"},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["requirement","verdict","note","evidence"]}},"uncoveredRequirements":{"type":"integer","minimum":0,"maximum":9007199254740991},"findings":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"enum":["strength","concern","question","flag"],"type":"string"},"title":{"type":"string","maxLength":80},"detail":{"type":"string","maxLength":240},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}},"action":{"anyOf":[{"type":"object","properties":{"type":{"enum":["ask_candidate","probe_round"],"type":"string"},"draft":{"type":"string","maxLength":400},"roundId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","draft","roundId"]},{"type":"null"}]}},"required":["id","kind","title","detail","evidence","action"]}},"checks":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"kind":{"enum":["date_overlap","employment_gap","contradiction","templated_answer","other"],"type":"string"},"detail":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["kind","detail","evidence"]}},"changes":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"summary":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["summary","evidence"]}},"transitions":{"type":"array","items":{"type":"object","properties":{"requirement":{"type":"string"},"from":{"enum":["met","partial","unclear","not_met"],"type":"string"},"to":{"enum":["met","partial","unclear","not_met"],"type":"string"}},"required":["requirement","from","to"]}},"resumeUnverifiable":{"type":"boolean"},"model":{"type":"string"},"rubricVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"readAt":{"type":"string","format":"date-time"},"trigger":{"enum":["apply","manual","scorecard","reply","outcome","resume_replaced"],"type":"string"}},"required":["score","summary","confidence","coverage","uncoveredRequirements","findings","checks","changes","transitions","resumeUnverifiable","model","rubricVersion","readAt","trigger"]},{"type":"null"}]},"pool":{"anyOf":[{"type":"object","properties":{"rank":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"band":{"enum":["top_quarter","upper_half","lower_half","bottom_quarter"],"type":"string"}},"required":["rank","of","band"]},{"type":"null"}]},"previousRead":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","createdAt","score"]},{"type":"null"}]}},"required":["status","score","summary","reasons","attempts","read","pool","previousRead"]},{"type":"null"}]},"prepProbes":{"type":"array","items":{"type":"object","properties":{"roundId":{"type":"string"},"text":{"type":"string"},"findingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"addedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"addedAt":{"type":"string","format":"date-time"}},"required":["roundId","text","findingId","addedBy","addedAt"]}},"answers":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},{"type":"null"}]},"thread":{"type":"object","properties":{"needsReply":{"type":"boolean"},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastOutboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"doneAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"replyRoutingEnabled":{"type":"boolean"}},"required":["needsReply","lastInboundAt","lastOutboundAt","doneAt","owner","replyRoutingEnabled"]},"referrerName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","publicId","stage","source","spam","spamReason","screening","appliedAt","candidate","job","round","coverLetter","screeningDetail","prepProbes","answers","thread","referrerName"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/resume/text":{"get":{"operationId":"applications.resumeText","summary":"The résumé's text layer, page by page","description":"The same extraction the read verifies quotes against. Extracted on the first call and stored on the candidate; `available: false` when there is no résumé or it is not a PDF, `imageOnly: true` when the PDF is a scan with no text layer.","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"imageOnly":{"type":"boolean"},"pageCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"extractedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pages":{"type":"array","items":{"type":"object","properties":{"page":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"text":{"type":"string"}},"required":["page","text"]}}},"required":["available","imageOnly","pageCount","extractedAt","pages"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/neighbours":{"get":{"operationId":"applications.neighbours","summary":"The one before and the one after, in its job's list","description":"Where this application sits in `applications.list({ jobPublicId })` and the publicIds either side of it.","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"position":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"prevPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"nextPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["position","total","prevPublicId","nextPublicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/assignees":{"get":{"operationId":"applications.assignees","summary":"Who is assigned to this application","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"assignedAt":{"type":"string","format":"date-time"}},"required":["userId","name","email","assignedAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"applications.assign","summary":"Assign a teammate (interviewers see only applications assigned to them)","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":128}},"required":["userId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"assignedAt":{"type":"string","format":"date-time"}},"required":["userId","name","email","assignedAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/assignees/{userId}":{"delete":{"operationId":"applications.unassign","summary":"Remove an assignment","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}},{"name":"userId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"assignedAt":{"type":"string","format":"date-time"}},"required":["userId","name","email","assignedAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/scorecards":{"get":{"operationId":"applications.scorecards","summary":"Scorecards (interviewers see only their own)","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"interviewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"strengths":{"anyOf":[{"type":"string"},{"type":"null"}]},"concerns":{"anyOf":[{"type":"string"},{"type":"null"}]},"submittedAt":{"type":"string","format":"date-time"}},"required":["interviewId","userId","authorName","rating","strengths","concerns","submittedAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"applications.submitScorecard","summary":"Submit or replace the caller's scorecard","tags":["applications"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"interviewId":{"type":"string","format":"uuid"},"rating":{"type":"integer","minimum":1,"maximum":4},"strengths":{"type":"string","maxLength":5000},"concerns":{"type":"string","maxLength":5000}},"required":["rating"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"interviewId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"strengths":{"anyOf":[{"type":"string"},{"type":"null"}]},"concerns":{"anyOf":[{"type":"string"},{"type":"null"}]},"submittedAt":{"type":"string","format":"date-time"}},"required":["interviewId","userId","authorName","rating","strengths","concerns","submittedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/candidates/{id}":{"get":{"operationId":"candidates.get","summary":"A candidate in brief: name, address, application count","description":"Name, email address and application count for one candidate in this workspace. Not ledgered. Readable by every role except interviewers.","tags":["candidates"],"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"},"name":{"type":"string"},"email":{"type":"string"},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumeOnFile":{"type":"boolean"}},"required":["id","name","email","applications","resumeOnFile"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"candidates.erase","summary":"Erase a candidate and all of their data","description":"Right-to-erasure. Deletes the candidate and everything under them in this workspace, tombstones every stored object, redacts their words out of the read history and the ledger, and writes an anonymous `candidate.erased` ledger entry. Owners and admins only; irreversible.","tags":["candidates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"candidateId":{"type":"string","format":"uuid"},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"objects":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["candidateId","applications","objects"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/candidates/{id}/export":{"get":{"operationId":"candidates.export","summary":"Export a candidate's data (data-subject request)","description":"The candidate's own submissions, the messages sent to them and the history of their applications, as one JSON document. Team notes (scorecards, comments, prep notes) are not included. The résumé is referenced by `resumePath`. Ledgered as `candidate.exported`.","tags":["candidates"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"exportedAt":{"type":"string","format":"date-time"},"notice":{"type":"string"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"whatsapp":{"type":"object","properties":{"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"optInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"optOutAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"optInSource":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["phoneE164","optInAt","optOutAt","optInSource"]}},"required":["id","name","email","phone","location","linkedinUrl","githubUrl","timezone","profile","createdAt","whatsapp"]},"applications":{"type":"array","items":{"type":"object","properties":{"publicId":{"type":"string"},"job":{"type":"object","properties":{"publicId":{"type":"string"},"title":{"type":"string"}},"required":["publicId","title"]},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"sourceDetail":{"anyOf":[{"type":"string"},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"rejectionReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"answers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"answer":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","label","answer"]}},"read":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"summary":{"type":"string"},"model":{"type":"string"},"readAt":{"type":"string","format":"date-time"},"findings":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string"},"title":{"type":"string"},"detail":{"type":"string"}},"required":["kind","title","detail"]}}},"required":["score","summary","model","readAt","findings"]},{"type":"null"}]},"resumePath":{"anyOf":[{"type":"string"},{"type":"null"}]},"messages":{"type":"array","items":{"type":"object","properties":{"channel":{"enum":["email","whatsapp"],"type":"string"},"direction":{"enum":["inbound","outbound"],"type":"string"},"at":{"type":"string","format":"date-time"},"status":{"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["channel","direction","at","status","subject","text"]}},"interviews":{"type":"array","items":{"type":"object","properties":{"roundName":{"anyOf":[{"type":"string"},{"type":"null"}]},"format":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["roundName","format","status","startAt","endAt","timezone","candidateRsvp"]}},"stageHistory":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","format":"date-time"},"kind":{"type":"string"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["at","kind","stage"]}}},"required":["publicId","job","stage","source","sourceDetail","appliedAt","rejectionReason","coverLetter","answers","read","resumePath","messages","interviews","stageHistory"]}}},"required":["exportedAt","notice","candidate","applications"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/interviews":{"get":{"operationId":"interviews.list","summary":"Every interview on an application, in round order","tags":["interviews"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/interviews/propose":{"post":{"operationId":"interviews.propose","summary":"Propose 1–6 times; the candidate picks one on their page","description":"Creates a `proposed` interview and queues the proposal email in the same transaction. Interviewers are auto-assigned to the application.","tags":["interviews"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roundId":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"interviewerIds":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"const":""},{"type":"string","maxLength":500,"format":"uri"}]},"location":{"type":"string","maxLength":300},"prepNotes":{"type":"string","maxLength":5000},"message":{"type":"string","maxLength":2000},"slots":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}}},"required":["interviewerIds","timezone","slots"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/interviews/book":{"post":{"operationId":"interviews.book","summary":"Book a time already agreed; invites (ICS) go out now","tags":["interviews"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"roundId":{"type":"string","minLength":1,"maxLength":40},"name":{"type":"string","minLength":1,"maxLength":60},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"durationMinutes":{"type":"integer","minimum":15,"maximum":480},"interviewerIds":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"string","minLength":1,"maxLength":128}},"timezone":{"type":"string"},"meetingLink":{"anyOf":[{"const":""},{"type":"string","maxLength":500,"format":"uri"}]},"location":{"type":"string","maxLength":300},"prepNotes":{"type":"string","maxLength":5000},"message":{"type":"string","maxLength":2000},"startAt":{"type":"string","format":"date-time"}},"required":["interviewerIds","timezone","startAt"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/interviews/{id}":{"get":{"operationId":"interviews.get","summary":"One interview","tags":["interviews"],"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"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/interviews/{id}/reschedule":{"post":{"operationId":"interviews.reschedule","summary":"Move a booked interview (an updated invite) or re-propose slots","tags":["interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"startAt":{"type":"string","format":"date-time"},"slots":{"type":"array","minItems":1,"maxItems":6,"items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"timezone":{"type":"string"},"message":{"type":"string","maxLength":2000}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/interviews/{id}/cancel":{"post":{"operationId":"interviews.cancel","summary":"Cancel the interview: a cancellation goes to everyone, reminders are withdrawn","tags":["interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":500},"notify":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/interviews/{id}/outcome":{"post":{"operationId":"interviews.outcome","summary":"Record completed / no-show (interviewers: their own interviews)","tags":["interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"enum":["completed","no_show"],"type":"string"},"note":{"type":"string","maxLength":2000}},"required":["outcome"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/interviews/{id}/resend":{"post":{"operationId":"interviews.resend","summary":"Resend the current proposal or invite","tags":["interviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"to":{"enum":["candidate","interviewers","all"],"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/calendar":{"get":{"operationId":"calendar.list","summary":"Booked interviews in a window (interviewers: theirs only)","tags":["interviews"],"parameters":[{"name":"from","in":"query","schema":{"type":"string","format":"date-time"},"allowEmptyValue":true,"allowReserved":true},{"name":"to","in":"query","schema":{"type":"string","format":"date-time"},"allowEmptyValue":true,"allowReserved":true},{"name":"mine","in":"query","schema":{"type":"boolean"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"interview":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"applicationPublicId":{"type":"string"},"round":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]}},"required":["id","name","order"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"prepNotes":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateRsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"candidateRsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"interviewers":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"rsvp":{"enum":["pending","accepted","declined","tentative"],"type":"string"},"rsvpAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["userId","name","email","rsvp","rsvpAt"]}},"scorecards":{"type":"array","items":{"type":"object","properties":{"userId":{"anyOf":[{"type":"string"},{"type":"null"}]},"authorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"rating":{"type":"integer","minimum":1,"maximum":4},"submittedAt":{"type":"string","format":"date-time"}},"required":["userId","authorName","rating","submittedAt"]}},"outcomeNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"cancelReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdBy":{"anyOf":[{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}},"required":["userId","name"]},{"type":"null"}]},"bookedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"cancelledAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","applicationPublicId","round","format","status","durationMinutes","startAt","endAt","timezone","candidateTimezone","proposedSlots","proposalExpiresAt","meetingLink","location","prepNotes","candidateRsvp","candidateRsvpAt","interviewers","scorecards","outcomeNote","cancelReason","candidateUrl","createdBy","bookedAt","cancelledAt","createdAt","updatedAt"]},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}},"required":["id","name"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"}},"required":["id","publicId","title"]}},"required":["interview","candidate","job"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/me/preferences":{"get":{"operationId":"preferences.get","summary":"The acting user's preferences (time zone)","tags":["meta"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailNotifications":{"enum":["all","mentions","none"],"type":"string"}},"required":["timezone","emailNotifications"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"patch":{"operationId":"preferences.update","summary":"Update the acting user's preferences","tags":["meta"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"anyOf":[{"const":""},{"type":"string"}]},"emailNotifications":{"enum":["all","mentions","none"],"type":"string"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"timezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailNotifications":{"enum":["all","mentions","none"],"type":"string"}},"required":["timezone","emailNotifications"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/review":{"get":{"operationId":"review.queue","summary":"Screened applications still in `applied`, best score first","tags":["review"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"spam":{"type":"boolean"},"spamReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"screening":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","score","summary"]},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappOptInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","email","location","phoneE164","whatsappOptInAt","profile","linkedinUrl"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"}},"required":["id","publicId","title"]},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"interviewId":{"type":"string","format":"uuid"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","order","interviewId","status","startAt","createdAt"]},{"type":"null"}]}},"required":["id","publicId","stage","source","spam","spamReason","screening","appliedAt","candidate","job","round"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/activity":{"get":{"operationId":"activity.list","summary":"The ledger, newest first, scoped like applications","tags":["activity"],"parameters":[{"name":"application","in":"query","schema":{"type":"string","maxLength":40},"allowEmptyValue":true,"allowReserved":true},{"name":"excludeKinds","in":"query","schema":{"type":"array","maxItems":20,"items":{"enum":["job.created","job.updated","job.published","job.closed","job.deleted","application.received","application.stage_changed","application.assigned","application.unassigned","application.flagged_spam","application.screened","scorecard.submitted","team.invited","team.joined","team.role_changed","team.removed","email.sent","email.bounced","email.received","email.cancelled","job.plan_updated","interview.proposed","interview.booked","interview.rescheduled","interview.cancelled","interview.rsvp","interview.completed","interview.no_show","interview.slots_declined","interview.expired","application.probed","comment.created","comment.deleted","whatsapp.sent","whatsapp.received","whatsapp.failed","whatsapp.consent","whatsapp.template","candidate.erased","candidate.exported","application.deleted","quarantine.discarded","resume.viewed","application.withdrawn","candidate.resume_replaced","referral.invited","referral.applied","referral.declined","referral.expired"],"type":"string"}},"style":"deepObject","explode":true,"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"enum":["job.created","job.updated","job.published","job.closed","job.deleted","application.received","application.stage_changed","application.assigned","application.unassigned","application.flagged_spam","application.screened","scorecard.submitted","team.invited","team.joined","team.role_changed","team.removed","email.sent","email.bounced","email.received","email.cancelled","job.plan_updated","interview.proposed","interview.booked","interview.rescheduled","interview.cancelled","interview.rsvp","interview.completed","interview.no_show","interview.slots_declined","interview.expired","application.probed","comment.created","comment.deleted","whatsapp.sent","whatsapp.received","whatsapp.failed","whatsapp.consent","whatsapp.template","candidate.erased","candidate.exported","application.deleted","quarantine.discarded","resume.viewed","application.withdrawn","candidate.resume_replaced","referral.invited","referral.applied","referral.declined","referral.expired"],"type":"string"},"actorName":{"anyOf":[{"type":"string"},{"type":"null"}]},"subjectName":{"anyOf":[{"type":"string"},{"type":"null"}]},"applicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"applicationPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"jobPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"candidateName":{"anyOf":[{"type":"string"},{"type":"null"}]},"payload":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","kind","actorName","subjectName","applicationId","applicationPublicId","jobId","jobPublicId","jobTitle","candidateName","payload","createdAt"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/team/roster":{"get":{"operationId":"team.roster","summary":"Every member, for @mentions and assignment","description":"Readable by any role. Emails are not included; `team.list` (team:manage) has those.","tags":["team"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]},"role":{"enum":["owner","admin","interviewer"],"type":"string"}},"required":["userId","name","image","role"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/team":{"get":{"operationId":"team.list","summary":"Members and pending invitations","tags":["team"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"members":{"type":"array","items":{"type":"object","properties":{"memberId":{"type":"string"},"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"joinedAt":{"type":"string","format":"date-time"}},"required":["memberId","userId","name","email","role","joinedAt"]}},"invites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"invitedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","email","role","invitedAt","expiresAt"]}}},"required":["members","invites"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/team/invitations":{"post":{"operationId":"team.invite","summary":"Invite by email","tags":["team"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"email":{"type":"string","maxLength":320,"format":"email"},"role":{"enum":["owner","admin","interviewer"],"type":"string","default":"interviewer"}},"required":["email"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invitationId":{"type":"string"}},"required":["invitationId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/team/invitations/{invitationId}":{"delete":{"operationId":"team.cancelInvitation","summary":"Cancel a pending invitation","tags":["team"],"parameters":[{"name":"invitationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invitationId":{"type":"string"}},"required":["invitationId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/team/members/{memberId}":{"patch":{"operationId":"team.changeRole","summary":"Change a member's role","tags":["team"],"parameters":[{"name":"memberId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"enum":["owner","admin","interviewer"],"type":"string"}},"required":["role"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"memberId":{"type":"string"}},"required":["memberId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"team.remove","summary":"Remove a member","tags":["team"],"parameters":[{"name":"memberId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"memberId":{"type":"string"}},"required":["memberId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/invitations/{invitationId}":{"get":{"operationId":"invitations.preview","summary":"What an invitation link is for (workspace, role, inviter)","description":"No credential required: the invitation id is the credential. The invitee's address is masked (`a…@example.com`) so a forwarded link does not disclose it. Identity is checked on accept.","tags":["team"],"parameters":[{"name":"invitationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"orgName":{"type":"string"},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"inviterName":{"anyOf":[{"type":"string"},{"type":"null"}]},"emailHint":{"type":"string"},"expired":{"type":"boolean"}},"required":["orgName","role","inviterName","emailHint","expired"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/invitations/{invitationId}/accept":{"post":{"operationId":"invitations.accept","summary":"Accept an invitation: binds it to the signed-in user and switches workspace","tags":["team"],"parameters":[{"name":"invitationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"role":{"enum":["owner","admin","interviewer"],"type":"string"},"active":{"type":"boolean"}},"required":["id","name","slug","role","active"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/messages":{"get":{"operationId":"comms.list","summary":"The thread: every message sent or received, oldest first","description":"Interviewers see threads on assigned applications only. Outbound messages carry their delivery status (queued, scheduled, sent, delivered, bounced…).","tags":["comms"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"kind":{"enum":["confirmation","decision","manual","team","auto","interview"],"type":"string"},"channel":{"enum":["email","whatsapp"],"type":"string"},"direction":{"enum":["out","in"],"type":"string"},"status":{"enum":["queued","sending","sent","delivered","bounced","failed","skipped","cancelled","received","read"],"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"from":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["name","address"]},"to":{"type":"string"},"cc":{"type":"array","items":{"type":"string"}},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"templateKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendAfter":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"delivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string"},"smtpStatusCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pricingCategory":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","smtpStatusCode","reason","at","pricingCategory"]},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","filename","type","size","url"]}},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"inReplyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","kind","channel","direction","status","subject","text","from","to","cc","replyTo","templateKey","sendAfter","sentAt","deliveredAt","readAt","attempts","error","delivery","attachments","actor","messageId","inReplyTo","createdAt"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"comms.send","summary":"Send (or schedule) a message to the candidate","description":"Queues the message and returns it; delivery happens after the response and is retried automatically. From is the acting user; replies route back into this thread.","tags":["comms"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"enum":["email","whatsapp"],"type":"string"},"subject":{"type":"string","minLength":1,"maxLength":300},"text":{"type":"string","minLength":1,"maxLength":20000},"templateKey":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"cc":{"type":"array","maxItems":5,"items":{"type":"string","maxLength":320,"format":"email"}},"attachments":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["key","filename","type","size"]}},"sendAfter":{"type":"string","format":"date-time"},"inReplyTo":{"type":"string","format":"uuid"},"startThread":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"kind":{"enum":["confirmation","decision","manual","team","auto","interview"],"type":"string"},"channel":{"enum":["email","whatsapp"],"type":"string"},"direction":{"enum":["out","in"],"type":"string"},"status":{"enum":["queued","sending","sent","delivered","bounced","failed","skipped","cancelled","received","read"],"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"from":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["name","address"]},"to":{"type":"string"},"cc":{"type":"array","items":{"type":"string"}},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"templateKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendAfter":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"delivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string"},"smtpStatusCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pricingCategory":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","smtpStatusCode","reason","at","pricingCategory"]},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","filename","type","size","url"]}},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"inReplyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","kind","channel","direction","status","subject","text","from","to","cc","replyTo","templateKey","sendAfter","sentAt","deliveredAt","readAt","attempts","error","delivery","attachments","actor","messageId","inReplyTo","createdAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/messages/preview":{"post":{"operationId":"comms.preview","summary":"Render a template (or ad-hoc text) for this application","tags":["comms"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"templateKey":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"subject":{"type":"string","maxLength":300},"text":{"type":"string","maxLength":20000}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"string"},"text":{"type":"string"},"html":{"type":"string"}},"required":["subject","text","html"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/messages/{id}/cancel":{"post":{"operationId":"comms.cancel","summary":"Cancel a queued message (e.g. a delayed rejection email)","tags":["comms"],"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"},"applicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"kind":{"enum":["confirmation","decision","manual","team","auto","interview"],"type":"string"},"channel":{"enum":["email","whatsapp"],"type":"string"},"direction":{"enum":["out","in"],"type":"string"},"status":{"enum":["queued","sending","sent","delivered","bounced","failed","skipped","cancelled","received","read"],"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"from":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["name","address"]},"to":{"type":"string"},"cc":{"type":"array","items":{"type":"string"}},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"templateKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendAfter":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"delivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string"},"smtpStatusCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pricingCategory":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","smtpStatusCode","reason","at","pricingCategory"]},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","filename","type","size","url"]}},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"inReplyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","kind","channel","direction","status","subject","text","from","to","cc","replyTo","templateKey","sendAfter","sentAt","deliveredAt","readAt","attempts","error","delivery","attachments","actor","messageId","inReplyTo","createdAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/thread":{"patch":{"operationId":"comms.thread","summary":"Update thread state: mark done, set the owner","tags":["comms"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"done":{"type":"boolean"},"ownerUserId":{"anyOf":[{"type":"string","minLength":1,"maxLength":128},{"type":"null"}]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"needsReply":{"type":"boolean"},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastOutboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"doneAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"replyRoutingEnabled":{"type":"boolean"}},"required":["needsReply","lastInboundAt","lastOutboundAt","doneAt","owner","replyRoutingEnabled"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/email/status":{"get":{"operationId":"comms.status","summary":"Email settings: provider, from address, inbound domain","tags":["comms"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"provider":{"anyOf":[{"enum":["cloudflare","smtp","log","memory"],"type":"string"},{"type":"null"}]},"from":{"anyOf":[{"type":"string"},{"type":"null"}]},"inboundDomain":{"anyOf":[{"type":"string"},{"type":"null"}]},"deliveryEventsEnabled":{"type":"boolean"},"rsvpEnabled":{"type":"boolean"}},"required":["configured","provider","from","inboundDomain","deliveryEventsEnabled","rsvpEnabled"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/comments":{"get":{"operationId":"comments.list","summary":"The team's discussion on an application, oldest first","description":"Visible to the team only. Interviewers read discussions on assigned applications only. Bodies carry `@[userId]` mention tokens. `order=desc` reads the newest page first; `total` is the whole thread's length, not the page's.","tags":["comments"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true},{"name":"order","in":"query","schema":{"enum":["asc","desc"],"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","image"]},{"type":"null"}]},"body":{"type":"string"},"mentions":{"type":"array","items":{"type":"string"}},"editedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","author","body","mentions","editedAt","createdAt"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["items","nextCursor","total"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"comments.create","summary":"Comment on an application; @[userId] tokens notify","description":"Mentioned members are notified (and mailed per their preference); everyone else on the application gets an in-app notice.","tags":["comments"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","image"]},{"type":"null"}]},"body":{"type":"string"},"mentions":{"type":"array","items":{"type":"string"}},"editedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","author","body","mentions","editedAt","createdAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/comments/{id}":{"patch":{"operationId":"comments.update","summary":"Edit your own comment","tags":["comments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["body"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"type":"string","format":"uuid"},"author":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"image":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","image"]},{"type":"null"}]},"body":{"type":"string"},"mentions":{"type":"array","items":{"type":"string"}},"editedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","author","body","mentions","editedAt","createdAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"comments.delete","summary":"Delete a comment (yours; owners/admins: any)","tags":["comments"],"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"}},"required":["id"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/notifications":{"get":{"operationId":"notifications.list","summary":"Your notifications in this workspace, newest first","tags":["notifications"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true},{"name":"unread","in":"query","schema":{"type":"boolean"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"kind":{"enum":["assignment","candidate_replied","mention","comment","interview_rsvp","scorecard_submitted","invitation_accepted","read_finished","applications_received","candidate_withdrew","referral_applied","referral_interviewing","referral_hired","referral_declined"],"type":"string"},"subject":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"ref":{"type":"string"},"candidateName":{"type":"string"},"jobTitle":{"type":"string"},"jobPublicId":{"type":"string"}},"required":["id","ref","candidateName","jobTitle","jobPublicId"]},{"type":"null"}]},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","kind","subject","actor","payload","readAt","createdAt"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/notifications/unread-count":{"get":{"operationId":"notifications.unreadCount","summary":"How many notifications are unread","tags":["notifications"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"unread":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["unread"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/notifications/read":{"post":{"operationId":"notifications.markRead","summary":"Mark some ({ids}) or all ({all: true}) as read","tags":["notifications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"ids":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"string","format":"uuid"}}},"required":["ids"]},{"type":"object","properties":{"all":{"const":true}},"required":["all"]}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["updated"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/templates":{"get":{"operationId":"templates.list","summary":"The workspace's email templates","tags":["templates"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"kind":{"enum":["system","manual"],"type":"string"},"trigger":{"anyOf":[{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite"],"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"isDefault":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"whatsappBody":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappStatus":{"anyOf":[{"enum":["draft","pending","approved","rejected","paused","disabled"],"type":"string"},{"type":"null"}]},"whatsappRejection":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"whatsappTemplateName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","name","subject","body","kind","trigger","enabled","isDefault","updatedAt","whatsappBody","whatsappStatus","whatsappRejection","whatsappVersion","whatsappTemplateName"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/templates/{key}":{"get":{"operationId":"templates.get","summary":"One template","tags":["templates"],"parameters":[{"name":"key","in":"path","required":true,"schema":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"kind":{"enum":["system","manual"],"type":"string"},"trigger":{"anyOf":[{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite"],"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"isDefault":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"whatsappBody":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappStatus":{"anyOf":[{"enum":["draft","pending","approved","rejected","paused","disabled"],"type":"string"},{"type":"null"}]},"whatsappRejection":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"whatsappTemplateName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","name","subject","body","kind","trigger","enabled","isDefault","updatedAt","whatsappBody","whatsappStatus","whatsappRejection","whatsappVersion","whatsappTemplateName"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"patch":{"operationId":"templates.update","summary":"Edit subject/body/name or toggle a system template","description":"Bodies are plain text with {{variable}} slots; unknown variables are a validation error naming the valid ones.","tags":["templates"],"parameters":[{"name":"key","in":"path","required":true,"schema":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"subject":{"type":"string","minLength":1,"maxLength":300},"body":{"type":"string","minLength":1,"maxLength":20000},"enabled":{"type":"boolean"},"whatsappBody":{"type":"string","maxLength":1024}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"kind":{"enum":["system","manual"],"type":"string"},"trigger":{"anyOf":[{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite"],"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"isDefault":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"whatsappBody":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappStatus":{"anyOf":[{"enum":["draft","pending","approved","rejected","paused","disabled"],"type":"string"},{"type":"null"}]},"whatsappRejection":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"whatsappTemplateName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","name","subject","body","kind","trigger","enabled","isDefault","updatedAt","whatsappBody","whatsappStatus","whatsappRejection","whatsappVersion","whatsappTemplateName"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/templates/{key}/reset":{"post":{"operationId":"templates.reset","summary":"Restore the built-in default","tags":["templates"],"parameters":[{"name":"key","in":"path","required":true,"schema":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"kind":{"enum":["system","manual"],"type":"string"},"trigger":{"anyOf":[{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite"],"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"isDefault":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"whatsappBody":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappStatus":{"anyOf":[{"enum":["draft","pending","approved","rejected","paused","disabled"],"type":"string"},{"type":"null"}]},"whatsappRejection":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"whatsappTemplateName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","name","subject","body","kind","trigger","enabled","isDefault","updatedAt","whatsappBody","whatsappStatus","whatsappRejection","whatsappVersion","whatsappTemplateName"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/inbox/counts":{"get":{"operationId":"inbox.counts","summary":"Thread counts per filter: needsReply / all / done (+ quarantine for admins)","tags":["inbox"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"needsReply":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"all":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"quarantine":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["needsReply","all","done","quarantine"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/inbox":{"get":{"operationId":"inbox.list","summary":"Threads across the workspace, most recent inbound first","description":"filter=needsReply (default) lists threads whose last message is from the candidate; all; done. Interviewers see assigned applications only.","tags":["inbox"],"parameters":[{"name":"filter","in":"query","schema":{"enum":["needsReply","all","done"],"type":"string"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"application":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"spam":{"type":"boolean"},"spamReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"screening":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","score","summary"]},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappOptInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","email","location","phoneE164","whatsappOptInAt","profile","linkedinUrl"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"}},"required":["id","publicId","title"]},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"interviewId":{"type":"string","format":"uuid"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","order","interviewId","status","startAt","createdAt"]},{"type":"null"}]}},"required":["id","publicId","stage","source","spam","spamReason","screening","appliedAt","candidate","job","round"]},"thread":{"type":"object","properties":{"needsReply":{"type":"boolean"},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastOutboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"doneAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"replyRoutingEnabled":{"type":"boolean"}},"required":["needsReply","lastInboundAt","lastOutboundAt","doneAt","owner","replyRoutingEnabled"]},"lastMessage":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"direction":{"enum":["out","in"],"type":"string"},"channel":{"enum":["email","whatsapp"],"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"preview":{"type":"string"},"at":{"type":"string","format":"date-time"}},"required":["id","direction","channel","subject","preview","at"]},"whatsappWindowUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["application","thread","lastMessage","whatsappWindowUntil"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/inbox/quarantine":{"get":{"operationId":"inbox.quarantine.list","summary":"Inbound mail that matched no application","tags":["inbox"],"parameters":[{"name":"includeResolved","in":"query","schema":{"type":"boolean"},"allowEmptyValue":true,"allowReserved":true},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"receivedAt":{"type":"string","format":"date-time"},"channel":{"enum":["email","whatsapp"],"type":"string"},"fromAddress":{"type":"string"},"toAddress":{"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"preview":{"type":"string"},"reason":{"enum":["no_match","ambiguous","application_deleted","auto_reply","bounce"],"type":"string"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"resolvedApplicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]}},"required":["id","receivedAt","channel","fromAddress","toAddress","subject","preview","reason","resolvedAt","resolvedApplicationId"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/inbox/quarantine/{id}/attach":{"post":{"operationId":"inbox.quarantine.attach","summary":"File a quarantined message into an application's thread","tags":["inbox"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":40}},"required":["ref"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"applicationId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"kind":{"enum":["confirmation","decision","manual","team","auto","interview"],"type":"string"},"channel":{"enum":["email","whatsapp"],"type":"string"},"direction":{"enum":["out","in"],"type":"string"},"status":{"enum":["queued","sending","sent","delivered","bounced","failed","skipped","cancelled","received","read"],"type":"string"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}]},"text":{"type":"string"},"from":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"address":{"type":"string"}},"required":["name","address"]},"to":{"type":"string"},"cc":{"type":"array","items":{"type":"string"}},"replyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"templateKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"sendAfter":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"deliveredAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"readAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"error":{"anyOf":[{"type":"string"},{"type":"null"}]},"delivery":{"anyOf":[{"type":"object","properties":{"status":{"type":"string"},"smtpStatusCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"pricingCategory":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","smtpStatusCode","reason","at","pricingCategory"]},{"type":"null"}]},"attachments":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","filename","type","size","url"]}},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"messageId":{"anyOf":[{"type":"string"},{"type":"null"}]},"inReplyTo":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","applicationId","kind","channel","direction","status","subject","text","from","to","cc","replyTo","templateKey","sendAfter","sentAt","deliveredAt","readAt","attempts","error","delivery","attachments","actor","messageId","inReplyTo","createdAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/inbox/quarantine/{id}":{"delete":{"operationId":"inbox.quarantine.discard","summary":"Discard a quarantined message","tags":["inbox"],"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"}},"required":["id"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/whatsapp":{"get":{"operationId":"whatsapp.status","summary":"The connected WhatsApp number, template review state, month-to-date counts","tags":["whatsapp"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"anyOf":[{"enum":["meta","log","memory"],"type":"string"},{"type":"null"}]},"connected":{"type":"boolean"},"channel":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"phoneNumberId":{"type":"string"},"wabaId":{"type":"string"},"messagingAccountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayPhone":{"anyOf":[{"type":"string"},{"type":"null"}]},"verifiedName":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"type":"string"},"tokenLast4":{"type":"string"},"health":{"anyOf":[{"type":"object","properties":{"status":{"enum":["ok","auth_failed","unknown"],"type":"string"},"checkedAt":{"type":"string","format":"date-time"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","checkedAt","lastError"]},{"type":"null"}]},"webhookUrl":{"type":"string"},"verifyToken":{"type":"string"},"templatesSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"connectedAt":{"type":"string","format":"date-time"}},"required":["id","phoneNumberId","wabaId","messagingAccountId","displayPhone","verifiedName","language","tokenLast4","health","webhookUrl","verifyToken","templatesSyncedAt","connectedAt"]},{"type":"null"}]},"templates":{"type":"object","properties":{"approved":{"type":"integer","minimum":0,"maximum":9007199254740991},"pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"draft":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["approved","pending","rejected","draft"]},"monthCounts":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["category","count"]}}},"required":["provider","connected","channel","templates","monthCounts"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"delete":{"operationId":"whatsapp.disconnect","summary":"Disconnect the WhatsApp number (queued WhatsApp messages are cancelled)","tags":["whatsapp"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"anyOf":[{"enum":["meta","log","memory"],"type":"string"},{"type":"null"}]},"connected":{"type":"boolean"},"channel":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"phoneNumberId":{"type":"string"},"wabaId":{"type":"string"},"messagingAccountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayPhone":{"anyOf":[{"type":"string"},{"type":"null"}]},"verifiedName":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"type":"string"},"tokenLast4":{"type":"string"},"health":{"anyOf":[{"type":"object","properties":{"status":{"enum":["ok","auth_failed","unknown"],"type":"string"},"checkedAt":{"type":"string","format":"date-time"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","checkedAt","lastError"]},{"type":"null"}]},"webhookUrl":{"type":"string"},"verifyToken":{"type":"string"},"templatesSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"connectedAt":{"type":"string","format":"date-time"}},"required":["id","phoneNumberId","wabaId","messagingAccountId","displayPhone","verifiedName","language","tokenLast4","health","webhookUrl","verifyToken","templatesSyncedAt","connectedAt"]},{"type":"null"}]},"templates":{"type":"object","properties":{"approved":{"type":"integer","minimum":0,"maximum":9007199254740991},"pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"draft":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["approved","pending","rejected","draft"]},"monthCounts":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["category","count"]}}},"required":["provider","connected","channel","templates","monthCounts"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/whatsapp/connect":{"post":{"operationId":"whatsapp.connect","summary":"Connect (or replace) the workspace's WhatsApp Business number","description":"Bring-your-own Meta Cloud API credentials: phone number id, WABA id, a permanent System User token and the app secret. The server verifies the number with Meta before storing anything; secrets are encrypted at rest and are not returned.","tags":["whatsapp"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phoneNumberId":{"type":"string","pattern":"^\\d{5,32}$"},"wabaId":{"type":"string","pattern":"^\\d{5,32}$"},"messagingAccountId":{"type":"string","pattern":"^\\d{5,32}$"},"accessToken":{"type":"string","minLength":20,"maxLength":4000},"appSecret":{"type":"string","minLength":16,"maxLength":200},"language":{"type":"string","pattern":"^[a-z]{2,3}(_[A-Z]{2})?$"}},"required":["phoneNumberId","wabaId","accessToken","appSecret"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"anyOf":[{"enum":["meta","log","memory"],"type":"string"},{"type":"null"}]},"connected":{"type":"boolean"},"channel":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"phoneNumberId":{"type":"string"},"wabaId":{"type":"string"},"messagingAccountId":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayPhone":{"anyOf":[{"type":"string"},{"type":"null"}]},"verifiedName":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"type":"string"},"tokenLast4":{"type":"string"},"health":{"anyOf":[{"type":"object","properties":{"status":{"enum":["ok","auth_failed","unknown"],"type":"string"},"checkedAt":{"type":"string","format":"date-time"},"lastError":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","checkedAt","lastError"]},{"type":"null"}]},"webhookUrl":{"type":"string"},"verifyToken":{"type":"string"},"templatesSyncedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"connectedAt":{"type":"string","format":"date-time"}},"required":["id","phoneNumberId","wabaId","messagingAccountId","displayPhone","verifiedName","language","tokenLast4","health","webhookUrl","verifyToken","templatesSyncedAt","connectedAt"]},{"type":"null"}]},"templates":{"type":"object","properties":{"approved":{"type":"integer","minimum":0,"maximum":9007199254740991},"pending":{"type":"integer","minimum":0,"maximum":9007199254740991},"rejected":{"type":"integer","minimum":0,"maximum":9007199254740991},"draft":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["approved","pending","rejected","draft"]},"monthCounts":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string"},"count":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["category","count"]}}},"required":["provider","connected","channel","templates","monthCounts"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/whatsapp/templates/sync":{"post":{"operationId":"whatsapp.syncTemplates","summary":"Submit changed WhatsApp template bodies to Meta and refresh review states","tags":["whatsapp"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite","interview_invite","offer","whatsapp.nudge"],"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"kind":{"enum":["system","manual"],"type":"string"},"trigger":{"anyOf":[{"enum":["application.received","application.rejected","interview.proposed","interview.confirmed","interview.rescheduled","interview.cancelled","interview.reminder","interviewer.invite","interviewer.reminder","referral.invite"],"type":"string"},{"type":"null"}]},"enabled":{"type":"boolean"},"isDefault":{"type":"boolean"},"updatedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"whatsappBody":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappStatus":{"anyOf":[{"enum":["draft","pending","approved","rejected","paused","disabled"],"type":"string"},{"type":"null"}]},"whatsappRejection":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"whatsappTemplateName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["key","name","subject","body","kind","trigger","enabled","isDefault","updatedAt","whatsappBody","whatsappStatus","whatsappRejection","whatsappVersion","whatsappTemplateName"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{ref}/whatsapp-consent":{"post":{"operationId":"whatsapp.consent","summary":"Record that the candidate agreed (or withdrew) WhatsApp contact","description":"Recruiter attestation. Granting needs a note saying how the candidate agreed; withdrawing cancels every queued WhatsApp message to them. Both are ledgered.","tags":["whatsapp"],"parameters":[{"name":"ref","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"granted":{"type":"boolean"},"note":{"type":"string","maxLength":500}},"required":["granted"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"stage":{"enum":["applied","screening","interview","offer","hired","rejected","withdrawn"],"type":"string"},"source":{"anyOf":[{"type":"string"},{"type":"null"}]},"spam":{"type":"boolean"},"spamReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"screening":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["status","score","summary"]},{"type":"null"}]},"appliedAt":{"type":"string","format":"date-time"},"candidate":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"email":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"whatsappOptInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"profile":{"anyOf":[{"type":"object","properties":{"headline":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"skills":{"type":"array","maxItems":20,"items":{"type":"string","minLength":1,"maxLength":40}},"experience":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":100},"company":{"type":"string","minLength":1,"maxLength":100},"location":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"current":{"type":"boolean"}},"required":["title","company","location","start","end","current"],"additionalProperties":false}},"education":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"school":{"type":"string","minLength":1,"maxLength":100},"degree":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"field":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]},"start":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]},"end":{"anyOf":[{"type":"string","pattern":"^\\d{4}(-(0[1-9]|1[0-2]))?$"},{"type":"null"}]}},"required":["school","degree","field","start","end"],"additionalProperties":false}},"extractedAt":{"type":"string","format":"date-time"}},"required":["headline","skills","experience","education","extractedAt"]},{"type":"null"}]},"linkedinUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"githubUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"resumeKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"resumePageCount":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"whatsapp":{"type":"object","properties":{"phoneE164":{"anyOf":[{"type":"string"},{"type":"null"}]},"optInAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"optOutAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"source":{"anyOf":[{"enum":["apply_form","recruiter","inbound"],"type":"string"},{"type":"null"}]},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"unreachableAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"windowOpen":{"type":"boolean"},"windowUntil":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"sendable":{"type":"boolean"},"blockedReason":{"anyOf":[{"enum":["not_connected","no_phone","not_opted_in","opted_out","unreachable"],"type":"string"},{"type":"null"}]}},"required":["phoneE164","optInAt","optOutAt","source","lastInboundAt","unreachableAt","windowOpen","windowUntil","sendable","blockedReason"]}},"required":["id","name","email","location","phoneE164","whatsappOptInAt","profile","linkedinUrl","phone","githubUrl","resumeKey","resumePageCount","whatsapp"]},"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"form":{"anyOf":[{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]},{"type":"null"}]}},"required":["id","publicId","title","form"]},"round":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string"},"order":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},{"type":"null"}]},"interviewId":{"type":"string","format":"uuid"},"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","order","interviewId","status","startAt","createdAt"]},{"type":"null"}]},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}]},"screeningDetail":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","scored","skipped","failed"],"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"reasons":{"anyOf":[{"type":"object","properties":{"strengths":{"type":"array","items":{"type":"string"}},"concerns":{"type":"array","items":{"type":"string"}}},"required":["strengths","concerns"]},{"type":"null"}]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"read":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"summary":{"type":"string"},"confidence":{"enum":["strong","moderate","thin"],"type":"string"},"coverage":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"requirement":{"type":"string"},"verdict":{"enum":["met","partial","unclear","not_met"],"type":"string"},"note":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["requirement","verdict","note","evidence"]}},"uncoveredRequirements":{"type":"integer","minimum":0,"maximum":9007199254740991},"findings":{"type":"array","maxItems":8,"items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"enum":["strength","concern","question","flag"],"type":"string"},"title":{"type":"string","maxLength":80},"detail":{"type":"string","maxLength":240},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}},"action":{"anyOf":[{"type":"object","properties":{"type":{"enum":["ask_candidate","probe_round"],"type":"string"},"draft":{"type":"string","maxLength":400},"roundId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["type","draft","roundId"]},{"type":"null"}]}},"required":["id","kind","title","detail","evidence","action"]}},"checks":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"kind":{"enum":["date_overlap","employment_gap","contradiction","templated_answer","other"],"type":"string"},"detail":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["kind","detail","evidence"]}},"changes":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"summary":{"type":"string","maxLength":200},"evidence":{"type":"array","maxItems":3,"items":{"type":"object","properties":{"source":{"enum":["answer","resume","cover_letter"],"type":"string"},"ref":{"anyOf":[{"type":"string"},{"type":"null"}]},"quote":{"type":"string","maxLength":240},"verified":{"type":"boolean"}},"required":["source","ref","quote","verified"]}}},"required":["summary","evidence"]}},"transitions":{"type":"array","items":{"type":"object","properties":{"requirement":{"type":"string"},"from":{"enum":["met","partial","unclear","not_met"],"type":"string"},"to":{"enum":["met","partial","unclear","not_met"],"type":"string"}},"required":["requirement","from","to"]}},"resumeUnverifiable":{"type":"boolean"},"model":{"type":"string"},"rubricVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"readAt":{"type":"string","format":"date-time"},"trigger":{"enum":["apply","manual","scorecard","reply","outcome","resume_replaced"],"type":"string"}},"required":["score","summary","confidence","coverage","uncoveredRequirements","findings","checks","changes","transitions","resumeUnverifiable","model","rubricVersion","readAt","trigger"]},{"type":"null"}]},"pool":{"anyOf":[{"type":"object","properties":{"rank":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"of":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"exclusiveMinimum":0},"band":{"enum":["top_quarter","upper_half","lower_half","bottom_quarter"],"type":"string"}},"required":["rank","of","band"]},{"type":"null"}]},"previousRead":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"createdAt":{"type":"string","format":"date-time"},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","createdAt","score"]},{"type":"null"}]}},"required":["status","score","summary","reasons","attempts","read","pool","previousRead"]},{"type":"null"}]},"prepProbes":{"type":"array","items":{"type":"object","properties":{"roundId":{"type":"string"},"text":{"type":"string"},"findingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"addedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"addedAt":{"type":"string","format":"date-time"}},"required":["roundId","text","findingId","addedBy","addedAt"]}},"answers":{"anyOf":[{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},{"type":"null"}]},"thread":{"type":"object","properties":{"needsReply":{"type":"boolean"},"lastInboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"lastOutboundAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"doneAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"replyRoutingEnabled":{"type":"boolean"}},"required":["needsReply","lastInboundAt","lastOutboundAt","doneAt","owner","replyRoutingEnabled"]},"referrerName":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","publicId","stage","source","spam","spamReason","screening","appliedAt","candidate","job","round","coverLetter","screeningDetail","prepProbes","answers","thread","referrerName"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/keys":{"get":{"operationId":"keys.list","summary":"The workspace's API keys","tags":["keys"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"start":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","name","start","createdAt","lastUsedAt","expiresAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"post":{"operationId":"keys.create","summary":"Create an API key; the secret is shown once","tags":["keys"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"expiresInDays":{"type":"integer","minimum":1,"maximum":365}},"required":["name"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"start":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"},"lastUsedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"expiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"key":{"type":"string"}},"required":["id","name","start","createdAt","lastUsedAt","expiresAt","key"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/keys/{id}":{"delete":{"operationId":"keys.revoke","summary":"Revoke an API key","tags":["keys"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128}},"required":["id"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/referrals":{"post":{"operationId":"referrals.create","summary":"Refer someone and send them a single-use invite link","description":"One invite per address per workspace per 30 days. No invite is sent to an address that has declined. Naming a job requires it to be published; omit it for \"any open role\". A résumé must already be uploaded through `uploads.resume` with folder `referrals`.","tags":["referrals"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"email":{"type":"string","maxLength":320,"format":"email"},"jobPublicId":{"type":"string","minLength":1,"maxLength":16},"note":{"type":"string","maxLength":500},"resumeKey":{"type":"string","maxLength":500}},"required":["name","email"]}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"enum":["invited","applied","declined","expired"],"type":"string"},"candidateName":{"type":"string"},"candidateEmail":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrerName":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrerUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasResume":{"type":"boolean"},"invitedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"inviteSentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"appliedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"applicationPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","candidateName","candidateEmail","note","jobPublicId","jobTitle","referrerName","referrerUserId","hasResume","invitedAt","expiresAt","inviteSentAt","appliedAt","declinedAt","applicationPublicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}},"get":{"operationId":"referrals.list","summary":"Referrals you made, newest first (scope=all for the workspace)","tags":["referrals"],"parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200},"allowEmptyValue":true,"allowReserved":true},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":200},"allowEmptyValue":true,"allowReserved":true},{"name":"scope","in":"query","schema":{"enum":["mine","all"],"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"enum":["invited","applied","declined","expired"],"type":"string"},"candidateName":{"type":"string"},"candidateEmail":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrerName":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrerUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasResume":{"type":"boolean"},"invitedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"inviteSentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"appliedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"applicationPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","candidateName","candidateEmail","note","jobPublicId","jobTitle","referrerName","referrerUserId","hasResume","invitedAt","expiresAt","inviteSentAt","appliedAt","declinedAt","applicationPublicId"]}},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","nextCursor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/referrals/{id}":{"get":{"operationId":"referrals.get","summary":"One referral","tags":["referrals"],"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"},"status":{"enum":["invited","applied","declined","expired"],"type":"string"},"candidateName":{"type":"string"},"candidateEmail":{"type":"string"},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"jobTitle":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrerName":{"anyOf":[{"type":"string"},{"type":"null"}]},"referrerUserId":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasResume":{"type":"boolean"},"invitedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"},"inviteSentAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"appliedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"declinedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"applicationPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","status","candidateName","candidateEmail","note","jobPublicId","jobTitle","referrerName","referrerUserId","hasResume","invitedAt","expiresAt","inviteSentAt","appliedAt","declinedAt","applicationPublicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/uploads/resume":{"post":{"operationId":"uploads.resume","summary":"Upload a résumé ahead of a manual add or a referral (multipart)","description":"`folder` decides which folder the key lands in and which permission is required: `manual` (the default) needs `applications:write`, `referrals` needs `referrals:create`. A key uploaded to the wrong folder is rejected when used.","tags":["uploads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"},"folder":{"enum":["manual","referrals"],"type":"string"}},"required":["file"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"},"folder":{"enum":["manual","referrals"],"type":"string"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"}},"required":["key"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/uploads/attachment":{"post":{"operationId":"uploads.attachment","summary":"Upload a file to attach to an outbound message (multipart, ≤ 3.5 MB)","tags":["uploads"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"}},"required":["file"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","maxLength":512,"pattern":"^[A-Za-z0-9._-]+(?:\\/[A-Za-z0-9._-]+)*$"},"filename":{"type":"string"},"type":{"type":"string"},"size":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["key","filename","type","size"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}":{"get":{"operationId":"public.org","summary":"Careers page header: workspace name, logo, blurb, accent","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slug":{"type":"string"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"about":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","name","slug","logoUrl","about","brandColor"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}/jobs":{"get":{"operationId":"public.jobs","summary":"Published jobs","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"department":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"employmentType":{"enum":["full_time","part_time","contract","internship"],"type":"string"},"shortDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["id","publicId","title","department","location","employmentType","shortDescription","publishedAt"]}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}/jobs/{jobPublicId}":{"get":{"operationId":"public.job","summary":"One published job with its application form","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}},{"name":"jobPublicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"publicId":{"type":"string"},"title":{"type":"string"},"department":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"employmentType":{"enum":["full_time","part_time","contract","internship"],"type":"string"},"shortDescription":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"requirements":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"compensation":{"anyOf":[{"type":"string"},{"type":"null"}]},"form":{"type":"object","properties":{"fields":{"type":"array","maxItems":32,"items":{"type":"object","properties":{"key":{"enum":["name","email","phone","location","linkedin_url","github_url","portfolio_url","work_authorization","salary_expectation","notice_period","resume","cover_letter"],"type":"string"},"kind":{"enum":["text","email","tel","url","file","select","long_text"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["key","kind","required"]}},"questions":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"label":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["short_text","long_text","single_select","multi_select","boolean","number"],"type":"string"},"required":{"type":"boolean"},"options":{"type":"array","maxItems":50,"items":{"type":"string","minLength":1,"maxLength":200}}},"required":["id","label","kind"]}}},"required":["fields","questions"]},"whatsappAvailable":{"type":"boolean"}},"required":["id","publicId","title","department","location","employmentType","shortDescription","publishedAt","description","requirements","compensation","form","whatsappAvailable"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}/jobs/{jobPublicId}/apply":{"post":{"operationId":"public.apply","summary":"Submit an application (multipart). No credential required","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}},{"name":"jobPublicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"turnstileToken":{"type":"string","maxLength":4000},"via":{"type":"string","maxLength":128},"ref":{"type":"string","maxLength":128},"src":{"type":"string","maxLength":80},"resume":{"type":"string","contentMediaType":"*/*"},"resumeKey":{"type":"string","maxLength":1024}},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"array","maxItems":64,"items":{"type":"string","maxLength":10000}}]}}},"multipart/form-data":{"schema":{"type":"object","properties":{"turnstileToken":{"type":"string","maxLength":4000},"via":{"type":"string","maxLength":128},"ref":{"type":"string","maxLength":128},"src":{"type":"string","maxLength":80},"resume":{"type":"string","contentMediaType":"*/*"},"resumeKey":{"type":"string","maxLength":1024}},"additionalProperties":{"anyOf":[{"type":"string","maxLength":10000},{"type":"array","maxItems":64,"items":{"type":"string","maxLength":10000}}]}}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","format":"uuid"},"publicId":{"type":"string"}},"required":["applicationId","publicId"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}/jobs/{jobPublicId}/resume":{"post":{"operationId":"public.stageResume","summary":"Stage a résumé before applying (multipart) and read its header","description":"Returns the storage key to send back as `apply`'s `resumeKey`, plus the contact fields a regex pass found in the first 4,000 characters of the file. The suggestion is advisory. No model runs and nothing is stored against a person. An unclaimed upload is deleted an hour later.","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}},{"name":"jobPublicId","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":16}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"}},"required":["file"]}},"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","contentMediaType":"*/*"}},"required":["file"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string","maxLength":1024},"suggested":{"type":"object","properties":{"name":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"linkedin_url":{"type":"string"},"github_url":{"type":"string"},"portfolio_url":{"type":"string"}}}},"required":["key","suggested"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}/referrals/{token}":{"get":{"operationId":"public.referral.get","summary":"Who this invitation is for, and for which role","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}},{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"orgSlug":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"jobPublicId":{"anyOf":[{"type":"string"},{"type":"null"}]},"hasResume":{"type":"boolean"},"referrerFirstName":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time"}},"required":["id","orgSlug","name","email","jobPublicId","hasResume","referrerFirstName","expiresAt"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/{orgSlug}/referrals/{token}/decline":{"post":{"operationId":"public.referral.decline","summary":"Decline a referral invitation and stop further invites to that address","tags":["public"],"parameters":[{"name":"orgSlug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":50}},{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"declined"}},"required":["status"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/interviews/{token}":{"get":{"operationId":"public.interview.get","summary":"What the candidate may see for this interview","tags":["public"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"org":{"type":"object","properties":{"name":{"type":"string"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","logoUrl","brandColor"]},"job":{"type":"object","properties":{"title":{"type":"string"}},"required":["title"]},"candidate":{"type":"object","properties":{"firstName":{"type":"string"}},"required":["firstName"]},"round":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interviewerFirstNames":{"type":"array","items":{"type":"string"}},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"canRequestChange":{"type":"boolean"}},"required":["status","org","job","candidate","round","format","durationMinutes","interviewerFirstNames","proposedSlots","proposalExpiresAt","startAt","endAt","meetingLink","location","timezone","candidateTimezone","canRequestChange"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/interviews/{token}/pick":{"post":{"operationId":"public.interview.pick","summary":"Pick one of the proposed times (idempotent)","tags":["public"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"slotIndex":{"type":"integer","minimum":0,"maximum":5},"timezone":{"type":"string"}},"required":["slotIndex","timezone"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"org":{"type":"object","properties":{"name":{"type":"string"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","logoUrl","brandColor"]},"job":{"type":"object","properties":{"title":{"type":"string"}},"required":["title"]},"candidate":{"type":"object","properties":{"firstName":{"type":"string"}},"required":["firstName"]},"round":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interviewerFirstNames":{"type":"array","items":{"type":"string"}},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"canRequestChange":{"type":"boolean"}},"required":["status","org","job","candidate","round","format","durationMinutes","interviewerFirstNames","proposedSlots","proposalExpiresAt","startAt","endAt","meetingLink","location","timezone","candidateTimezone","canRequestChange"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/public/interviews/{token}/decline":{"post":{"operationId":"public.interview.decline","summary":"Decline the proposed times or ask for a change; it lands in the application's thread","tags":["public"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":20,"maxLength":64}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","minLength":1,"maxLength":2000},"timezone":{"type":"string"}},"required":["note"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["proposed","booked","completed","no_show","cancelled","expired"],"type":"string"},"org":{"type":"object","properties":{"name":{"type":"string"},"logoUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"brandColor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name","logoUrl","brandColor"]},"job":{"type":"object","properties":{"title":{"type":"string"}},"required":["title"]},"candidate":{"type":"object","properties":{"firstName":{"type":"string"}},"required":["firstName"]},"round":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"format":{"enum":["video","phone","onsite","other"],"type":"string"},"durationMinutes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interviewerFirstNames":{"type":"array","items":{"type":"string"}},"proposedSlots":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"}},"required":["start","end"]}},"proposalExpiresAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"startAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"endAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"meetingLink":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"type":"string"},"candidateTimezone":{"anyOf":[{"type":"string"},{"type":"null"}]},"canRequestChange":{"type":"boolean"}},"required":["status","org","job","candidate","round","format","durationMinutes","interviewerFirstNames","proposedSlots","proposalExpiresAt","startAt","endAt","meetingLink","location","timezone","candidateTimezone","canRequestChange"]}}}},"401":{"description":"401","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UNAUTHORIZED"},"status":{"const":401},"message":{"type":"string","default":"Sign in or provide an API key"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PERMISSION_DENIED"},"status":{"const":403},"message":{"type":"string","default":"You don't have access to do that"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"NOT_FOUND"},"status":{"const":404},"message":{"type":"string","default":"Not found"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"That conflicts with the current state"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"422":{"description":"422","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"VALIDATION"},"status":{"const":422},"message":{"type":"string","default":"Invalid input"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"426":{"description":"426","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"UPGRADE_REQUIRED"},"status":{"const":426},"message":{"type":"string","default":"This client is too old for the server — upgrade the CLI"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"429":{"description":"429","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RATE_LIMITED"},"status":{"const":429},"message":{"type":"string","default":"Rate limit exceeded"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"500":{"description":"500","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INTERNAL"},"status":{"const":500},"message":{"type":"string","default":"Something went wrong"},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}}}}