{"info":{"title":"HireSweep","version":"5.1.8","description":"HireSweep API","contact":{"name":"HireSweep","email":"support@hiresweep.com","url":"https://hiresweep.com"}},"servers":[{"url":"https://app.hiresweep.com/api/openapi"}],"externalDocs":{"url":"https://docs.hiresweep.com","description":"HireSweep Documentation"},"components":{"securitySchemes":{"apiKey":{"type":"apiKey","name":"x-api-key","in":"header","description":"The API key to authenticate requests."}},"schemas":{"ResumeData":{"type":"object","properties":{"picture":{"type":"object","properties":{"hidden":{"type":"boolean","description":"Whether to hide the picture from the resume."},"url":{"type":"string","description":"The URL to the picture to display on the resume. Prefer local app-served paths (for example /uploads/...) populated via upload."},"size":{"type":"number","minimum":32,"maximum":512,"description":"The size of the picture to display on the resume, defined in points (pt)."},"rotation":{"type":"number","minimum":0,"maximum":360,"description":"The rotation of the picture to display on the resume, defined in degrees (°)."},"aspectRatio":{"type":"number","minimum":0.5,"maximum":2.5,"description":"The aspect ratio of the picture to display on the resume, defined as width / height (e.g. 1.5 for 1.5:1 or 0.5 for 1:2)."},"borderRadius":{"type":"number","minimum":0,"maximum":100,"description":"The border radius of the picture to display on the resume, defined in points (pt)."},"borderColor":{"type":"string","description":"The color of the border of the picture to display on the resume, defined as rgba(r, g, b, a)."},"borderWidth":{"type":"number","minimum":0,"description":"The width of the border of the picture to display on the resume, defined in points (pt)."},"shadowColor":{"type":"string","description":"The color of the shadow of the picture to display on the resume, defined as rgba(r, g, b, a)."},"shadowWidth":{"type":"number","minimum":0,"description":"The width of the shadow of the picture to display on the resume, defined in points (pt)."}},"required":["hidden","url","size","rotation","aspectRatio","borderRadius","borderColor","borderWidth","shadowColor","shadowWidth"],"description":"Configuration for photograph displayed on the resume"},"basics":{"type":"object","properties":{"name":{"type":"string","description":"The full name of the author of the resume."},"headline":{"type":"string","description":"The headline of the author of the resume."},"email":{"type":"string","description":"The email address of the author of the resume."},"phone":{"type":"string","description":"The phone number of the author of the resume."},"location":{"type":"string","description":"The location of the author of the resume."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."}},"required":["url","label"],"description":"The website of the author of the resume."},"customFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the custom field. Usually generated as a UUID."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"text":{"type":"string","description":"The text to display for the custom field."},"link":{"type":"string","description":"If the custom field should be a link, the URL to link to."}},"required":["id","icon","text","link"]},"description":"The custom fields to display on the resume."}},"required":["name","headline","email","phone","location","website","customFields"],"description":"Basic information about the author, such as name, email, phone, location, and website"},"summary":{"type":"object","properties":{"title":{"type":"string","description":"The title of the summary of the resume."},"icon":{"type":"string","description":"Phosphor icon name to display before the summary section title in the PDF output. Empty string uses the default summary icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the summary should span across."},"hidden":{"type":"boolean","description":"Whether to hide the summary from the resume."},"content":{"type":"string","description":"The content of the summary of the resume. This should be a HTML-formatted string."}},"required":["title","icon","columns","hidden","content"],"description":"Summary section of the resume, useful for a short bio or introduction"},"sections":{"type":"object","properties":{"profiles":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"iconColor":{"type":"string","description":"Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."},"network":{"type":"string","minLength":1,"description":"The name of the network or platform."},"username":{"type":"string","description":"The username of the author on the network or platform."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the profile of the author on the network or platform, if any."}},"required":["id","hidden","icon","iconColor","network","username","website"]},"description":"The items to display in the profiles section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the profiles of the author."},"experience":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"company":{"type":"string","minLength":1,"description":"The name of the company or organization."},"position":{"type":"string","description":"The position held at the company or organization. Used when there is only a single role. If multiple roles are provided in the 'roles' field, this serves as a summary title or can be left blank."},"location":{"type":"string","description":"The location of the company or organization."},"period":{"type":"string","description":"The overall period of time at the company. When multiple roles are used, this should reflect the total tenure."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the company or organization, if any."},"description":{"type":"string","description":"The description of the experience. This should be a HTML-formatted string."},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the role. Usually generated as a UUID."},"position":{"type":"string","description":"The position or job title for this role."},"period":{"type":"string","description":"The period of time this role was held."},"description":{"type":"string","description":"The description of this specific role. This should be a HTML-formatted string."}},"required":["id","position","period","description"]},"description":"List of individual roles held at this company to show career progression."}},"required":["id","hidden","company","position","location","period","website","description","roles"]},"description":"The items to display in the experience section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the experience of the author."},"education":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"school":{"type":"string","minLength":1,"description":"The name of the school or institution."},"degree":{"type":"string","description":"The degree or qualification obtained."},"area":{"type":"string","description":"The area of study or specialization."},"grade":{"type":"string","description":"The grade or score achieved."},"location":{"type":"string","description":"The location of the school or institution."},"period":{"type":"string","description":"The period of time the education was obtained over."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the school or institution, if any."},"description":{"type":"string","description":"The description of the education. This should be a HTML-formatted string."}},"required":["id","hidden","school","degree","area","grade","location","period","website","description"]},"description":"The items to display in the education section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the education of the author."},"projects":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"name":{"type":"string","minLength":1,"description":"The name of the project."},"period":{"type":"string","description":"The period of time the project was worked on."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the project, if any."},"description":{"type":"string","description":"The description of the project. This should be a HTML-formatted string."}},"required":["id","hidden","name","period","website","description"]},"description":"The items to display in the projects section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the projects of the author."},"skills":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"iconColor":{"type":"string","description":"Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."},"name":{"type":"string","minLength":1,"description":"The name of the skill."},"proficiency":{"type":"string","description":"The proficiency level of the skill. Can be any text, such as 'Beginner', 'Intermediate', 'Advanced', etc."},"level":{"type":"number","minimum":0,"maximum":5,"description":"The proficiency level of the skill, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."},"keywords":{"type":"array","items":{"type":"string"},"description":"The keywords associated with the skill, if any. These are displayed as tags below the name."}},"required":["id","hidden","icon","iconColor","name","proficiency","level","keywords"]},"description":"The items to display in the skills section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the skills of the author."},"languages":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"language":{"type":"string","minLength":1,"description":"The name of the language the author knows."},"fluency":{"type":"string","description":"The fluency level of the language. Can be any text, such as 'Native', 'Fluent', 'Conversational', etc. or can also be a CEFR level (A1, A2, B1, B2, C1, C2)."},"level":{"type":"number","minimum":0,"maximum":5,"description":"The proficiency level of the language, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."}},"required":["id","hidden","language","fluency","level"]},"description":"The items to display in the languages section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the languages of the author."},"interests":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"iconColor":{"type":"string","description":"Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."},"name":{"type":"string","minLength":1,"description":"The name of the interest/hobby."},"keywords":{"type":"array","items":{"type":"string"},"description":"The keywords associated with the interest/hobby, if any. These are displayed as tags below the name."}},"required":["id","hidden","icon","iconColor","name","keywords"]},"description":"The items to display in the interests section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the interests of the author."},"awards":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"title":{"type":"string","minLength":1,"description":"The title of the award."},"awarder":{"type":"string","description":"The awarder of the award."},"date":{"type":"string","description":"The date when the award was received."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the award, if any."},"description":{"type":"string","description":"The description of the award. This should be a HTML-formatted string."}},"required":["id","hidden","title","awarder","date","website","description"]},"description":"The items to display in the awards section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the awards of the author."},"certifications":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"title":{"type":"string","minLength":1,"description":"The title of the certification."},"issuer":{"type":"string","description":"The issuer of the certification."},"date":{"type":"string","description":"The date when the certification was received."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the certification, if any."},"description":{"type":"string","description":"The description of the certification. This should be a HTML-formatted string."}},"required":["id","hidden","title","issuer","date","website","description"]},"description":"The items to display in the certifications section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the certifications of the author."},"publications":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"title":{"type":"string","minLength":1,"description":"The title of the publication."},"publisher":{"type":"string","description":"The publisher of the publication."},"date":{"type":"string","description":"The date when the publication was published."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the publication, if any."},"description":{"type":"string","description":"The description of the publication. This should be a HTML-formatted string."}},"required":["id","hidden","title","publisher","date","website","description"]},"description":"The items to display in the publications section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the publications of the author."},"volunteer":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"organization":{"type":"string","minLength":1,"description":"The name of the organization or company."},"location":{"type":"string","description":"The location of the organization or company."},"period":{"type":"string","description":"The period of time the author was volunteered at the organization or company."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the organization or company, if any."},"description":{"type":"string","description":"The description of the volunteer experience. This should be a HTML-formatted string."}},"required":["id","hidden","organization","location","period","website","description"]},"description":"The items to display in the volunteer section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the volunteer experience of the author."},"references":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"name":{"type":"string","minLength":1,"description":"The name of the reference, or a note such as 'Available upon request'."},"position":{"type":"string","description":"The position or job title of the reference."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website or LinkedIn profile of the reference, if any."},"phone":{"type":"string","description":"The phone number of the reference."},"description":{"type":"string","description":"The description of the reference. Can be used to display a quote, a testimonial, etc. This should be a HTML-formatted string."}},"required":["id","hidden","name","position","website","phone","description"]},"description":"The items to display in the references section."}},"required":["title","icon","columns","hidden","items"],"description":"The section to display the references of the author."}},"required":["profiles","experience","education","projects","skills","languages","interests","awards","certifications","publications","volunteer","references"],"description":"Various sections of the resume, such as experience, education, projects, etc."},"customSections":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"The title of the section."},"icon":{"type":"string","description":"Phosphor icon name to display before the section title in the PDF output. Empty string uses the default section icon; 'none' hides the icon."},"columns":{"type":"integer","minimum":1,"maximum":6,"description":"The number of columns the section should span across."},"hidden":{"type":"boolean","description":"Whether to hide the section from the resume."},"id":{"type":"string","description":"The unique identifier for the custom section. Usually generated as a UUID."},"type":{"enum":["summary","profiles","experience","education","projects","skills","languages","interests","awards","certifications","publications","volunteer","references","cover-letter"],"type":"string","description":"The type of items this custom section contains. Determines which item schema and form fields to use."},"items":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"recipient":{"type":"string","description":"The recipient's address block as HTML (name, title, company, address, email)."},"content":{"type":"string","description":"The cover letter body as HTML (salutation, paragraphs, closing, signature)."}},"required":["id","hidden","recipient","content"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"content":{"type":"string","description":"The rich text content of the summary item. This should be a HTML-formatted string."}},"required":["id","hidden","content"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"iconColor":{"type":"string","description":"Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."},"network":{"type":"string","minLength":1,"description":"The name of the network or platform."},"username":{"type":"string","description":"The username of the author on the network or platform."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the profile of the author on the network or platform, if any."}},"required":["id","hidden","icon","iconColor","network","username","website"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"company":{"type":"string","minLength":1,"description":"The name of the company or organization."},"position":{"type":"string","description":"The position held at the company or organization. Used when there is only a single role. If multiple roles are provided in the 'roles' field, this serves as a summary title or can be left blank."},"location":{"type":"string","description":"The location of the company or organization."},"period":{"type":"string","description":"The overall period of time at the company. When multiple roles are used, this should reflect the total tenure."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the company or organization, if any."},"description":{"type":"string","description":"The description of the experience. This should be a HTML-formatted string."},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the role. Usually generated as a UUID."},"position":{"type":"string","description":"The position or job title for this role."},"period":{"type":"string","description":"The period of time this role was held."},"description":{"type":"string","description":"The description of this specific role. This should be a HTML-formatted string."}},"required":["id","position","period","description"]},"description":"List of individual roles held at this company to show career progression."}},"required":["id","hidden","company","position","location","period","website","description","roles"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"school":{"type":"string","minLength":1,"description":"The name of the school or institution."},"degree":{"type":"string","description":"The degree or qualification obtained."},"area":{"type":"string","description":"The area of study or specialization."},"grade":{"type":"string","description":"The grade or score achieved."},"location":{"type":"string","description":"The location of the school or institution."},"period":{"type":"string","description":"The period of time the education was obtained over."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the school or institution, if any."},"description":{"type":"string","description":"The description of the education. This should be a HTML-formatted string."}},"required":["id","hidden","school","degree","area","grade","location","period","website","description"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"name":{"type":"string","minLength":1,"description":"The name of the project."},"period":{"type":"string","description":"The period of time the project was worked on."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the project, if any."},"description":{"type":"string","description":"The description of the project. This should be a HTML-formatted string."}},"required":["id","hidden","name","period","website","description"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"iconColor":{"type":"string","description":"Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."},"name":{"type":"string","minLength":1,"description":"The name of the skill."},"proficiency":{"type":"string","description":"The proficiency level of the skill. Can be any text, such as 'Beginner', 'Intermediate', 'Advanced', etc."},"level":{"type":"number","minimum":0,"maximum":5,"description":"The proficiency level of the skill, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."},"keywords":{"type":"array","items":{"type":"string"},"description":"The keywords associated with the skill, if any. These are displayed as tags below the name."}},"required":["id","hidden","icon","iconColor","name","proficiency","level","keywords"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"language":{"type":"string","minLength":1,"description":"The name of the language the author knows."},"fluency":{"type":"string","description":"The fluency level of the language. Can be any text, such as 'Native', 'Fluent', 'Conversational', etc. or can also be a CEFR level (A1, A2, B1, B2, C1, C2)."},"level":{"type":"number","minimum":0,"maximum":5,"description":"The proficiency level of the language, defined as a number between 0 and 5. If set to 0, the icons displaying the level will be hidden."}},"required":["id","hidden","language","fluency","level"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"iconColor":{"type":"string","description":"Custom color for the icon, defined as rgba(r, g, b, a). Leave blank to use the template default icon color."},"name":{"type":"string","minLength":1,"description":"The name of the interest/hobby."},"keywords":{"type":"array","items":{"type":"string"},"description":"The keywords associated with the interest/hobby, if any. These are displayed as tags below the name."}},"required":["id","hidden","icon","iconColor","name","keywords"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"title":{"type":"string","minLength":1,"description":"The title of the award."},"awarder":{"type":"string","description":"The awarder of the award."},"date":{"type":"string","description":"The date when the award was received."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the award, if any."},"description":{"type":"string","description":"The description of the award. This should be a HTML-formatted string."}},"required":["id","hidden","title","awarder","date","website","description"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"title":{"type":"string","minLength":1,"description":"The title of the certification."},"issuer":{"type":"string","description":"The issuer of the certification."},"date":{"type":"string","description":"The date when the certification was received."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website of the certification, if any."},"description":{"type":"string","description":"The description of the certification. This should be a HTML-formatted string."}},"required":["id","hidden","title","issuer","date","website","description"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"title":{"type":"string","minLength":1,"description":"The title of the publication."},"publisher":{"type":"string","description":"The publisher of the publication."},"date":{"type":"string","description":"The date when the publication was published."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the publication, if any."},"description":{"type":"string","description":"The description of the publication. This should be a HTML-formatted string."}},"required":["id","hidden","title","publisher","date","website","description"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"organization":{"type":"string","minLength":1,"description":"The name of the organization or company."},"location":{"type":"string","description":"The location of the organization or company."},"period":{"type":"string","description":"The period of time the author was volunteered at the organization or company."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The link to the organization or company, if any."},"description":{"type":"string","description":"The description of the volunteer experience. This should be a HTML-formatted string."}},"required":["id","hidden","organization","location","period","website","description"]},{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier for the item. Usually generated as a UUID."},"hidden":{"type":"boolean","description":"Whether to hide the item from the resume."},"name":{"type":"string","minLength":1,"description":"The name of the reference, or a note such as 'Available upon request'."},"position":{"type":"string","description":"The position or job title of the reference."},"website":{"type":"object","properties":{"url":{"type":"string","description":"The URL to show as a link. Must be a valid URL with a protocol (http:// or https://)."},"label":{"type":"string","description":"The label to display for the URL. Leave blank to display the URL as-is."},"inlineLink":{"type":"boolean","description":"If true, the website URL is rendered as a hyperlink on the title instead of a separate link at the bottom."}},"required":["url","label","inlineLink"],"description":"The website or LinkedIn profile of the reference, if any."},"phone":{"type":"string","description":"The phone number of the reference."},"description":{"type":"string","description":"The description of the reference. Can be used to display a quote, a testimonial, etc. This should be a HTML-formatted string."}},"required":["id","hidden","name","position","website","phone","description"]}]},"description":"The items to display in the custom section. Items follow the schema of the section type."}},"required":["title","icon","columns","hidden","id","type","items"]},"description":"Custom sections of the resume, such as a custom section for notes, etc."},"metadata":{"type":"object","properties":{"template":{"enum":["slate","azurill","bronzor","chikorita","ditgar","ditto","gengar","glalie","kakuna","lapras","leafish","meowth","onyx","pikachu","rhyhorn","scizor"],"type":"string","description":"The template to use for the resume. Determines the overall design and appearance of the resume."},"layout":{"type":"object","properties":{"sidebarWidth":{"type":"number","minimum":10,"maximum":50,"description":"The width of the sidebar column, defined as a percentage of the page width."},"pages":{"type":"array","items":{"type":"object","properties":{"fullWidth":{"type":"boolean","description":"Whether the layout of the page should be full width. If true, the main column will span the entire width of the page. This means that there should be no items in the sidebar column."},"main":{"type":"array","items":{"type":"string"},"description":"The items to display in the main column of the page. A string array of section IDs (experience, education, projects, skills, languages, interests, awards, certifications, publications, volunteer, references, profiles, summary or UUIDs for custom sections)."},"sidebar":{"type":"array","items":{"type":"string"},"description":"The items to display in the sidebar column of the page. A string array of section IDs (experience, education, projects, skills, languages, interests, awards, certifications, publications, volunteer, references, profiles, summary or UUIDs for custom sections)."}},"required":["fullWidth","main","sidebar"]},"description":"The pages to display in the layout."}},"required":["sidebarWidth","pages"],"description":"The layout of the resume. Determines the structure and arrangement of the sections on the resume."},"page":{"type":"object","properties":{"gapX":{"type":"number","minimum":0,"description":"The horizontal gap between the sections of the page, defined in points (pt)."},"gapY":{"type":"number","minimum":0,"description":"The vertical gap between the sections of the page, defined in points (pt)."},"marginX":{"type":"number","minimum":0,"description":"The horizontal margin of the page, defined in points (pt)."},"marginY":{"type":"number","minimum":0,"description":"The vertical margin of the page, defined in points (pt)."},"format":{"enum":["a4","letter","free-form"],"type":"string","description":"The format of the page. Can be 'a4', 'letter', or 'free-form'."},"locale":{"type":"string","description":"The locale of the page. Used for displaying pre-translated section headings, if not overridden."},"hideLinkUnderline":{"type":"boolean","description":"Whether to hide the underlines of the links."},"hideIcons":{"type":"boolean","description":"Whether to hide the item-level icons (skills, profiles, interests)."},"hideSectionIcons":{"type":"boolean","description":"Whether to hide the section heading icons displayed before section titles."}},"required":["gapX","gapY","marginX","marginY","format","locale","hideLinkUnderline","hideIcons","hideSectionIcons"],"description":"The page settings of the resume. Determines the margins, format, and locale of the resume."},"design":{"type":"object","properties":{"level":{"type":"object","properties":{"icon":{"type":"string","description":"The icon to display for the custom field. Must be a valid icon name from @phosphor-icons/web icon set, or an empty string to hide. Default to '' (empty string) when unsure which icons are available."},"type":{"enum":["hidden","circle","square","rectangle","rectangle-full","progress-bar","icon"],"type":"string","description":"The type of the level design. 'hidden' will hide the level design, 'circle' will display a circle, 'square' will display a square, 'rectangle' will display a rectangle, 'rectangle-full' will display a full rectangle, 'progress-bar' will display a progress bar, and 'icon' will display an icon. If 'icon' is selected, the icon to display should be specified in the 'icon' field."}},"required":["icon","type"]},"colors":{"type":"object","properties":{"primary":{"type":"string","description":"The primary color of the design, defined as rgba(r, g, b, a)."},"text":{"type":"string","description":"The text color of the design, defined as rgba(r, g, b, a). Usually set to black: rgba(0, 0, 0, 1)."},"background":{"type":"string","description":"The background color of the design, defined as rgba(r, g, b, a). Usually set to white: rgba(255, 255, 255, 1)."}},"required":["primary","text","background"]}},"required":["level","colors"],"description":"The design settings of the resume. Determines the colors, level designs, and typography of the resume."},"typography":{"type":"object","properties":{"body":{"type":"object","properties":{"fontFamily":{"type":"string","description":"The family of the font to use. Must be a supported resume font."},"fontWeights":{"type":"array","items":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"description":"The weight of the font, defined as a number between 100 and 900. Default to 400 when unsure if the weight is available in the font."},"fontSize":{"type":"number","minimum":6,"maximum":24,"description":"The size of the font to use, defined in points (pt)."},"lineHeight":{"type":"number","minimum":0.5,"maximum":4,"description":"The line height of the font to use, defined as a multiplier of the font size (e.g. 1.5 for 1.5x)."}},"required":["fontFamily","fontWeights","fontSize","lineHeight"],"description":"The typography for the body of the resume."},"heading":{"type":"object","properties":{"fontFamily":{"type":"string","description":"The family of the font to use. Must be a supported resume font."},"fontWeights":{"type":"array","items":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"description":"The weight of the font, defined as a number between 100 and 900. Default to 400 when unsure if the weight is available in the font."},"fontSize":{"type":"number","minimum":6,"maximum":24,"description":"The size of the font to use, defined in points (pt)."},"lineHeight":{"type":"number","minimum":0.5,"maximum":4,"description":"The line height of the font to use, defined as a multiplier of the font size (e.g. 1.5 for 1.5x)."}},"required":["fontFamily","fontWeights","fontSize","lineHeight"],"description":"The typography for the headings of the resume."}},"required":["body","heading"],"description":"The typography settings of the resume. Determines the fonts and sizes of the body and headings of the resume."},"notes":{"type":"string","description":"Personal notes for the resume. Can be used to add any additional information or instructions for the resume. These notes are not displayed on the resume, they are only visible to the author of the resume when editing the resume. This should be a HTML-formatted string."},"styleRules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Unique identifier for this style rule."},"label":{"type":"string","description":"Human-readable label for this style rule."},"enabled":{"type":"boolean","description":"Whether this style rule should affect PDF rendering."},"target":{"anyOf":[{"type":"object","properties":{"scope":{"const":"global"}},"required":["scope"],"additionalProperties":false},{"type":"object","properties":{"scope":{"const":"sectionType"},"sectionType":{"enum":["summary","profiles","experience","education","projects","skills","languages","interests","awards","certifications","publications","volunteer","references","cover-letter"],"type":"string"}},"required":["scope","sectionType"],"additionalProperties":false},{"type":"object","properties":{"scope":{"const":"sectionId"},"sectionId":{"type":"string","minLength":1}},"required":["scope","sectionId"],"additionalProperties":false}],"description":"The resume content this style rule applies to."},"slots":{"type":"object","properties":{"section":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"heading":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"item":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"text":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"secondaryText":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"link":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"icon":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"level":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richParagraph":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richList":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richListItemRow":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richListItemContent":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richLink":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richBold":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."},"richMark":{"type":"object","properties":{"color":{"type":"string"},"backgroundColor":{"type":"string"},"borderColor":{"type":"string"},"textDecorationColor":{"type":"string"},"opacity":{"type":"number","minimum":0,"maximum":1},"fontSize":{"type":"number","minimum":6,"maximum":48},"fontWeight":{"enum":["100","200","300","400","500","600","700","800","900"],"type":"string"},"fontStyle":{"enum":["normal","italic"],"type":"string"},"lineHeight":{"type":"number","minimum":0.5,"maximum":4},"letterSpacing":{"type":"number","minimum":-16,"maximum":16},"textDecoration":{"enum":["none","underline","line-through"],"type":"string"},"textDecorationStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"textAlign":{"enum":["left","center","right","justify"],"type":"string"},"textTransform":{"enum":["none","uppercase","lowercase","capitalize"],"type":"string"},"padding":{"type":"number","minimum":-72,"maximum":72},"paddingTop":{"type":"number","minimum":-72,"maximum":72},"paddingRight":{"type":"number","minimum":-72,"maximum":72},"paddingBottom":{"type":"number","minimum":-72,"maximum":72},"paddingLeft":{"type":"number","minimum":-72,"maximum":72},"marginTop":{"type":"number","minimum":-72,"maximum":72},"marginRight":{"type":"number","minimum":-72,"maximum":72},"marginBottom":{"type":"number","minimum":-72,"maximum":72},"marginLeft":{"type":"number","minimum":-72,"maximum":72},"rowGap":{"type":"number","minimum":-72,"maximum":72},"columnGap":{"type":"number","minimum":-72,"maximum":72},"borderStyle":{"enum":["solid","dashed","dotted"],"type":"string"},"borderWidth":{"type":"number","minimum":0,"maximum":24},"borderRadius":{"type":"number","minimum":0,"maximum":72}},"additionalProperties":false,"description":"Constrained visual style intent that can be safely translated to React PDF styles."}},"additionalProperties":false,"description":"The semantic style slots configured by this rule."}},"required":["id","label","enabled","target","slots"],"additionalProperties":false},"description":"Structured style rules that target semantic resume sections and slots for React PDF rendering."}},"required":["template","layout","page","design","typography","notes","styleRules"],"description":"Metadata for the resume, such as template, layout, typography, etc. This section describes the overall design and appearance of the resume."}},"required":["picture","basics","summary","sections","customSections","metadata"],"additionalProperties":{}}}},"security":[{"apiKey":[]}],"openapi":"3.1.1","paths":{"/ai/parse-pdf":{"post":{"operationId":"parseResumePdf","summary":"Parse a PDF into resume data","description":"Extracts structured resume data from the rendered page images of a PDF. Pages are rendered to base64-encoded PNG images client-side and sent as an array. Runs on the user's tested provider, or on HireSweep's hosted AI (uses 1 credit) when they have none. Returns a complete ResumeData object. Requires authentication.","tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string"},"images":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"string","minLength":1,"maxLength":8388612}}},"required":["images"]}}}},"responses":{"200":{"description":"The PDF was successfully parsed into structured resume data.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"The AI returned an improperly formatted structure."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"AI_IMAGE_PROVIDER_REQUIRED"},"status":{"const":400},"message":{"type":"string","default":"No tested AI provider supports image 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"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"AI_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits for HireSweep AI. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["resetsAt"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"413":{"description":"413","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"IMPORT_TOO_LARGE"},"status":{"const":413},"message":{"type":"string","default":"The rendered pages exceed the maximum import size."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider returned an error or is unreachable."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai/parse-docx":{"post":{"operationId":"parseResumeDocx","summary":"Parse a DOCX file into resume data","description":"Extracts structured resume data from a DOCX or DOC file, sent as a base64-encoded string with the document's media type. A DOCX is read as text, so it runs on HireSweep's hosted AI (uses 1 credit); a legacy DOC is not supported there. Returns a complete ResumeData object. Requires authentication.","tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string"},"file":{"type":"object","properties":{"name":{"type":"string"},"data":{"type":"string","maxLength":13981018}},"required":["name","data"]},"mediaType":{"enum":["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],"type":"string"}},"required":["file","mediaType"]}}}},"responses":{"200":{"description":"The DOCX was successfully parsed into structured resume data.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"The AI returned an improperly formatted structure."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"AI_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits for HireSweep AI. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["resetsAt"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider returned an error or is unreachable."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai/chat":{"post":{"operationId":"aiChat","summary":"Chat with AI to modify resume","description":"Streams a chat response from the configured AI provider. The LLM can call the propose_resume_patches tool to generate JSON Patch proposals for explicit user approval. Requires authentication and AI provider credentials.","tags":["AI"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"AI_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits for HireSweep AI. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["resetsAt"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai/analyze-resume":{"post":{"operationId":"analyzeResume","summary":"Analyze resume and persist latest analysis","description":"Uses AI to analyze the current resume and returns a structured analysis with scorecard, strengths, and improvement suggestions. The score runs on the server and is persisted either way, so a refresh or a closed tab never loses one that is already paid for: the resume is marked as being scored for as long as it takes, which the analysis endpoint reports, and a second score is refused with CONFLICT while one is running. Requires authentication and AI credentials.","tags":["AI"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string"},"resumeId":{"type":"string"}},"required":["resumeId"]}}}},"responses":{"200":{"description":"Structured resume analysis returned and persisted successfully.","content":{"application/json":{"schema":{"type":"object","properties":{"overallScore":{"type":"integer","minimum":0,"maximum":100},"scorecard":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"suggestions":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1},"impact":{"enum":["high","medium","low"],"type":"string"},"why":{"type":"string","minLength":1},"exampleRewrite":{"anyOf":[{"type":"string"},{"type":"null"}]},"copyPrompt":{"type":"string","minLength":1}},"required":["title","impact","why","exampleRewrite","copyPrompt"]}},"strengths":{"type":"array","maxItems":10,"items":{"type":"string","minLength":1}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]}},"required":["overallScore","scorecard","suggestions","strengths","updatedAt","modelMeta"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"The AI returned an improperly formatted structure."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"AI_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits for HireSweep AI. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["resetsAt"]}},"required":["defined","code","status","message","data"]},{"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":"This resume is already being scored."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider returned an error or is unreachable."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai-providers":{"get":{"operationId":"listAiProviders","summary":"List saved AI providers","description":"Retired: users can no longer bring their own AI provider, so this always returns an empty list.","tags":["AI Providers"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"412":{"description":"412","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PRECONDITION_FAILED"},"status":{"const":412},"message":{"type":"string","default":"AI agent workspace is not configured."},"data":{}},"required":["defined","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":"createAiProvider","summary":"Create saved AI provider","description":"Retired: users can no longer bring their own AI provider. Always refused.","tags":["AI Providers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1},"providerId":{"type":"string","minLength":1},"model":{"type":"string","minLength":1},"apiKey":{"type":"string","minLength":1}},"required":["label","providerId","model","apiKey"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid AI provider configuration."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"412":{"description":"412","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PRECONDITION_FAILED"},"status":{"const":412},"message":{"type":"string","default":"AI agent workspace is not configured."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai-providers/catalog":{"get":{"operationId":"getAiProviderCatalog","summary":"List the providers and models Hermes supports","description":"Returns the provider/model catalog (sourced from models.dev, the dataset the Hermes gateway ships) that a user may choose from when bringing their own key. Includes the Hermes gateway as a provider when configured.","tags":["AI Providers"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/ai-providers/plugline/models":{"post":{"operationId":"listPluglineModels","summary":"List HireSweep AI models for a key","description":"Retired: users can no longer bring their own AI key. Always refused.","tags":["AI Providers"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"string","minLength":1}},"required":["apiKey"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"The API key was rejected."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"HireSweep AI is unreachable."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai-providers/{id}":{"patch":{"operationId":"updateAiProvider","summary":"Update saved AI provider","description":"Retired: users can no longer bring their own AI provider. Always refused.","tags":["AI Providers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1},"apiKey":{"type":"string","minLength":1},"enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid AI provider configuration."},"data":{}},"required":["defined","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":"AI provider was 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"]}]}}}},"412":{"description":"412","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PRECONDITION_FAILED"},"status":{"const":412},"message":{"type":"string","default":"AI agent workspace is not configured."},"data":{}},"required":["defined","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":"deleteAiProvider","summary":"Delete saved AI provider","description":"Deletes a saved provider/model/API key combination.","tags":["AI Providers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}},"412":{"description":"412","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PRECONDITION_FAILED"},"status":{"const":412},"message":{"type":"string","default":"AI agent workspace is not configured."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/ai-providers/{id}/test":{"post":{"operationId":"testAiProvider","summary":"Test saved AI provider","description":"Retired: users can no longer bring their own AI provider. Always refused.","tags":["AI Providers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_REQUEST"},"status":{"const":400},"message":{"type":"string","default":"Invalid AI provider configuration."},"data":{}},"required":["defined","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":"AI provider was 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"]}]}}}},"412":{"description":"412","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PRECONDITION_FAILED"},"status":{"const":412},"message":{"type":"string","default":"AI agent workspace is not configured."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider returned an error or is unreachable."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/agent/threads":{"get":{"operationId":"listAgentThreads","summary":"List agent threads","tags":["Agent"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}},"post":{"operationId":"createAgentThread","summary":"Create agent thread","tags":["Agent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string"},"sourceResumeId":{"type":"string"},"requestKey":{"type":"string","maxLength":100}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/threads/{id}":{"get":{"operationId":"getAgentThread","summary":"Get agent thread","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}},"delete":{"operationId":"deleteAgentThread","summary":"Delete agent thread","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/agent/threads/{id}/archive":{"post":{"operationId":"archiveAgentThread","summary":"Archive agent thread","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/agent/threads/{id}/unarchive":{"post":{"operationId":"unarchiveAgentThread","summary":"Unarchive agent thread","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/agent/messages/send":{"post":{"operationId":"sendAgentMessage","summary":"Send agent message","tags":["Agent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string"},"message":{"not":{}},"attachmentIds":{"type":"array","maxItems":10,"items":{"type":"string","minLength":1}},"replace":{"type":"boolean"}},"required":["threadId","message"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/messages/stop":{"post":{"operationId":"stopAgentMessage","summary":"Stop active agent run","tags":["Agent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string"},"partialMessage":{"not":{}}},"required":["threadId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/agent/messages/truncate":{"post":{"operationId":"truncateAgentMessages","summary":"Delete an agent message and everything after it","tags":["Agent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string"},"messageId":{"type":"string","minLength":1}},"required":["threadId","messageId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"resume":{"enum":["unchanged","restored","kept"],"type":"string"}},"required":["resume"]}}}}}}},"/agent/messages/resume":{"get":{"operationId":"resumeAgentMessages","summary":"Resume agent message stream","tags":["Agent"],"parameters":[{"name":"threadId","in":"query","required":true,"schema":{"type":"string"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/attachments":{"post":{"operationId":"createAgentAttachment","summary":"Create agent attachment","tags":["Agent"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string"},"filename":{"type":"string","minLength":1},"mediaType":{"type":"string","minLength":1},"data":{"type":"string","minLength":1,"maxLength":34952538}},"required":["threadId","filename","mediaType","data"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/attachments/{id}":{"delete":{"operationId":"deleteAgentAttachment","summary":"Delete agent attachment","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/agent/actions/{id}/revert":{"post":{"operationId":"revertAgentAction","summary":"Restore agent action snapshot","tags":["Agent"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/status":{"get":{"operationId":"getBuilderAgentStatus","summary":"Whether the builder's agent panel can run","tags":["Agent Builder"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/threads":{"post":{"operationId":"openBuilderAgentThread","summary":"Get or create the builder thread of a resume","tags":["Agent Builder"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resumeId":{"type":"string"},"aiProviderId":{"type":"string"},"fresh":{"type":"boolean"}},"required":["resumeId"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/threads/{id}":{"get":{"operationId":"getBuilderAgentThread","summary":"Get a builder thread with its suggestions, job post and scores","tags":["Agent Builder"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/resumes/{resumeId}/threads":{"get":{"operationId":"listBuilderAgentThreads","summary":"List the builder threads of a resume","tags":["Agent Builder"],"parameters":[{"name":"resumeId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/suggestions/{id}/accept":{"post":{"operationId":"acceptBuilderSuggestion","summary":"Apply a staged suggestion to the resume","tags":["Agent Builder"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time"},"force":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/threads/{threadId}/accept-all":{"post":{"operationId":"acceptAllBuilderSuggestions","summary":"Apply every pending suggestion of a thread","tags":["Agent Builder"],"parameters":[{"name":"threadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/suggestions/{id}/skip":{"post":{"operationId":"skipBuilderSuggestion","summary":"Dismiss a staged suggestion","tags":["Agent Builder"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/suggestions/{id}/rewrite":{"post":{"operationId":"rewriteBuilderSuggestion","summary":"Ask for an alternative to one suggestion","tags":["Agent Builder"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"instruction":{"type":"string","maxLength":1000}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/suggestions/{id}/undo":{"post":{"operationId":"undoBuilderSuggestion","summary":"Undo one accepted suggestion","tags":["Agent Builder"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/threads/{threadId}/job":{"post":{"operationId":"attachBuilderJobPost","summary":"Attach a job post by link or pasted text, and score the resume against it","tags":["Agent Builder"],"parameters":[{"name":"threadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"text":{"type":"string","minLength":200,"maxLength":50000}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}},"delete":{"operationId":"detachBuilderJobPost","summary":"Remove the job post from a builder thread","tags":["Agent Builder"],"parameters":[{"name":"threadId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/agent/builder/threads/{threadId}/score":{"post":{"operationId":"scoreBuilderResume","summary":"Match score of the saved resume against the attached job post","tags":["Agent Builder"],"parameters":[{"name":"threadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"force":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/agent/builder/threads/{threadId}/projected-score":{"post":{"operationId":"projectBuilderResumeScore","summary":"Match score if every pending suggestion were accepted","tags":["Agent Builder"],"parameters":[{"name":"threadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"force":{"type":"boolean"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/auth/providers":{"get":{"operationId":"listAuthProviders","summary":"List authentication providers","description":"Returns a list of all authentication providers enabled on this HireSweep instance, along with their display names. Possible providers include password-based credentials, Google, GitHub, LinkedIn, and custom OAuth. No authentication required.","tags":["Authentication"],"responses":{"200":{"description":"A map of enabled authentication provider identifiers to their display names.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/auth/account/export":{"get":{"operationId":"exportAccount","summary":"Export the account's data","description":"Returns everything the account holds about the authenticated user as one JSON document: profile, resumes, apply profile, applications and their runs, Job Discovery schedules, searches and matches, client records, configured AI providers and AI conversations. Credentials and binary files are excluded, and the document lists what was left out and why. Requires authentication.","tags":["Authentication"],"responses":{"200":{"description":"A JSON document containing the user's personal data.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/auth/account":{"delete":{"operationId":"deleteAccount","summary":"Delete user account","description":"Permanently deletes the authenticated user's account, including all resumes, uploaded files (profile pictures, screenshots, PDFs), and associated data. This action is irreversible. Requires authentication.","tags":["Authentication"],"responses":{"200":{"description":"The user account and all associated data have been successfully deleted.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/billing":{"get":{"operationId":"getBillingStatus","summary":"Get your plan and credits","description":"Returns your plan, your credits left and when they reset, and extra usage (whether it is available on your plan, whether it is on, its monthly limit and what it has cost this month). On an instance that does not bill, returns enabled: false and everything is unlimited. Requires authentication.","tags":["Billing"],"responses":{"200":{"description":"The plan, credits and extra usage.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"enabled":{"const":false}},"required":["enabled"]},{"type":"object","properties":{"enabled":{"const":true},"plan":{"enum":["free","stride_700","stride_2000","stride_5000","stride_12000","stride_25000","stride_50000","stride_100000"],"type":"string"},"interval":{"anyOf":[{"enum":["month","year"],"type":"string"},{"type":"null"}],"description":"How the plan is billed, or null for the free plan."},"renewsAt":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"When a paid plan renews, in Unix milliseconds."},"endsAt":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"When a cancelled plan ends, in Unix milliseconds."},"pastDue":{"type":"boolean","description":"Whether the plan's last payment failed."},"credits":{"type":"object","properties":{"remaining":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Credits left until they refill, or null when unlimited."},"granted":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Credits granted for this window, or null when unlimited."},"used":{"type":"number","description":"Credits used in this window."},"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"When the credits refill, in Unix milliseconds, or null when they never do."}},"required":["remaining","granted","used","resetsAt"],"description":"Credits: spent by AI actions, job searches that find jobs, and applications sent. On the free plan they are given once."},"extraUsage":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether the plan can use extra usage: a paid plan whose payment is up to date."},"enabled":{"type":"boolean","description":"Whether extra usage is on: credits go on past the plan's at $2 for every 100."},"monthlyCapUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The most extra usage may cost in a month, in US dollars, or null when it is off."},"usedUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"What extra usage has cost so far this month, in US dollars, or null when there is nothing to read."}},"required":["available","enabled","monthlyCapUsd","usedUsd"]},"freeAllowanceShared":{"type":"boolean","description":"Whether this free account got no credits because another account with its inbox had them."}},"required":["enabled","plan","interval","renewsAt","endsAt","pastDue","credits","extraUsage","freeAllowanceShared"]}]}}}}}}},"/billing/checkout":{"post":{"operationId":"startBillingCheckout","summary":"Start buying a plan","description":"Returns a checkout page for a paid plan: one of the credit volumes, billed monthly or yearly (yearly plans are `<plan>_annual`). Changing between paid plans returns a page to confirm the change. Buying asks HireSweep to start right away, which the Terms set out along with the EU/UK right to withdraw within 14 days. Requires authentication.","tags":["Billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"product":{"enum":["stride_700","stride_700_annual","stride_2000","stride_2000_annual","stride_5000","stride_5000_annual","stride_12000","stride_12000_annual","stride_25000","stride_25000_annual","stride_50000","stride_50000_annual","stride_100000","stride_100000_annual"],"type":"string"}},"required":["product"]}}}},"responses":{"200":{"description":"The checkout page.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The page to send the user to."}},"required":["url"]}}}}}}},"/billing/extra-usage":{"post":{"operationId":"setExtraUsage","summary":"Turn extra usage on or off","description":"Extra usage lets your credits go on past your plan's at $2 for every 100, billed on your next invoice, up to a monthly limit you set ($10 to $500 in steps of $10, required to turn it on). Turning it off stops new use at once; what was already used is still billed. Needs a paid plan whose payment is up to date. Returns how extra usage stands. Requires authentication.","tags":["Billing"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether to go on past your credits at the extra-usage price."},"monthlyCapUsd":{"type":"integer","minimum":10,"maximum":500,"multipleOf":10,"description":"The most extra usage may cost in a month, in US dollars (10 to 500, in steps of 10). Required to turn it on."}},"required":["enabled"]}}}},"responses":{"200":{"description":"How extra usage stands now.","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean","description":"Whether the plan can use extra usage: a paid plan whose payment is up to date."},"enabled":{"type":"boolean","description":"Whether extra usage is on: credits go on past the plan's at $2 for every 100."},"monthlyCapUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The most extra usage may cost in a month, in US dollars, or null when it is off."},"usedUsd":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"What extra usage has cost so far this month, in US dollars, or null when there is nothing to read."}},"required":["available","enabled","monthlyCapUsd","usedUsd"]}}}},"409":{"description":"409","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"EXTRA_USAGE_UNAVAILABLE"},"status":{"const":409},"message":{"type":"string","default":"Extra usage is not available on this account."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/billing/portal":{"post":{"operationId":"openBillingPortal","summary":"Open the billing portal","description":"Returns Stripe's billing portal for your account, where you change your card, see invoices, or cancel your plan. Requires authentication.","tags":["Billing"],"responses":{"200":{"description":"The billing portal page.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"The page to send the user to."}},"required":["url"]}}}}}}},"/clients":{"get":{"operationId":"listClients","summary":"List clients","description":"Returns the job seekers you apply for, with how many applications each has by status and how many approvals are waiting. Archived clients are left out unless includeArchived is set. Requires authentication.","tags":["Clients"],"parameters":[{"name":"includeArchived","in":"query","schema":{"type":"boolean"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The clients.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]}}}}}}},"post":{"operationId":"createClient","summary":"Add a client","description":"Adds a job seeker you apply for. How many clients you work for is not limited, though they can be added at up to 20 an hour. Requires a verified email address. Requires authentication.","tags":["Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"anyOf":[{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"const":""}]},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"requireApproval":{"type":"boolean"},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}]},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}]}},"required":["name"]}}}},"responses":{"200":{"description":"The new client.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]}}}}}}},"/clients/{id}":{"get":{"operationId":"getClient","summary":"Get a client","description":"Returns one client with their application counts. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the client."}}],"responses":{"200":{"description":"The client.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]}}}}}},"patch":{"operationId":"updateClient","summary":"Update a client","description":"Changes a client's name, contact details, notes, role family, level, or whether their applications wait on their approval. Send null to clear the role family or level. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the client."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"anyOf":[{"anyOf":[{"type":"string","maxLength":320,"format":"email"},{"const":""}]},{"type":"null"}]},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"requireApproval":{"type":"boolean"},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}]},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"The updated client.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]}}}}}}},"/clients/{id}/archive":{"post":{"operationId":"archiveClient","summary":"Archive a client","description":"Stops work for a client. Their resumes and applications are kept, read-only for new work, until they are restored. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the client."}}],"responses":{"200":{"description":"The archived client.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]}}}}}}},"/clients/{id}/restore":{"post":{"operationId":"restoreClient","summary":"Restore an archived client","description":"Makes an archived client active again. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the client."}}],"responses":{"200":{"description":"The restored client.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]}}}}}}},"/clients/{id}/report":{"get":{"operationId":"getClientReport","summary":"A client's applications report","description":"Returns every application for a client with its status, match score, dates and approval state, with totals, and the client's report link when one is on. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the client."}}],"responses":{"200":{"description":"The report.","content":{"application/json":{"schema":{"type":"object","properties":{"client":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the client."},"name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where approval links are emailed, when set."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The operator's own notes about the client."},"status":{"enum":["active","archived"],"type":"string","description":"Whether work for this client is active or archived."},"requireApproval":{"type":"boolean","description":"Whether each application waits on the client's approval before it is sent."},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}],"description":"The kind of role the client is searching for, set by the operator."},"level":{"anyOf":[{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"},{"type":"null"}],"description":"How senior the client's search is, set by the operator."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"archivedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"counts":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"pendingApprovals":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Approval requests waiting on the client."},"unseenDecisions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Decisions the client made that the operator has not opened yet."}},"required":["applications","submitted","byStatus","pendingApprovals","unseenDecisions"]}},"required":["id","name","email","phone","notes","status","requireApproval","roleFamily","level","createdAt","updatedAt","archivedAt","counts"]},"summary":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interviews":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["applications","submitted","interviews","offers","byStatus"]},"applications":{"type":"array","items":{"type":"object","properties":{"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"approval":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["status","decidedAt"]},{"type":"null"}]},"id":{"type":"string"}},"required":["status","statusChangedAt","createdAt","submittedAt","matchScore","title","company","location","url","approval","id"]}},"reportUrl":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["client","summary","applications","reportUrl"]}}}}}}},"/clients/{id}/report-link":{"post":{"operationId":"getClientReportLink","summary":"The client's read-only report link","description":"Returns the link a client opens, without an account, to see their applications. The same link comes back each time; rotate makes a new one and turns the old one off, and disable turns it off. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the client."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"rotate":{"type":"boolean","description":"Make a new link, turning the old one off."},"disable":{"type":"boolean","description":"Turn the link off."}}}}}},"responses":{"200":{"description":"The link, or null once it is turned off.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url"]}}}}}}},"/approvals/unseen":{"get":{"operationId":"countUnseenApprovalDecisions","summary":"Count client decisions not yet seen","description":"Returns how many approvals or declines clients have made that you have not opened yet. Requires authentication.","tags":["Clients"],"responses":{"200":{"description":"The count.","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["count"]}}}}}}},"/clients/roster-match":{"post":{"operationId":"matchJobToRoster","summary":"Rank a job across your clients","description":"Scores one job against every active client's Discovery Targets and returns them best first, so a job found for one client can be given to the client it actually suits. A client with no search set up comes back with a null score rather than being left out. Reads only: it returns each client's name, score and matched Target, and costs nothing. Requires authentication.","tags":["Clients"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":300,"description":"The job's title."},"snippet":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"description":"The job's description or snippet, when there is one; it sharpens the score."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Return only the best this many clients."}},"required":["title"]}}}},"responses":{"200":{"description":"The clients, best match first.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"clientId":{"type":"string"},"clientName":{"type":"string"},"score":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"A rough fit from 0 to 100, or null for a client with no Discovery search set up yet."},"matchedTarget":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client's Target the score came from."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the client's search runs against."}},"required":["clientId","clientName","score","matchedTarget","resumeId"]}}}}}}}},"/client-reports/{token}":{"get":{"operationId":"getSharedClientReport","summary":"A client's report, from their link","description":"Returns a client's applications and where each stands, for the read-only report link the operator shared. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The report.","content":{"application/json":{"schema":{"type":"object","properties":{"clientName":{"type":"string"},"operatorName":{"type":"string"},"generatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"summary":{"type":"object","properties":{"applications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interviews":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byStatus":{"type":"object","propertyNames":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["applications","submitted","interviews","offers","byStatus"]},"applications":{"type":"array","items":{"type":"object","properties":{"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"approval":{"anyOf":[{"type":"object","properties":{"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["status","decidedAt"]},{"type":"null"}]}},"required":["status","statusChangedAt","createdAt","submittedAt","matchScore","title","company","location","url","approval"]}}},"required":["clientName","operatorName","generatedAt","summary","applications"]}}}}}}},"/applications/{applicationId}/approval":{"get":{"operationId":"getApplicationApproval","summary":"Where an application stands with its client's approval","description":"Returns whether the application waits on its client's approval, why an apply run would be held (missing, pending, declined, or stale), and the latest request with its link while it is open. Requires authentication.","tags":["Clients"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The approval state.","content":{"application/json":{"schema":{"type":"object","properties":{"required":{"type":"boolean","description":"Whether this application waits on its client's approval."},"blocked":{"anyOf":[{"enum":["missing","pending","declined","stale"],"type":"string"},{"type":"null"}],"description":"Why an apply run cannot start yet, or null when nothing holds it."},"latest":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"clientId":{"type":"string"},"applicationId":{"type":"string"},"kind":{"enum":["submission","tailored_resume"],"type":"string"},"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"snapshot":{"type":"object","properties":{"job":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title","company","url","location"]},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"digest":{"type":"string"}},"required":["id","name","digest"]},"coverLetterDigest":{"anyOf":[{"type":"string"},{"type":"null"}]},"facts":{"type":"object","properties":{"location":{"type":"string"},"workAuthorization":{"type":"string"},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"salaryExpectation":{"type":"string"},"noticePeriod":{"type":"string"}},"required":["location","workAuthorization","requiresSponsorship","salaryExpectation","noticePeriod"]},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"answersDigest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]}},"required":["job","resume","facts","answers","answersDigest","changes","refused","matchScore"]},"clientComment":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link the client opens, while it can still be used."}},"required":["id","clientId","applicationId","kind","status","snapshot","clientComment","expiresAt","decidedAt","seenAt","createdAt","url"]},{"type":"null"}]}},"required":["required","blocked","latest"]}}}}}},"post":{"operationId":"requestApplicationApproval","summary":"Ask the client to approve an application","description":"Asks the application's client to approve what it would send now: the job, the resume (usually the tailored copy), and the profile answers its form would get. Any earlier request still waiting stops working. The link is emailed when the client has an address and returned either way; it works for seven days, for one decision. Requires authentication.","tags":["Clients"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"enum":["submission","tailored_resume"],"type":"string"}}}}}},"responses":{"200":{"description":"The request and its link.","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string"},"clientId":{"type":"string"},"applicationId":{"type":"string"},"kind":{"enum":["submission","tailored_resume"],"type":"string"},"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"snapshot":{"type":"object","properties":{"job":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title","company","url","location"]},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"digest":{"type":"string"}},"required":["id","name","digest"]},"coverLetterDigest":{"anyOf":[{"type":"string"},{"type":"null"}]},"facts":{"type":"object","properties":{"location":{"type":"string"},"workAuthorization":{"type":"string"},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"salaryExpectation":{"type":"string"},"noticePeriod":{"type":"string"}},"required":["location","workAuthorization","requiresSponsorship","salaryExpectation","noticePeriod"]},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"answersDigest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]}},"required":["job","resume","facts","answers","answersDigest","changes","refused","matchScore"]},"clientComment":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link the client opens, while it can still be used."}},"required":["id","clientId","applicationId","kind","status","snapshot","clientComment","expiresAt","decidedAt","seenAt","createdAt","url"]},"url":{"type":"string"},"emailed":{"type":"boolean","description":"Whether the link was emailed to the client (they have an address on file)."}},"required":["request","url","emailed"]}}}}}}},"/approvals/{id}/resend":{"post":{"operationId":"resendApprovalRequest","summary":"Send an approval link again","description":"Emails a waiting request's link to the client again and gives it a fresh seven days. A request that was decided or ran out cannot be resent; ask for a new one. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The request and its link.","content":{"application/json":{"schema":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"type":"string"},"clientId":{"type":"string"},"applicationId":{"type":"string"},"kind":{"enum":["submission","tailored_resume"],"type":"string"},"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"snapshot":{"type":"object","properties":{"job":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title","company","url","location"]},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"digest":{"type":"string"}},"required":["id","name","digest"]},"coverLetterDigest":{"anyOf":[{"type":"string"},{"type":"null"}]},"facts":{"type":"object","properties":{"location":{"type":"string"},"workAuthorization":{"type":"string"},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"salaryExpectation":{"type":"string"},"noticePeriod":{"type":"string"}},"required":["location","workAuthorization","requiresSponsorship","salaryExpectation","noticePeriod"]},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"answersDigest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]}},"required":["job","resume","facts","answers","answersDigest","changes","refused","matchScore"]},"clientComment":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link the client opens, while it can still be used."}},"required":["id","clientId","applicationId","kind","status","snapshot","clientComment","expiresAt","decidedAt","seenAt","createdAt","url"]},"url":{"type":"string"},"emailed":{"type":"boolean","description":"Whether the link was emailed to the client (they have an address on file)."}},"required":["request","url","emailed"]}}}}}}},"/approvals/{id}/seen":{"post":{"operationId":"markApprovalSeen","summary":"Mark a client's decision as seen","description":"Stops counting a decided request as new. Requires authentication.","tags":["Clients"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The decision was marked seen.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/approvals":{"get":{"operationId":"listApprovalRequests","summary":"List approval requests","description":"Returns approval requests, newest first: one client's, or only decisions you have not seen yet. Requires authentication.","tags":["Clients"],"parameters":[{"name":"clientId","in":"query","schema":{"type":"string","minLength":1},"allowEmptyValue":true,"allowReserved":true},{"name":"unseen","in":"query","schema":{"type":"boolean"},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The requests.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"clientId":{"type":"string"},"applicationId":{"type":"string"},"kind":{"enum":["submission","tailored_resume"],"type":"string"},"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"snapshot":{"type":"object","properties":{"job":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title","company","url","location"]},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"digest":{"type":"string"}},"required":["id","name","digest"]},"coverLetterDigest":{"anyOf":[{"type":"string"},{"type":"null"}]},"facts":{"type":"object","properties":{"location":{"type":"string"},"workAuthorization":{"type":"string"},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"salaryExpectation":{"type":"string"},"noticePeriod":{"type":"string"}},"required":["location","workAuthorization","requiresSponsorship","salaryExpectation","noticePeriod"]},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"answersDigest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]}},"required":["job","resume","facts","answers","answersDigest","changes","refused","matchScore"]},"clientComment":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"seenAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link the client opens, while it can still be used."}},"required":["id","clientId","applicationId","kind","status","snapshot","clientComment","expiresAt","decidedAt","seenAt","createdAt","url"]}}}}}}}},"/approval-links/{token}":{"get":{"operationId":"viewApprovalRequest","summary":"What a client is asked to approve, from their link","description":"Returns the job, the resume that would be sent, the answers its form would get, the edits tailoring refused, and where the request stands. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The request as the client sees it.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"kind":{"enum":["submission","tailored_resume"],"type":"string"},"clientName":{"type":"string"},"operatorName":{"type":"string"},"snapshot":{"type":"object","properties":{"job":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string"},"location":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["title","company","url","location"]},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"digest":{"type":"string"}},"required":["id","name","digest"]},"coverLetterDigest":{"anyOf":[{"type":"string"},{"type":"null"}]},"facts":{"type":"object","properties":{"location":{"type":"string"},"workAuthorization":{"type":"string"},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"salaryExpectation":{"type":"string"},"noticePeriod":{"type":"string"}},"required":["location","workAuthorization","requiresSponsorship","salaryExpectation","noticePeriod"]},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"answersDigest":{"type":"string"},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]}},"required":["job","resume","facts","answers","answersDigest","changes","refused","matchScore"]},"resume":{"anyOf":[{"$ref":"#/components/schemas/ResumeData"},{"type":"null"}],"description":"The resume that would be sent, while it is unchanged."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The cover letter that would be sent, while the request is up to date."},"clientComment":{"anyOf":[{"type":"string"},{"type":"null"}]},"expiresAt":{"type":"string","format":"date-time","x-native-type":"date"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["status","kind","clientName","operatorName","snapshot","resume","coverLetter","clientComment","expiresAt","decidedAt"]}}}}}}},"/approval-links/{token}/decision":{"post":{"operationId":"decideApprovalRequest","summary":"Approve or decline, from the client's link","description":"Records the client's decision with an optional comment. A link decides once; an expired link, or one whose resume changed since it was sent, is refused. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"enum":["approved","declined"],"type":"string"},"comment":{"type":"string","maxLength":2000}},"required":["decision"]}}}},"responses":{"200":{"description":"The decision.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["pending","approved","declined","expired"],"type":"string"},"decidedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["status","decidedAt"]}}}}}}},"/interview-links/{token}":{"get":{"operationId":"viewInterviewConfirmations","summary":"The jobs a client is asked to confirm, from their link","description":"Returns the jobs the client was emailed about, answered or not, and the operator's name. No authentication: the link's token is the key, and it is only ever sent to the client.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The jobs and the client's choices.","content":{"application/json":{"schema":{"type":"object","properties":{"operatorName":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"reportedStatus":{"enum":["interview","offer"],"type":"string"},"reportedAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When the operator's workspace moved the application to this status."},"answer":{"anyOf":[{"enum":["confirmed","denied"],"type":"string"},{"type":"null"}]},"interviewOn":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The interview date the client gave, when they gave one."},"answeredAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["id","title","company","reportedStatus","reportedAt","answer","interviewOn","answeredAt"]}},"optedOut":{"type":"boolean","description":"Whether the client asked to stop these emails."},"excluded":{"type":"boolean","description":"Whether the client asked not to be counted."}},"required":["operatorName","items","optedOut","excluded"]}}}}}}},"/interview-links/{token}/answers":{"post":{"operationId":"answerInterviewConfirmation","summary":"Say whether a job led to an interview, from the client's link","description":"Records the client's answer for one job, with the interview date when they give one. The first answer is final. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"itemId":{"type":"string","minLength":1,"maxLength":200},"answer":{"enum":["confirmed","denied"],"type":"string"},"interviewOn":{"type":"string","format":"date","description":"The day of the interview, for a confirmed answer."}},"required":["itemId","answer"]}}}},"responses":{"200":{"description":"The recorded answer.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"answer":{"anyOf":[{"enum":["confirmed","denied"],"type":"string"},{"type":"null"}]},"answeredAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"interviewOn":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","answer","answeredAt","interviewOn"]}}}}}}},"/interview-links/{token}/stop-emails":{"post":{"operationId":"stopInterviewConfirmationEmails","summary":"Stop the confirmation emails, from the client's link","description":"Stops further confirmation emails to this client. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The emails were stopped.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/interview-links/{token}/exclude":{"post":{"operationId":"excludeClientFromOperatorRecord","summary":"Don't count the client's results, from their link","description":"Takes every one of the client's answers out of the operator's record, now and later. It cannot be undone. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The client's results no longer count.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/connected-assistants":{"get":{"operationId":"listConnectedAssistants","summary":"List the assistants connected to your account","description":"Returns every assistant (OAuth client, such as an MCP client) the user allowed into their account, with the permissions granted. Requires authentication.","tags":["Connected Assistants"],"responses":{"200":{"description":"The connected assistants, most recently changed first.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"clientId":{"type":"string","description":"The OAuth client ID of the assistant."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name the assistant registered with."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The assistant's homepage, if it gave one."},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The assistant's logo, if it gave one."},"scopes":{"type":"array","items":{"type":"string"},"description":"The permissions the user granted it."},"grantedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the user first allowed it."},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the user last changed what it may do."}},"required":["clientId","name","uri","icon","scopes","grantedAt","updatedAt"]}}}}}}}},"/connected-assistants/{clientId}":{"delete":{"operationId":"revokeConnectedAssistant","summary":"Disconnect an assistant","description":"Removes the user's grant to the assistant and every token it holds for them, so it has to ask again before it can act. Requires authentication.","tags":["Connected Assistants"],"parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The OAuth client ID of the assistant."}}],"responses":{"200":{"description":"The assistant was disconnected.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/discovery/runs":{"post":{"operationId":"createDiscoveryRun","summary":"Generate Targets for a resume and start a Discovery run","description":"Creates a drafting Discovery run and returns it at once, while a senior-recruiter prompt on the resume writes its Targets in the background: the job titles the resume qualifies for, each with the exact keywords an applicant tracking system scans for. Targets land on the run one by one; read the run until targetsGeneratingSince is null. Runs on the server-configured engine by default, falling back to the user's tested provider, and uses 1 credit. A generation that fails is recorded on the run with a reason to retry rather than returned as an error. Pass clientId to run for one client. Requires authentication.","tags":["Discovery"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resumeId":{"type":"string","minLength":1,"description":"The ID of the resume to search from."},"targetCount":{"type":"integer","minimum":3,"maximum":10,"description":"How many Targets to generate, between 3 and 10."},"aiProviderId":{"type":"string","description":"A tested AI provider to run on; defaults to the hosted AI."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["resumeId","targetCount"]}}}},"responses":{"200":{"description":"The drafting run, with its Targets being generated.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}},"get":{"operationId":"listDiscoveryRuns","summary":"List Discovery runs","description":"Lists the caller's Discovery runs, newest first, optionally for one resume, each with how many of its Matches are new, expired, added, tracked and dismissed. Pass clientId for one client's runs. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"resumeId","in":"query","schema":{"type":"string","description":"Only runs for this resume."},"allowEmptyValue":true,"allowReserved":true},{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The Discovery runs, newest first.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"matchCounts":{"type":"object","properties":{"new":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expired":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"tracked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dismissed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"newByLevel":{"type":"object","properties":{"close":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"partial":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"loose":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["close","partial","loose"],"description":"The `new` Matches split by match level: close (score 55 and up), partial (25 to 54) and loose (under 25)."}},"required":["new","expired","added","tracked","dismissed","newByLevel"],"description":"How many of the run's Matches are in each state."}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt","matchCounts"]}}}}}}}},"/discovery/runs/{id}":{"get":{"operationId":"getDiscoveryRun","summary":"Get a Discovery run","description":"Returns one Discovery run of the caller's scope: its Targets, filters, status, what its search is doing and which board and Target it is on. A search that has stopped reporting for too long is ended as failed when read. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}},{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The Discovery run.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}},"delete":{"operationId":"deleteDiscoveryRun","summary":"Delete a Discovery run","description":"Deletes a run and the Matches it found. Applications already made from them are not affected. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The run was deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/discovery/runs/{id}/regenerate":{"post":{"operationId":"regenerateDiscoveryTargets","summary":"Generate a drafting run's Targets again","description":"Runs the recruiter prompt on the run's resume again and replaces the draft's Targets with a fresh, ticked list, returning at once while the new Targets land one by one; read the run until targetsGeneratingSince is null. Uses 1 credit. Only a run still drafting, and not still generating, can be regenerated. A generation that fails before any Target arrives gives the draft back the Targets it had and records the reason. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the drafting Discovery run."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string","description":"A tested AI provider to run on; defaults to the hosted AI."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The drafting run, with its new Targets being generated.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}}},"/discovery/runs/{id}/draft":{"put":{"operationId":"updateDiscoveryDraft","summary":"Save a drafting run's Targets and filters","description":"Replaces the Targets of a drafting run (titles, keywords, and which are ticked) and its location, remote-only and recency filters. The filters belong to this run; the apply profile is never changed. Only a run still drafting can be edited. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the drafting Discovery run."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"targets":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"Every Target of the draft, as edited, with whether it is ticked."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters to search under."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["targets","filters"]}}}},"responses":{"200":{"description":"The drafting run as saved.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}}},"/discovery/runs/{id}/search":{"post":{"operationId":"startDiscoverySearch","summary":"Search companies' job boards for a drafting run's ticked Targets","description":"Moves a drafting run with at least one ticked Target to searching and starts a search of the public ATS job boards (Greenhouse, Lever, Ashby, Workday, SmartRecruiters, Workable and more) of every company in HireSweep's directory for the ticked Targets, under the run's filters. This search never reads LinkedIn or Indeed: Indeed is retired, and the server never requests LinkedIn. LinkedIn is searched only from Discover in the web app, in your own browser by the HireSweep extension, which passes readLinkedIn and then files the jobs it reads with reportDiscoveryBrowserMatches and ends that half with finishDiscoveryBrowserSearch; from here, with readLinkedIn unset, LinkedIn is skipped, and a search with only LinkedIn ticked is refused with BAD_REQUEST. Returns once the search has started; jobs arrive as Matches while it runs. Only one search per resume runs at a time. Holds 10 credits; charged only when the search finds at least one job. Refused with DISCOVERY_LIMIT_REACHED (the reason and when it refills) when the account is out of credits (extra usage included), today's cap is reached, or too many searches run at once. Unavailable on a server without its Discovery Hermes instance. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"readLinkedIn":{"type":"boolean","default":false,"description":"Whether the caller will read the user's own LinkedIn search in their browser for this run and file its jobs. Only the web app with the HireSweep extension passes true; with it unset, LinkedIn is not searched."}}}}}},"responses":{"200":{"description":"The run, now searching (or failed, with the reason, when the search could not start).","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"DISCOVERY_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"A job search that finds jobs uses 10 credits, and you're out of credits. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"reason":{"enum":["not_included","allowance","daily","concurrent","spend_cap"],"type":"string"},"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["reason","resetsAt"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/discovery/runs/{id}/cancel":{"post":{"operationId":"cancelDiscoverySearch","summary":"Cancel a search under way","description":"Ends a searching run as cancelled and asks its browser run to stop. Matches it already found stay. Only a run that is searching can be cancelled. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The run, cancelled.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}}},"/discovery/runs/{id}/matches":{"get":{"operationId":"listDiscoveryMatches","summary":"List the jobs a Discovery run found","description":"Returns a run's Matches, best ranked first, each in its state as of now. Matches arrive while the run searches. Each carries autoApplySkip: why an automatic apply batch passed it over, or null. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}},{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The run's Matches.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"autoApplySkip":{"anyOf":[{"enum":["score","unreadable","board","browser_only","account_form","already_applied","already_auto_applied","cap","no_hosted_credits","no_ai_actions","limit_allowance","limit_daily","limit_hosted","limit_runs","client_changed","interrupted","tailor_failed","error"],"type":"string"},{"type":"null"}],"description":"Why an automatic apply batch passed this job over: score, unreadable, board, browser_only (it can only be applied to in your own browser, as LinkedIn can), account_form, already_applied, already_auto_applied, cap, no_hosted_credits, no_ai_actions, limit_allowance, limit_daily, limit_hosted, limit_runs (an old value, no longer written), client_changed, interrupted, tailor_failed (a prepare-overnight batch could not tailor a resume) or error. Null when no batch did."}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt","autoApplySkip"]}}}}}}}},"/discovery/matches/{matchId}/add":{"post":{"operationId":"addDiscoveryMatch","summary":"Add a found job as an Application","description":"Sends the Match's link through the same create a pasted link uses, in the Match's workspace: a new Application gets the run's resume when it has none, its review starts on the server-configured engine (falling back to the user's tested provider), and the Match becomes added. A link the user already pursues joins that Application instead and the Match becomes tracked; no second Application is created. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"matchId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Match."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The Match, added or tracked, with the Application it now links to.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt"]}}}}}}},"/discovery/matches/add":{"post":{"operationId":"addDiscoveryMatches","summary":"Add several found jobs as Applications","description":"Adds each Match by the same rules as adding one. A Match that cannot be added is reported with its reason and does not stop the others. Requires authentication.","tags":["Discovery"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"matchIds":{"type":"array","minItems":1,"maxItems":100,"items":{"type":"string","minLength":1},"description":"The IDs of the Matches to add."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["matchIds"]}}}},"responses":{"200":{"description":"One result per Match: the Match as added or tracked, or why it could not be added.","content":{"application/json":{"schema":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"matchId":{"type":"string"},"ok":{"const":true},"match":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt"]}},"required":["matchId","ok","match"]},{"type":"object","properties":{"matchId":{"type":"string"},"ok":{"const":false},"error":{"type":"string"}},"required":["matchId","ok","error"]}]}}}}}}}},"/discovery/runs/{id}/browser-matches":{"post":{"operationId":"reportDiscoveryBrowserMatches","summary":"Add the jobs a LinkedIn search in the user's browser found as Matches","description":"Files jobs the user's own browser read from their own LinkedIn job search, for one ticked Target of the run, as Matches of that run. Only a run that is searching with its browser half pending (started with readLinkedIn from Discover, LinkedIn not left out) takes them; any other run answers CONFLICT and stores nothing. An accepted report, even with no jobs, counts as a sign of life: a run waiting only on the browser is ended as stopped after 5 minutes without one. Only a https://www.linkedin.com/jobs/view/<id> link is accepted, and anything else is refused with BAD_REQUEST. A job dated outside the run's posted-within window is left out; one with no readable date is kept. A job the run already has, one the workspace added or dismissed before, or one it already has an Application for (by link, or by company, title and place) is left out, and so is any job past the Target's or the run's limit of Matches. HireSweep never requests LinkedIn: it only receives what the browser read. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"targetTitle":{"type":"string","minLength":1,"maxLength":120,"description":"The title of the run's ticked Target the LinkedIn search was read for."},"jobs":{"type":"array","maxItems":100,"items":{"type":"object","properties":{"url":{"type":"string","description":"The job's LinkedIn link, https://www.linkedin.com/jobs/view/<id>. Any other link is refused."},"title":{"type":"string","minLength":1,"maxLength":200,"description":"The job's title, as its card shows it."},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"The company, or null when the card does not say."},"location":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"The place, or null when the card does not say."},"postedAt":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"The date the card shows, YYYY-MM-DD. Held to the run's posted-within filter. Left out, unreadable or in the future: the job is treated as undated and kept."}},"required":["url","title"]},"description":"The jobs the user's own LinkedIn search showed, in the order it showed them."}},"required":["targetTitle","jobs"]}}}},"responses":{"200":{"description":"How many jobs became Matches, and how many were left out and why.","content":{"application/json":{"schema":{"type":"object","properties":{"stored":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many jobs became new Matches."},"tooOld":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs left out because their date is outside the run's posted-within window."},"alreadyMatched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs left out because the run has them, or the workspace added or dismissed them before."},"alreadyApplied":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs left out because the workspace already has an Application."},"noRoom":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Jobs left out because the Target or the run is at its limit of Matches."}},"required":["stored","tooOld","alreadyMatched","alreadyApplied","noRoom"]}}}}}}},"/discovery/runs/{id}/browser-search/finish":{"post":{"operationId":"finishDiscoveryBrowserSearch","summary":"End the LinkedIn half of a search read in the user's browser","description":"Tells HireSweep the browser has read every ticked Target's LinkedIn search it is going to (or stopped, with stopped set). The run ends once its other half, the companies' job boards, has ended too: done, with its credit spent when it found at least one job and handed back when it found none; or failed when stopped is set and it found no job. Calling it again, or on a run that is not searching or whose browser half is not pending, changes nothing. HireSweep never requests LinkedIn. LinkedIn is read only from Discover in the web app, in your own browser. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"stopped":{"type":"boolean","description":"True when the browser read stopped before every Target was read; a run that found nothing then fails."}}}}}},"responses":{"200":{"description":"The run, ended or still waiting on its job boards.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}}},"/discovery/matches/{matchId}/dismiss":{"post":{"operationId":"dismissDiscoveryMatch","summary":"Dismiss a found job","description":"Hides a Match still to decide from the default view; later searches for the same resume skip the job. Restore brings it back. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"matchId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Match."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The Match, dismissed.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt"]}}}}}}},"/discovery/matches/{matchId}/restore":{"post":{"operationId":"restoreDiscoveryMatch","summary":"Restore a dismissed job","description":"Brings a dismissed Match back to decide on. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"matchId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Match."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The Match, back to decide on.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt"]}}}}}}},"/discovery/matches/{matchId}/dismiss-reason":{"post":{"operationId":"setDiscoveryMatchDismissReason","summary":"Say why a job was dismissed","description":"Records the reason a dismissed Match was dismissed: role, level, location, pay or company. Later searches for the same resume use it to rank similar jobs lower. Only a dismissed Match takes a reason; restoring it clears the reason. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"matchId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Match."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"reason":{"enum":["role","level","location","pay","company"],"type":"string","description":"What was wrong with the job: role, level, location, pay or company."}},"required":["reason"]}}}},"responses":{"200":{"description":"The Match, with its reason.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt"]}}}}}}},"/discovery/runs/{id}/duplicate":{"post":{"operationId":"duplicateDiscoveryRun","summary":"Start a new draft from an earlier Discovery run","description":"Creates a drafting run with the same resume, Targets (and which are ticked) and filters as an earlier run of the caller's scope, so its search can be edited and run again. Generates nothing and uses no credits. Refused when the run's resume has been deleted. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the Discovery run to copy."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The new drafting run.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Discovery run."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this run is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The resume the run searches from; null once that resume is deleted."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the recruiter prompt was asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords, as the user edited them; ticked ones are searched."},"targetsGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the recruiter prompt started writing this draft's Targets, which arrive one by one; null once it has finished or failed. A draft cannot be edited or searched while it is set."},"fitScoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started reading this search's jobs for fit, right after it finished; null once it has. Explain fit is refused while it is set."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters this run searches under."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"failureReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, if it did: generating Targets while drafting, or the search once it failed."},"boardOutcomes":{"type":"array","items":{"type":"object","properties":{"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string"},"outcome":{"enum":["ok","blocked","limited"],"type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["board","outcome","reason"]},"description":"What each board's search came to: it ran, the board blocked it, or it was cut short."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the search did, line by line, latest last."},"targetsSearched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of the ticked Targets the search has started on, latest included; 0 before the first."},"lastProgressAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"The latest sign of life from the search."},"serverSearchPending":{"type":"boolean","description":"Whether the search of the companies' job boards is still running; false once it has ended."},"browserSearchPending":{"type":"boolean","description":"Whether the LinkedIn search read in the user's own browser is still running; false once it has ended, or when this run does not read LinkedIn."},"scheduleId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The repeating search that started this run, while it exists; null for a run started by hand."},"scheduled":{"type":"boolean","description":"Whether a repeating search started this run, rather than you."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","resumeId","requestedTargetCount","targets","targetsGeneratingSince","fitScoringSince","filters","status","statusChangedAt","failureReason","boardOutcomes","events","targetsSearched","lastProgressAt","serverSearchPending","browserSearchPending","scheduleId","scheduled","createdAt","updatedAt"]}}}}}}},"/discovery/resumes/{resumeId}/open-matches":{"get":{"operationId":"listOpenDiscoveryMatches","summary":"List the found jobs still to decide for a resume","description":"Gathers the Matches still to decide across all of a resume's runs, each job once, latest find first. Expired ones are left out. Each carries autoApplySkip: why an automatic apply batch passed it over, or null. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"resumeId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The resume whose runs to gather from."}},{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The jobs still to decide.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"autoApplySkip":{"anyOf":[{"enum":["score","unreadable","board","browser_only","account_form","already_applied","already_auto_applied","cap","no_hosted_credits","no_ai_actions","limit_allowance","limit_daily","limit_hosted","limit_runs","client_changed","interrupted","tailor_failed","error"],"type":"string"},{"type":"null"}],"description":"Why an automatic apply batch passed this job over: score, unreadable, board, browser_only (it can only be applied to in your own browser, as LinkedIn can), account_form, already_applied, already_auto_applied, cap, no_hosted_credits, no_ai_actions, limit_allowance, limit_daily, limit_hosted, limit_runs (an old value, no longer written), client_changed, interrupted, tailor_failed (a prepare-overnight batch could not tailor a resume) or error. Null when no batch did."}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt","autoApplySkip"]}}}}}}}},"/discovery/matches/explain":{"post":{"operationId":"explainDiscoveryMatches","summary":"Explain why found jobs fit their resume","description":"Writes the AI's one-sentence reason each found job fits the resume it was found for (or its main gap), and returns the jobs. Jobs that already have a reason keep it; the rest are explained in one call that uses 1 credit. Up to 20 jobs, all found for the same resume. Requires authentication.","tags":["Discovery"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"matchIds":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"string","minLength":1},"description":"The IDs of the Matches to explain; they must have been found for the same resume."},"aiProviderId":{"type":"string","description":"A tested AI provider to run on; defaults to the hosted AI."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["matchIds"]}}}},"responses":{"200":{"description":"The jobs, with their reasons.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the Match."},"runId":{"type":"string"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this Match is for; null for your own."},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","description":"The link to the job, reduced to the job itself."},"originalUrl":{"type":"string"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"board":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin","indeed"],"type":"string","description":"The company job board (the applicant tracking system) the job was found on, such as greenhouse, lever, ashby or workday; linkedin for a job read in your own browser, which is the only place HireSweep reads it. indeed is retired: only jobs found before that carry it."},"title":{"type":"string"},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}]},"salary":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pay the board lists, as it words it; null when it does not say."},"companyStage":{"anyOf":[{"enum":["early","growth","public"],"type":"string"},{"type":"null"}],"description":"How far along the company is: early (seed to Series B), growth, or public; null when unknown."},"targetTitles":{"type":"array","items":{"type":"string"},"description":"Every Target whose search found this job."},"score":{"type":"integer","minimum":0,"maximum":100,"description":"Title and keyword overlap with the Targets, 0-100."},"fitReason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's one sentence on why the job fits the resume, once asked for; null until then."},"fitGap":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The AI's line on the job's biggest gap against the resume, written with the reason; null if none."},"fitScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"The AI's fit for the job against the resume, 0-100; null until it has read the job."},"state":{"enum":["new","added","tracked","dismissed","expired"],"type":"string","description":"New, added, tracked, dismissed, or expired."},"dismissReason":{"anyOf":[{"enum":["role","level","location","pay","company"],"type":"string"},{"type":"null"}],"description":"Why the job was dismissed: role, level, location, pay or company; null if none was given."},"applicationId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Application Add job led to, if any."},"foundAt":{"type":"string","format":"date-time","x-native-type":"date"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","runId","clientId","resumeId","url","originalUrl","externalId","board","title","company","location","isRemote","postedAt","snippet","salary","companyStage","targetTitles","score","fitReason","fitGap","fitScore","state","dismissReason","applicationId","foundAt","createdAt","updatedAt"]}}}}}}}},"/discovery/schedule":{"get":{"operationId":"getDiscoverySchedule","summary":"Get the repeating search","description":"Returns the caller's repeating search for the workspace, or null when there is none: the resume, Targets and filters it searches with, how often, when it next runs, whether it emails new jobs, and how its latest turn went (the run it started, or why it let the turn go by). Pass clientId for one client's. Requires authentication.","tags":["Discovery"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The repeating search, or null.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The ID of the repeating search."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client it searches for; null for your own."},"resumeId":{"type":"string","description":"The resume it searches from."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the run it was saved from asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords it searches for; ticked ones are searched."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters it uses."},"frequency":{"enum":["daily","weekly"],"type":"string","description":"How often it searches: daily or weekly."},"nextRunAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When it next searches, unless it is paused."},"pausedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When it was paused; null while it runs."},"emailDigest":{"type":"boolean","description":"Whether a run that finds new jobs emails you a digest of them."},"lastRunAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When it last started a search."},"lastSkipReason":{"anyOf":[{"enum":["not_included","allowance","daily","concurrent","spend_cap","already_searching","unavailable","email_unverified","client_archived","error"],"type":"string"},{"type":"null"}],"description":"Why its latest turn was let go by without a search (the plan's limit, a search already running, and so on); null when its latest turn searched."},"lastSkippedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When its latest turn was let go by."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"lastRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The ID of the run."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When it started."},"newMatchCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of its jobs were new: still to decide, and not found by an earlier run."}},"required":["id","status","createdAt","newMatchCount"]},{"type":"null"}],"description":"The latest search it started; null before its first."}},"required":["id","clientId","resumeId","requestedTargetCount","targets","filters","frequency","nextRunAt","pausedAt","emailDigest","lastRunAt","lastSkipReason","lastSkippedAt","createdAt","updatedAt","lastRun"]},{"type":"null"}]}}}}}},"put":{"operationId":"saveDiscoverySchedule","summary":"Repeat a Discovery run's search daily or weekly","description":"Saves a run's resume, ticked Targets and filters as the workspace's repeating search, replacing the one it had. The server then searches with them on its own, daily or weekly at about this time of day, skipping the Target suggestions, and emails a digest when a search finds new jobs (on by default). A run that already searched repeats one period from now; a draft searches within a few minutes. Each search holds and charges credits like one started by hand, and one the account cannot pay for is let go by with the reason recorded. One repeating search per workspace. Requires authentication.","tags":["Discovery"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"The ID of the Discovery run whose resume, Targets and filters to repeat."},"frequency":{"enum":["daily","weekly"],"type":"string","description":"How often to search: daily or weekly."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["runId","frequency"]}}}},"responses":{"200":{"description":"The repeating search, as saved.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the repeating search."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client it searches for; null for your own."},"resumeId":{"type":"string","description":"The resume it searches from."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the run it was saved from asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords it searches for; ticked ones are searched."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters it uses."},"frequency":{"enum":["daily","weekly"],"type":"string","description":"How often it searches: daily or weekly."},"nextRunAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When it next searches, unless it is paused."},"pausedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When it was paused; null while it runs."},"emailDigest":{"type":"boolean","description":"Whether a run that finds new jobs emails you a digest of them."},"lastRunAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When it last started a search."},"lastSkipReason":{"anyOf":[{"enum":["not_included","allowance","daily","concurrent","spend_cap","already_searching","unavailable","email_unverified","client_archived","error"],"type":"string"},{"type":"null"}],"description":"Why its latest turn was let go by without a search (the plan's limit, a search already running, and so on); null when its latest turn searched."},"lastSkippedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When its latest turn was let go by."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"lastRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The ID of the run."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When it started."},"newMatchCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of its jobs were new: still to decide, and not found by an earlier run."}},"required":["id","status","createdAt","newMatchCount"]},{"type":"null"}],"description":"The latest search it started; null before its first."}},"required":["id","clientId","resumeId","requestedTargetCount","targets","filters","frequency","nextRunAt","pausedAt","emailDigest","lastRunAt","lastSkipReason","lastSkippedAt","createdAt","updatedAt","lastRun"]}}}}}},"patch":{"operationId":"updateDiscoverySchedule","summary":"Change, pause or resume the repeating search","description":"Changes how often the workspace's repeating search runs, whether it emails new jobs, or pauses and resumes it. A paused search does not run until resumed; resuming keeps its time of day. Requires authentication.","tags":["Discovery"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"frequency":{"enum":["daily","weekly"],"type":"string","description":"How often to search: daily or weekly."},"emailDigest":{"type":"boolean","description":"Whether a run that finds new jobs emails you a digest."},"paused":{"type":"boolean","description":"True to pause the repeating search, false to resume it."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The repeating search, as changed.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the repeating search."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client it searches for; null for your own."},"resumeId":{"type":"string","description":"The resume it searches from."},"requestedTargetCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many Targets the run it was saved from asked for."},"targets":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":120},"keywords":{"type":"array","maxItems":15,"items":{"type":"string","minLength":1,"maxLength":60}},"selected":{"type":"boolean"}},"required":["title","keywords","selected"]},"description":"The job titles and ATS keywords it searches for; ticked ones are searched."},"filters":{"type":"object","properties":{"locations":{"type":"array","maxItems":5,"items":{"type":"string","minLength":1,"maxLength":200},"description":"The places to search, any of which a job may be in; empty for anywhere."},"remoteOnly":{"type":"boolean"},"postedWithinDays":{"anyOf":[{"const":1},{"const":3},{"const":7},{"const":14},{"const":30}]},"companyStages":{"type":"array","maxItems":3,"items":{"enum":["early","growth","public"],"type":"string"},"description":"The company stages to search; empty for every company."},"excludedBoards":{"type":"array","maxItems":29,"items":{"enum":["greenhouse","lever","ashby","workday","smartrecruiters","workable","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","remoteok","weworkremotely","himalayas","jobicy","arbeitnow","adzuna","usajobs","linkedin"],"type":"string"},"description":"The boards not to search; empty for every board."}},"required":["locations","remoteOnly","postedWithinDays","companyStages"],"description":"The locations, remote-only, recency and company-stage filters it uses."},"frequency":{"enum":["daily","weekly"],"type":"string","description":"How often it searches: daily or weekly."},"nextRunAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When it next searches, unless it is paused."},"pausedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When it was paused; null while it runs."},"emailDigest":{"type":"boolean","description":"Whether a run that finds new jobs emails you a digest of them."},"lastRunAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When it last started a search."},"lastSkipReason":{"anyOf":[{"enum":["not_included","allowance","daily","concurrent","spend_cap","already_searching","unavailable","email_unverified","client_archived","error"],"type":"string"},{"type":"null"}],"description":"Why its latest turn was let go by without a search (the plan's limit, a search already running, and so on); null when its latest turn searched."},"lastSkippedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When its latest turn was let go by."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"lastRun":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The ID of the run."},"status":{"enum":["drafting","searching","done","failed","cancelled"],"type":"string","description":"Drafting, searching, done, failed, or cancelled."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date","description":"When it started."},"newMatchCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many of its jobs were new: still to decide, and not found by an earlier run."}},"required":["id","status","createdAt","newMatchCount"]},{"type":"null"}],"description":"The latest search it started; null before its first."}},"required":["id","clientId","resumeId","requestedTargetCount","targets","filters","frequency","nextRunAt","pausedAt","emailDigest","lastRunAt","lastSkipReason","lastSkippedAt","createdAt","updatedAt","lastRun"]}}}}}},"delete":{"operationId":"deleteDiscoverySchedule","summary":"Stop the repeating search","description":"Deletes the workspace's repeating search. The runs it already made stay in the history. Requires authentication.","tags":["Discovery"],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"default":{}}}}},"responses":{"200":{"description":"The repeating search was deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/flags":{"get":{"operationId":"getFeatureFlags","summary":"Get feature flags","description":"Returns the current feature flags for this HireSweep instance. Feature flags control instance-wide settings such as whether new user signups or email-based authentication are disabled. No authentication required.","tags":["Feature Flags"],"responses":{"200":{"description":"The current feature flags for this instance.","content":{"application/json":{"schema":{"type":"object","properties":{"disableSignups":{"type":"boolean","description":"Whether new user signups are disabled on this instance."},"disableEmailAuth":{"type":"boolean","description":"Whether email-based authentication is disabled on this instance."},"billingEnabled":{"type":"boolean","description":"Whether assisted apply is sold by plan on this instance. Without billing, applying is unlimited."},"hostedAi":{"type":"boolean","description":"Whether HireSweep's hosted AI runs for users without an AI provider of their own, charged in credits."},"requireEmailVerification":{"type":"boolean","description":"Whether email/password accounts must verify their email address before signing in."},"discoverySearch":{"type":"boolean","description":"Whether Job Discovery can search companies' job boards on this instance (its Hermes instance is set up). Generating and editing Targets works either way."},"discoveryAutoApply":{"type":"boolean","description":"Whether Job Discovery may start applications on its own on this instance, for workspaces whose apply profile submits automatically."},"marketplace":{"type":"boolean","description":"Whether operator profiles, their public outcome records and client interview confirmations are available on this instance."},"analyticsKey":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The public PostHog project key the web app sends product analytics with, or null when analytics is off on this instance."}},"required":["disableSignups","disableEmailAuth","billingEnabled","hostedAi","requireEmailVerification","discoverySearch","discoveryAutoApply","marketplace","analyticsKey"]}}}}}}},"/client-intake":{"get":{"operationId":"getClientIntake","summary":"Get the questions sent to a client","description":"Returns the questions sent to the client, the link they open and how far along they are, or null when none were sent. The answers are included only after the client has sent them. Requires authentication.","tags":["Intake"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The client's questions, or null.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"status":{"enum":["open","submitted"],"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","minLength":1,"maxLength":500},"hint":{"type":"string","maxLength":300},"kind":{"enum":["text","long_text","work_history"],"type":"string"},"topic":{"enum":["basics","target","experience","education","skills","more"],"type":"string"},"source":{"enum":["backbone","library","custom"],"type":"string"},"required":{"type":"boolean"}},"required":["id","text","kind","topic","source","required"]}},"progress":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["done","total"],"description":"How many of the questions are answered or skipped, out of all of them."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link the client opens, without an account."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"answers":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"value":{"anyOf":[{"type":"string","maxLength":8000},{"type":"array","maxItems":20,"items":{"type":"object","properties":{"company":{"type":"string","maxLength":200,"default":""},"title":{"type":"string","maxLength":200,"default":""},"start":{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$","default":""},"end":{"anyOf":[{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$"},{"const":"present"}],"default":""},"duties":{"type":"string","maxLength":4000,"default":""},"achievements":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":1000},"default":[]}}}},{"type":"null"}]}},"required":["questionId","value"]},"description":"The client's answers. Present only once the client has sent them."}},"required":["id","status","questions","progress","url","createdAt","submittedAt"]},{"type":"null"}]}}}}}},"post":{"operationId":"createClientIntake","summary":"Send a client their questions","description":"Creates the client's questions and their link. Leave out libraryQuestionIds for the set that suits the client's role family; an empty list asks the basic questions only. A client has one set of questions. Requires authentication.","tags":["Intake"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"libraryQuestionIds":{"type":"array","maxItems":60,"items":{"type":"string","minLength":1,"maxLength":64},"description":"The library questions to ask, by id. Leave out for the set that suits the client's role family; send an empty list for the basic questions only."},"customQuestions":{"type":"array","maxItems":60,"items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["text","long_text"],"type":"string"}},"required":["text","kind"]},"description":"Questions of the writer's own, asked after the others."}}}}}},"responses":{"200":{"description":"The questions and the link to send.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"enum":["open","submitted"],"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","minLength":1,"maxLength":500},"hint":{"type":"string","maxLength":300},"kind":{"enum":["text","long_text","work_history"],"type":"string"},"topic":{"enum":["basics","target","experience","education","skills","more"],"type":"string"},"source":{"enum":["backbone","library","custom"],"type":"string"},"required":{"type":"boolean"}},"required":["id","text","kind","topic","source","required"]}},"progress":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["done","total"],"description":"How many of the questions are answered or skipped, out of all of them."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The link the client opens, without an account."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"answers":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"value":{"anyOf":[{"type":"string","maxLength":8000},{"type":"array","maxItems":20,"items":{"type":"object","properties":{"company":{"type":"string","maxLength":200,"default":""},"title":{"type":"string","maxLength":200,"default":""},"start":{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$","default":""},"end":{"anyOf":[{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$"},{"const":"present"}],"default":""},"duties":{"type":"string","maxLength":4000,"default":""},"achievements":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":1000},"default":[]}}}},{"type":"null"}]}},"required":["questionId","value"]},"description":"The client's answers. Present only once the client has sent them."}},"required":["id","status","questions","progress","url","createdAt","submittedAt"]}}}}}},"delete":{"operationId":"deleteClientIntake","summary":"Delete a client's questions","description":"Deletes the questions sent to the client, their answers and their chat. The link stops working. Requires authentication.","tags":["Intake"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The questions were deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/client-intake/link":{"post":{"operationId":"resetClientIntakeLink","summary":"Give a client a new questions link","description":"Turns off the link already sent and returns a new one. The questions and any answers stay. Requires authentication.","tags":["Intake"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The new link.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"}},"required":["url"]}}}}}}},"/client-intake/build":{"post":{"operationId":"buildClientResume","summary":"Start writing a client's resume from their answers","description":"Starts an agent chat that writes the client's resume from the answers they sent, in a new resume named for the client, and returns the chat. Refused until the client has sent their answers. Pressing it again returns the same chat. The chat can read the answers and edit its own resume, and cannot change the answers. Requires authentication.","tags":["Intake"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The chat, and whether this call started it.","content":{"application/json":{"schema":{"type":"object","properties":{"threadId":{"type":"string"},"created":{"type":"boolean"}},"required":["threadId","created"]}}}}}}},"/intake-templates":{"get":{"operationId":"listIntakeTemplates","summary":"List your question templates","description":"Returns the sets of questions you saved to reuse for other clients. Requires authentication.","tags":["Intake"],"responses":{"200":{"description":"The templates.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"libraryQuestionIds":{"type":"array","items":{"type":"string"}},"customQuestions":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["text","long_text"],"type":"string"}},"required":["text","kind"]}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","name","libraryQuestionIds","customQuestions","createdAt"]}}}}}}},"post":{"operationId":"createIntakeTemplate","summary":"Save a set of questions as a template","description":"Saves the library questions and your own questions under a name. Requires authentication.","tags":["Intake"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"libraryQuestionIds":{"type":"array","maxItems":60,"items":{"type":"string","minLength":1,"maxLength":64}},"customQuestions":{"type":"array","maxItems":60,"items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["text","long_text"],"type":"string"}},"required":["text","kind"]}}},"required":["name","libraryQuestionIds","customQuestions"]}}}},"responses":{"200":{"description":"The new template.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"libraryQuestionIds":{"type":"array","items":{"type":"string"}},"customQuestions":{"type":"array","items":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":500},"kind":{"enum":["text","long_text"],"type":"string"}},"required":["text","kind"]}},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","name","libraryQuestionIds","customQuestions","createdAt"]}}}}}}},"/intake-templates/{id}":{"delete":{"operationId":"deleteIntakeTemplate","summary":"Delete a question template","description":"Deletes a template. Questions already sent to a client are not changed. Requires authentication.","tags":["Intake"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The template was deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/intake-links/{token}":{"get":{"operationId":"viewIntakeQuestions","summary":"The questions a client was sent, from their link","description":"Returns the writer's name, the questions, the answers saved so far with their versions, and how far along the client is; after the answers were sent, only the writer's name. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The questions as the client sees them.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"status":{"const":"open"},"writerName":{"type":"string"},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64},"text":{"type":"string","minLength":1,"maxLength":500},"hint":{"type":"string","maxLength":300},"kind":{"enum":["text","long_text","work_history"],"type":"string"},"topic":{"enum":["basics","target","experience","education","skills","more"],"type":"string"},"required":{"type":"boolean"},"stock":{"type":"object","properties":{"text":{"const":true},"hint":{"const":true}}}},"required":["id","text","kind","topic","required"]}},"answers":{"type":"array","items":{"type":"object","properties":{"questionId":{"type":"string"},"value":{"anyOf":[{"type":"string","maxLength":8000},{"type":"array","maxItems":20,"items":{"type":"object","properties":{"company":{"type":"string","maxLength":200,"default":""},"title":{"type":"string","maxLength":200,"default":""},"start":{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$","default":""},"end":{"anyOf":[{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$"},{"const":"present"}],"default":""},"duties":{"type":"string","maxLength":4000,"default":""},"achievements":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":1000},"default":[]}}}},{"type":"null"}]},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["questionId","value","version"]}},"progress":{"type":"object","properties":{"done":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["done","total"],"description":"How many of the questions the person really answered, out of all of them. A skipped one is not counted."},"busy":{"type":"boolean","description":"Whether the chat is answering right now."}},"required":["status","writerName","questions","answers","progress","busy"]},{"type":"object","properties":{"status":{"const":"submitted"},"writerName":{"type":"string"}},"required":["status","writerName"]}]}}}}}}},"/intake-links/{token}/chat-status":{"get":{"operationId":"getIntakeChatStatus","summary":"Whether the client can answer by chat","description":"Returns whether the chat is available for this link right now. The form always works. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Whether the chat is available.","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"}},"required":["available"]}}}}}}},"/intake-links/{token}/chat-history":{"get":{"operationId":"getIntakeChatHistory","summary":"The chat so far, from the client's link","description":"Returns the client's messages and the assistant's words and question cards in this chat, in order, so a reloaded page shows the chat as it was. Nothing else of the writer or the chat is included. Empty after the answers were sent. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The chat so far.","content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"role":{"enum":["user","assistant"],"type":"string"},"parts":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"type":{"const":"text"},"text":{"type":"string"}},"required":["type","text"]},{"type":"object","properties":{"type":{"const":"data-intake-closing"},"data":{"type":"object","properties":{"skipped":{"type":"integer","minimum":0,"maximum":10000},"required":{"type":"integer","minimum":0,"maximum":10000},"details":{"type":"integer","minimum":0,"maximum":10000}},"required":["skipped","required","details"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"const":"data-intake-note"},"data":{"type":"object","properties":{"kind":{"const":"refocus"}},"required":["kind"]}},"required":["type","data"]},{"type":"object","properties":{"type":{"const":"tool-ask_user_question"},"toolCallId":{"type":"string"},"state":{"enum":["input-available","output-available","output-error"],"type":"string"},"input":{"type":"object","properties":{"question":{"type":"string"},"skippable":{"const":true},"required":{"const":true,"description":"The question is required, and was skipped earlier."},"choices":{"type":"array","items":{"type":"string"}},"stock":{"type":"object","properties":{"id":{"type":"string"},"company":{"type":"string"},"achieved":{"const":true}},"required":["id"]}},"required":["question"]},"output":{"type":"string"}},"required":["type","toolCallId","state","input"]}]}}},"required":["id","role","parts"]}}},"required":["messages"]}}}}}}},"/intake-links/{token}/chat/stop":{"post":{"operationId":"stopIntakeChatReply","summary":"Stop the assistant's reply, from the client's link","description":"Ends the reply the assistant is writing in this link's chat. What it had written is kept, and the message it answered stays used. Does nothing, and still succeeds, when no reply is being written. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Whether a reply was being written.","content":{"application/json":{"schema":{"type":"object","properties":{"stopped":{"type":"boolean"}},"required":["stopped"]}}}}}}},"/intake-links/{token}/answers":{"post":{"operationId":"saveIntakeAnswer","summary":"Save an answer, from the client's link","description":"Saves the client's answer to one question. Send the version of the answer you were looking at (0 for none): an answer that changed since is refused with its current value. Answers already sent cannot change. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"questionId":{"type":"string","minLength":1,"maxLength":64},"value":{"anyOf":[{"type":"string","maxLength":8000},{"type":"array","maxItems":20,"items":{"type":"object","properties":{"company":{"type":"string","maxLength":200,"default":""},"title":{"type":"string","maxLength":200,"default":""},"start":{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$","default":""},"end":{"anyOf":[{"type":"string","pattern":"^(\\d{4}(-\\d{2})?)?$"},{"const":"present"}],"default":""},"duties":{"type":"string","maxLength":4000,"default":""},"achievements":{"type":"array","maxItems":10,"items":{"type":"string","maxLength":1000},"default":[]}}}},{"type":"null"}]},"expectedVersion":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"The version of the answer the client was looking at; 0 when it has none yet."}},"required":["questionId","value","expectedVersion"]}}}},"responses":{"200":{"description":"The new version of the answer.","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["version"]}}}}}}},"/intake-links/{token}/submit":{"post":{"operationId":"submitIntakeAnswers","summary":"Send the answers, from the client's link","description":"Sends the answers to the writer. Refused while a required question has no answer. After it the answers cannot change. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"The answers were sent.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"const":"submitted"},"writerName":{"type":"string"}},"required":["status","writerName"]}}}}}}},"/intake-links/{token}/chat":{"post":{"operationId":"sendIntakeChatMessage","summary":"Chat about the questions, from the client's link","description":"Sends the client's message, or the choice they tapped, to the assistant asking the questions and streams its reply. The answers it hears are saved as it goes. Paid for by the writer the link came from. Refused with INTAKE_CHAT_UNAVAILABLE when the chat is off; the form always works. No authentication: the link's token is the key.","tags":["Client Links"],"parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"message":{"not":{}}},"required":["message"]}}}},"responses":{"200":{"description":"The reply, as a stream.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/applications":{"get":{"operationId":"listApplications","summary":"List job applications","description":"Returns the authenticated user's job applications, newest movement first, each with the posting it points at and the resume it uses. Filter by pipeline status or by a minimum match score. Pass clientId to list one client's applications instead of your own. Requires authentication.","tags":["Applications"],"parameters":[{"name":"status","in":"query","schema":{"type":"array","items":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"},"default":[]},"style":"deepObject","explode":true,"allowEmptyValue":true,"allowReserved":true},{"name":"minScore","in":"query","schema":{"type":"integer","minimum":0,"maximum":100,"description":"The lowest score of the resume the application sends: the tailored copy's once there is one."},"allowEmptyValue":true,"allowReserved":true},{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The user's applications with their postings.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."}},"required":["id","url","title","company","location","isRemote","employmentType","source","reviewError"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoredResume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}],"description":"The tailored copy this application sends, once there is one."},"tailoredResumeIds":{"type":"array","items":{"type":"string"},"description":"Every copy tailoring has written here, which a resume picker must not offer as a source."},"tailoredMatchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the tailored copy answers the posting, when it has been scored."},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."},"captchaAttemptId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The latest apply run, when a captcha stopped it and the user has yet to finish it in their browser."}},"required":["id","clientId","status","statusChangedAt","applySource","tailoredResumeId","matchScore","tailorError","tailorNoChange","submittedAt","createdAt","updatedAt","posting","resume","tailoredResume","tailoredResumeIds","tailoredMatchScore","tailoringLoweredMatch","captchaAttemptId"]}}}}}}},"post":{"operationId":"createApplication","summary":"Track a job link","description":"Creates an application from a job description link. Pasting a link that is already being pursued returns that application instead of opening a second one. Pass clientId to track it for one of your clients. Requires authentication.","tags":["Applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri","description":"The link to the job description."},"notes":{"type":"string","maxLength":10000},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["url"]}}}},"responses":{"200":{"description":"The application, new or existing.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."},"created":{"type":"boolean","description":"Whether the link opened a new application; false when it joined the one already under way."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch","created"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INVALID_JOB_URL"},"status":{"const":400},"message":{"type":"string","default":"That job link cannot be used."},"data":{}},"required":["defined","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/outcomes":{"get":{"operationId":"getApplicationOutcomes","summary":"How the applications that went out turned out","description":"Returns what became of the authenticated user's sent applications - how many advanced to a screening, interview or offer, how many were rejected, ghosted or withdrawn, and how many are still waiting - overall and broken down by the score of the resume that went out, by whether a tailored copy went out, and by whether a cover letter went with it. Rates are shares of the applications an employer has decided, and are null while too few have resolved to support one. Pass clientId for one client's applications instead of your own. Requires authentication.","tags":["Applications"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The outcome counts and, where the numbers support them, the rates.","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applications in this group that went out."},"advanced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Reached a screening, an interview or an offer, whatever happened after."},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rejected without having reached a screening first."},"ghosted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Marked as never answered."},"withdrawn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Withdrawn by the applicant; counts towards no rate."},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sent, with no answer yet."},"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advanced, rejected or ghosted: what the employer decided, and the denominator."},"advancedRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"advanced / resolved, or null below the floor for showing a rate."},"heardBackRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"(advanced + rejected) / resolved, or null below the floor for showing a rate."},"breakdowns":{"type":"object","properties":{"scoreBand":{"type":"array","items":{"type":"object","properties":{"key":{"enum":["high","good","fair","low","unscored"],"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applications in this group that went out."},"advanced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Reached a screening, an interview or an offer, whatever happened after."},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rejected without having reached a screening first."},"ghosted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Marked as never answered."},"withdrawn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Withdrawn by the applicant; counts towards no rate."},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sent, with no answer yet."},"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advanced, rejected or ghosted: what the employer decided, and the denominator."},"advancedRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"advanced / resolved, or null below the floor for showing a rate."},"heardBackRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"(advanced + rejected) / resolved, or null below the floor for showing a rate."}},"required":["key","sent","advanced","rejected","ghosted","withdrawn","waiting","resolved","advancedRate","heardBackRate"]},"description":"By the score of the resume that went out, highest band first; empty bands are left out."},"tailored":{"type":"array","items":{"type":"object","properties":{"key":{"enum":["tailored","original"],"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applications in this group that went out."},"advanced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Reached a screening, an interview or an offer, whatever happened after."},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rejected without having reached a screening first."},"ghosted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Marked as never answered."},"withdrawn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Withdrawn by the applicant; counts towards no rate."},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sent, with no answer yet."},"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advanced, rejected or ghosted: what the employer decided, and the denominator."},"advancedRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"advanced / resolved, or null below the floor for showing a rate."},"heardBackRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"(advanced + rejected) / resolved, or null below the floor for showing a rate."}},"required":["key","sent","advanced","rejected","ghosted","withdrawn","waiting","resolved","advancedRate","heardBackRate"]},"description":"By whether a tailored copy went out, rather than by which copy was merely preferred."},"coverLetter":{"type":"array","items":{"type":"object","properties":{"key":{"enum":["with","without"],"type":"string"},"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Applications in this group that went out."},"advanced":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Reached a screening, an interview or an offer, whatever happened after."},"rejected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Rejected without having reached a screening first."},"ghosted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Marked as never answered."},"withdrawn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Withdrawn by the applicant; counts towards no rate."},"waiting":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Sent, with no answer yet."},"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Advanced, rejected or ghosted: what the employer decided, and the denominator."},"advancedRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"advanced / resolved, or null below the floor for showing a rate."},"heardBackRate":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"(advanced + rejected) / resolved, or null below the floor for showing a rate."}},"required":["key","sent","advanced","rejected","ghosted","withdrawn","waiting","resolved","advancedRate","heardBackRate"]},"description":"By whether a letter went with it."}},"required":["scoreBand","tailored","coverLetter"]}},"required":["sent","advanced","rejected","ghosted","withdrawn","waiting","resolved","advancedRate","heardBackRate","breakdowns"]}}}}}}},"/applications/{id}":{"get":{"operationId":"getApplication","summary":"Get an application","description":"Returns a single application with its posting, the resume it uses, and the review's findings if it has been reviewed. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The application.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."},"applyAvailable":{"type":"boolean","description":"Whether this server runs assisted apply."},"tailoredResumeIds":{"type":"array","items":{"type":"string"},"description":"Every copy tailoring has written here, which the resume picker must not offer as a source."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch","applyAvailable","tailoredResumeIds"]}}}}}},"patch":{"operationId":"updateApplication","summary":"Update an application's notes or job link","description":"Replaces the free-text notes kept against an application, and/or points it at another job link (for a link that was a dead end, such as a shortened lnkd.in link, or the wrong job). Moving to another link keeps the notes, the resume and the tailored copies, and clears the match score and scorecard, which described the old posting; the next review reads the new one. Refused while a review, tailoring or application run is under way. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"notes":{"anyOf":[{"type":"string","maxLength":10000},{"type":"null"}],"description":"Replaces the notes; null clears them. Omit to leave them as they are."},"url":{"type":"string","maxLength":2048,"format":"uri","description":"Points the application at another job link. Its match score and scorecard are cleared, because they described the old posting."}}}}}},"responses":{"200":{"description":"The updated application.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INVALID_JOB_URL"},"status":{"const":400},"message":{"type":"string","default":"That job link cannot be used."},"data":{}},"required":["defined","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":"deleteApplication","summary":"Stop tracking an application","description":"Deletes the application. The posting it pointed at is deleted with it when no other application uses that link. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The application was deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/applications/{id}/review":{"post":{"operationId":"reviewApplication","summary":"Read a posting and score the chosen resume against it","description":"Fetches the application's job link, parses the posting, and scores the chosen resume against it. A LinkedIn link is never fetched by the server: send the posting as the browser read it in `posting`, which is refused for any other link. Runs on the server-configured engine by default, falling back to the user's tested provider. A posting that cannot be read is recorded on the application rather than returned as an error. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string","description":"The AI provider to read the posting with."},"posting":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":50000,"description":"The posting's description, as the browser read it."},"title":{"type":"string","maxLength":300,"description":"The role title LinkedIn states."},"company":{"type":"string","maxLength":200,"description":"The company LinkedIn states."},"location":{"type":"string","maxLength":200,"description":"The location LinkedIn states."},"workplaceType":{"type":"string","maxLength":40,"description":"LinkedIn's workplace code: 1 on-site, 2 remote, 3 hybrid."},"employmentStatus":{"type":"string","maxLength":40,"description":"LinkedIn's employment status, such as FULL_TIME."}},"required":["text"],"description":"The posting as the browser read it. Needed for a LinkedIn link, which the server never fetches; refused for any other link."}}}}}},"responses":{"200":{"description":"The application, reviewed or carrying the reason the review stopped.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/rescore":{"post":{"operationId":"rescoreApplication","summary":"Score the chosen resume against the posting already read","description":"Scores the application's chosen resume against the posting text its review already stored, without fetching the page again, and replaces the match. The posting and the status are unchanged. Requires a chosen resume and a reviewed posting. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string","description":"The AI provider to score the resume with."}}}}}},"responses":{"200":{"description":"The application with its new match.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider could not score the resume."},"data":{}},"required":["defined","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/{id}/tailor":{"post":{"operationId":"tailorApplicationResume","summary":"Tailor a copy of the chosen resume to the posting","description":"Rewrites a copy of the application's chosen resume for its posting - the headline, the summary, and descriptions - and hides or reorders skills and projects. It never adds a skill, figure, or fact the resume does not already state; edits that would are refused and listed. The copy is then scored against the posting. The source resume is never changed. Requires a chosen resume and a reviewed posting. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"aiProviderId":{"type":"string","description":"The AI provider to tailor the resume with."}}}}}},"responses":{"200":{"description":"The application with its tailored copy, or carrying the reason tailoring stopped.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/hiring-review":{"get":{"operationId":"getHiringReview","summary":"Read the hiring-manager review of an application","description":"Returns the application's hiring-manager review (a verdict and at most 6 flags), and whether it is out of date because the sent resume, the cover letter or the posting text changed since. The review is advice: it never blocks applying. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The review and whether it is out of date.","content":{"application/json":{"schema":{"type":"object","properties":{"review":{"anyOf":[{"type":"object","properties":{"verdict":{"anyOf":[{"enum":["strong","mixed","weak"],"type":"string"},{"type":"null"}],"description":"How the application reads; null until a review finishes."},"flags":{"type":"array","items":{"type":"object","properties":{"part":{"enum":["resume","letter"],"type":"string"},"where":{"type":"string","maxLength":80},"issue":{"type":"string","maxLength":240},"suggestion":{"type":"string","maxLength":240}},"required":["part","where","issue","suggestion"]},"description":"What would give a hiring manager pause, most consequential first."},"runningSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a review started, while one is still running; null otherwise."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review could not finish, if it could not."},"modelMeta":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},{"type":"null"}],"description":"The model that wrote the result."}},"required":["verdict","flags","runningSince","error","modelMeta"]},{"type":"null"}],"description":"The review, or null when none was run."},"stale":{"type":"object","properties":{"review":{"type":"boolean","description":"The resume, the letter or the posting changed since the review was written."}},"required":["review"]}},"required":["review","stale"]}}}}}},"post":{"operationId":"runHiringReview","summary":"Review the application as a hiring manager","description":"A separate AI read of the resume and cover letter the application sends, against its posting. Returns a verdict (strong, mixed or weak) and at most 6 flags, each naming the resume or the letter. Uses 1 credit. Refused with CONFLICT while a review of this application is running. A review the AI could not finish is recorded as its error. It never blocks applying. Requires a chosen resume and a reviewed posting. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The review, or the reason it could not finish.","content":{"application/json":{"schema":{"type":"object","properties":{"review":{"anyOf":[{"type":"object","properties":{"verdict":{"anyOf":[{"enum":["strong","mixed","weak"],"type":"string"},{"type":"null"}],"description":"How the application reads; null until a review finishes."},"flags":{"type":"array","items":{"type":"object","properties":{"part":{"enum":["resume","letter"],"type":"string"},"where":{"type":"string","maxLength":80},"issue":{"type":"string","maxLength":240},"suggestion":{"type":"string","maxLength":240}},"required":["part","where","issue","suggestion"]},"description":"What would give a hiring manager pause, most consequential first."},"runningSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a review started, while one is still running; null otherwise."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review could not finish, if it could not."},"modelMeta":{"anyOf":[{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},{"type":"null"}],"description":"The model that wrote the result."}},"required":["verdict","flags","runningSince","error","modelMeta"]},{"type":"null"}],"description":"The review, or null when none was run."},"stale":{"type":"object","properties":{"review":{"type":"boolean","description":"The resume, the letter or the posting changed since the review was written."}},"required":["review"]}},"required":["review","stale"]}}}}}}},"/applications/{id}/hiring-review/revise":{"post":{"operationId":"reviseFromHiringReview","summary":"Write the resume and/or the letter again from the review's flags","description":"Runs tailoring and/or the cover letter again with the review's suggestions for that part as guidance. The suggestions are advice: the same checks refuse anything the resume does not state. Each part uses 1 credit. Requires a finished review. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"parts":{"type":"array","minItems":1,"maxItems":2,"items":{"enum":["resume","letter"],"type":"string"},"description":"What to write again: the tailored resume, the cover letter, or both."}},"required":["parts"]}}}},"responses":{"200":{"description":"The application with its rewritten resume and/or letter.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider could not write a cover letter. Try again."},"data":{}},"required":["defined","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/{id}/apply":{"post":{"operationId":"applyToJob","summary":"Fill the application form with the tailored resume","description":"Starts an assisted apply run: Hermes opens the posting, reaches the company's form (never signing in to LinkedIn or anywhere else), fills it from the tailored resume and the apply profile, attaches the tailored resume as a PDF, and waits. Nothing is submitted until submitApplication, unless the apply profile turns on automatic submission. Answers given here are saved to the apply profile first. Requires a tailored copy. An application sent by HireSweep's browser takes 25 credits (10 from your own browser). Refused with APPLY_IN_OWN_BROWSER, before any credit is held, when the form asks the candidate to sign in, create an account or enter a code the site sends them (Workday, SuccessFactors, Oracle Recruiting, ADP): fill those in the user's own browser instead. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"array","maxItems":50,"items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]},"description":"Answers to a blocked run's questions, saved to the apply profile before this run starts."},"applyUrl":{"type":"string","maxLength":2000,"description":"The employer's own form for a LinkedIn posting, read in the user's browser. The run starts there."}}}}}},"responses":{"200":{"description":"The application, now applying.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"APPLY_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"reason":{"enum":["allowance","daily","hosted","in_progress","spend_cap"],"type":"string"},"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["reason","resetsAt"]}},"required":["defined","code","status","message","data"]},{"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":"APPROVAL_REQUIRED"},"status":{"const":409},"message":{"type":"string","default":"This client approves each application before it is sent. Ask them to approve this one first."},"data":{"type":"object","properties":{"reason":{"enum":["missing","pending","declined","stale"],"type":"string"}},"required":["reason"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"APPLY_IN_OWN_BROWSER"},"status":{"const":409},"message":{"type":"string","default":"This job's form asks you to sign in, create an account or enter a code it sends you before it shows any questions, and HireSweep's browser can't do that for you. Fill it in your own browser instead."},"data":{}},"required":["defined","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/{id}/attempts/{attemptId}/submit":{"post":{"operationId":"submitApplication","summary":"Submit the filled application form","description":"The user's go-ahead for a run waiting on its filled form: it presses the form's submit and reports the site's confirmation. Only a run waiting for a decision can be submitted. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The application, with its run submitting.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/attempts/{attemptId}/cancel":{"post":{"operationId":"cancelApplication","summary":"Stop an assisted apply run without submitting","description":"Ends a run that is filling or waiting on its form, without submitting, and puts the application back where it was. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The application, back where it was.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/attempts/{attemptId}/answers":{"post":{"operationId":"answerApplyQuestions","summary":"Answer the questions a running application form asked","description":"Answers the required questions a run waiting on them put to the user. The answers are saved to the apply profile for later forms, and the run fills them in and goes on. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]},"description":"One answer to each question the running form asked, saved to the apply profile too."}},"required":["answers"]}}}},"responses":{"200":{"description":"The application, with its run filling the form again.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/attempts/{attemptId}/captcha/input":{"post":{"operationId":"sendCaptchaInput","summary":"Click or type in the browser of a run waiting on a captcha","description":"Hands the user's clicks, pointer moves and keys to the browser of a run that stopped at a captcha only they can solve, as they work it in the live view. Only while the run waits on it. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","minItems":1,"maxItems":40,"items":{"anyOf":[{"type":"object","properties":{"type":{"const":"input_mouse"},"eventType":{"enum":["mousePressed","mouseReleased","mouseMoved","mouseWheel"],"type":"string"},"x":{"type":"integer","minimum":0,"maximum":10000},"y":{"type":"integer","minimum":0,"maximum":10000},"button":{"enum":["none","left","middle","right"],"type":"string"},"clickCount":{"type":"integer","minimum":0,"maximum":3},"modifiers":{"type":"integer","minimum":0,"maximum":15},"deltaX":{"type":"number","minimum":-5000,"maximum":5000},"deltaY":{"type":"number","minimum":-5000,"maximum":5000}},"required":["type","eventType","x","y"]},{"type":"object","properties":{"type":{"const":"input_keyboard"},"eventType":{"enum":["keyDown","keyUp","char"],"type":"string"},"key":{"type":"string","maxLength":32},"code":{"type":"string","maxLength":32},"text":{"type":"string","maxLength":4},"windowsVirtualKeyCode":{"type":"integer","minimum":0,"maximum":255},"modifiers":{"type":"integer","minimum":0,"maximum":15}},"required":["type","eventType","key"]}]},"description":"Clicks, pointer moves and keys for the run's browser, in viewport pixels of its last frame."}},"required":["events"]}}}},"responses":{"200":{"description":"How many events were handed on.","content":{"application/json":{"schema":{"type":"object","properties":{"sent":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["sent"]}}}}}}},"/applications/{id}/attempts/{attemptId}/captcha":{"post":{"operationId":"finishCaptcha","summary":"Finish a captcha a running application form waited on","description":"Ends the user's part in a captcha the run waited on: solved lets the run go on with the form; handoff has it stop, and the user finishes in their own browser with the form filled in for them. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"attemptId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"result":{"enum":["solved","handoff"],"type":"string","description":"solved: the run goes on with the form. handoff: the run stops, and the user finishes in their own browser."}},"required":["result"]}}}},"responses":{"200":{"description":"The application, with its run going on or stopping.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{applicationId}/answers/draft":{"post":{"operationId":"draftApplyAnswer","summary":"Draft an answer to an application form's question","description":"Writes the candidate's answer to one question an application form asks, from the posting (the company, the role and its description) and the resume the application sends, with the answers saved to the apply profile. It never states a fact the resume or profile does not. Nothing is saved; the user checks the draft first. Uses 1 credit. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":2000,"description":"The question as the form, or the agent, asks it."},"draft":{"type":"string","maxLength":5000,"default":"","description":"What the user already wrote, to improve rather than replace."}},"required":["question"]}}}},"responses":{"200":{"description":"The drafted answer.","content":{"application/json":{"schema":{"type":"object","properties":{"answer":{"type":"string"}},"required":["answer"]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider could not write an answer. Try again."},"data":{}},"required":["defined","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/{id}/cover-letter":{"post":{"operationId":"generateCoverLetter","summary":"Write the application's cover letter","description":"Writes a cover letter of about 250 words for the application, from the resume it sends (the tailored copy when it sends that) and the posting, and keeps it on the application in place of any earlier one. Tone is one of neutral, warm, formal, concise. It never states an employer, skill, number or claim about the company that the resume or posting does not; a letter that does is written again once, and refused if it still does. Requires a reviewed posting. Uses 1 credit. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"tone":{"enum":["neutral","warm","formal","concise"],"type":"string","default":"neutral","description":"How the letter reads."}}}}}},"responses":{"200":{"description":"The application with its new cover letter.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}},"502":{"description":"502","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"BAD_GATEWAY"},"status":{"const":502},"message":{"type":"string","default":"The AI provider could not write a cover letter. Try again."},"data":{}},"required":["defined","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":"saveCoverLetter","summary":"Save the user's edit of the application's cover letter","description":"Replaces the application's cover letter with the user's own text; empty text removes it. Apply runs paste it into a form's cover letter text field. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","maxLength":10000,"description":"The letter as plain text, or empty to remove it."}},"required":["text"]}}}},"responses":{"200":{"description":"The application with the saved cover letter.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/apply-profile":{"get":{"operationId":"getApplyProfile","summary":"Get the apply profile","description":"Returns what the user answers once for every application form: contact details, work authorization (per country, and as free text), sponsorship, relocation, earliest start date, address, salary, notice period, links, references, security clearance, driver's license, voluntary self-identification answers (each declines until set), saved answers to questions forms have asked, and the submit mode (review, hybrid with its minimum match score, or auto). Pass clientId for one client's profile. Requires authentication.","tags":["Applications"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The apply profile.","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","maxLength":64},"location":{"type":"string","maxLength":200},"workAuthorization":{"type":"string","maxLength":500},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"workAuthorizations":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"status":{"enum":["citizen","permanent_resident","authorized","needs_sponsorship","not_authorized"],"type":"string"}},"required":["country","status"]}},"willingToRelocate":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"earliestStartDate":{"type":"string"},"salaryExpectation":{"type":"string","maxLength":200},"noticePeriod":{"type":"string","maxLength":200},"address":{"type":"object","properties":{"street":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"region":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":32},"country":{"type":"string","pattern":"^([A-Z]{2})?$"}},"required":["street","city","region","postalCode","country"]},"linkedinUrl":{},"githubUrl":{},"portfolioUrl":{},"references":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"relationship":{"type":"string","maxLength":120},"company":{"type":"string","maxLength":200},"email":{"anyOf":[{"const":""},{"type":"string","format":"email"}]},"phone":{"type":"string","maxLength":64}},"required":["name","relationship","company","email","phone"]}},"securityClearance":{"type":"string","maxLength":200},"driversLicense":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"over18":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"citizenships":{"type":"array","maxItems":5,"items":{"type":"string","pattern":"^[A-Z]{2}$"}},"selfIdentification":{"type":"object","properties":{"gender":{"enum":["decline","female","male","non_binary","declined","answered"],"type":"string"},"raceEthnicity":{"enum":["decline","american_indian_or_alaska_native","asian","black_or_african_american","hispanic_or_latino","native_hawaiian_or_pacific_islander","white","two_or_more","declined","answered"],"type":"string"},"veteranStatus":{"enum":["decline","not_protected_veteran","protected_veteran","declined","answered"],"type":"string"},"disabilityStatus":{"enum":["decline","no","yes","declined","answered"],"type":"string"}},"required":["gender","raceEthnicity","veteranStatus","disabilityStatus"]},"answers":{"type":"array","maxItems":200,"items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"submitMode":{"enum":["review","hybrid","auto"],"type":"string"},"autoSubmitMinScore":{"type":"integer","minimum":50,"maximum":100},"autoApplyDailyLimit":{"type":"integer","minimum":1,"maximum":15},"prepareOvernight":{"type":"boolean"},"autoApplyNoCreditsNoticeAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["phone","location","workAuthorization","requiresSponsorship","workAuthorizations","willingToRelocate","earliestStartDate","salaryExpectation","noticePeriod","address","references","securityClearance","driversLicense","over18","citizenships","selfIdentification","answers","submitMode","autoSubmitMinScore","autoApplyDailyLimit","prepareOvernight","autoApplyNoCreditsNoticeAt"]}}}}}},"put":{"operationId":"saveApplyProfile","summary":"Save the apply profile","description":"Replaces the apply profile, or one client's with clientId. Fields added after a caller was written may be left out and take their empty value; a caller's deprecated autoSubmit stands for the submit mode it leaves out. Requires authentication.","tags":["Applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","maxLength":64},"location":{"type":"string","maxLength":200},"workAuthorization":{"type":"string","maxLength":500},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"workAuthorizations":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"status":{"enum":["citizen","permanent_resident","authorized","needs_sponsorship","not_authorized"],"type":"string"}},"required":["country","status"]}},"willingToRelocate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"earliestStartDate":{"type":"string","default":""},"salaryExpectation":{"type":"string","maxLength":200},"noticePeriod":{"type":"string","maxLength":200},"address":{"type":"object","properties":{"street":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"region":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":32},"country":{"type":"string","pattern":"^([A-Z]{2})?$"}},"required":["street","city","region","postalCode","country"],"default":{"street":"","city":"","region":"","postalCode":"","country":""}},"linkedinUrl":{"type":"string","maxLength":500},"githubUrl":{"type":"string","maxLength":500},"portfolioUrl":{"type":"string","maxLength":500},"references":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"relationship":{"type":"string","maxLength":120},"company":{"type":"string","maxLength":200},"email":{"type":"string","maxLength":254},"phone":{"type":"string","maxLength":64}},"required":["name","relationship","company","email","phone"]},"default":[]},"securityClearance":{"type":"string","maxLength":200,"default":""},"driversLicense":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"over18":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null},"citizenships":{"type":"array","maxItems":5,"items":{"type":"string","pattern":"^[A-Z]{2}$"},"default":[]},"selfIdentification":{"type":"object","properties":{"gender":{"enum":["decline","female","male","non_binary"],"type":"string"},"raceEthnicity":{"enum":["decline","american_indian_or_alaska_native","asian","black_or_african_american","hispanic_or_latino","native_hawaiian_or_pacific_islander","white","two_or_more"],"type":"string"},"veteranStatus":{"enum":["decline","not_protected_veteran","protected_veteran"],"type":"string"},"disabilityStatus":{"enum":["decline","no","yes"],"type":"string"}},"required":["gender","raceEthnicity","veteranStatus","disabilityStatus"],"default":{"gender":"decline","raceEthnicity":"decline","veteranStatus":"decline","disabilityStatus":"decline"}},"answers":{"type":"array","maxItems":200,"items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"submitMode":{"enum":["review","hybrid","auto"],"type":"string"},"autoSubmitMinScore":{"type":"integer","minimum":50,"maximum":100,"default":80},"autoApplyDailyLimit":{"type":"integer","minimum":1,"maximum":15,"default":10},"prepareOvernight":{"type":"boolean","default":false},"autoSubmit":{"type":"boolean","description":"Deprecated: send submitMode instead. When submitMode is left out, true reads as auto, false as review."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["phone","location","workAuthorization","requiresSponsorship","salaryExpectation","noticePeriod","linkedinUrl","githubUrl","portfolioUrl","answers"]}}}},"responses":{"200":{"description":"The saved apply profile.","content":{"application/json":{"schema":{"type":"object","properties":{"phone":{"type":"string","maxLength":64},"location":{"type":"string","maxLength":200},"workAuthorization":{"type":"string","maxLength":500},"requiresSponsorship":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"workAuthorizations":{"type":"array","maxItems":15,"items":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$"},"status":{"enum":["citizen","permanent_resident","authorized","needs_sponsorship","not_authorized"],"type":"string"}},"required":["country","status"]}},"willingToRelocate":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"earliestStartDate":{"type":"string"},"salaryExpectation":{"type":"string","maxLength":200},"noticePeriod":{"type":"string","maxLength":200},"address":{"type":"object","properties":{"street":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"region":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":32},"country":{"type":"string","pattern":"^([A-Z]{2})?$"}},"required":["street","city","region","postalCode","country"]},"linkedinUrl":{},"githubUrl":{},"portfolioUrl":{},"references":{"type":"array","maxItems":5,"items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"relationship":{"type":"string","maxLength":120},"company":{"type":"string","maxLength":200},"email":{"anyOf":[{"const":""},{"type":"string","format":"email"}]},"phone":{"type":"string","maxLength":64}},"required":["name","relationship","company","email","phone"]}},"securityClearance":{"type":"string","maxLength":200},"driversLicense":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"over18":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"citizenships":{"type":"array","maxItems":5,"items":{"type":"string","pattern":"^[A-Z]{2}$"}},"selfIdentification":{"type":"object","properties":{"gender":{"enum":["decline","female","male","non_binary","declined","answered"],"type":"string"},"raceEthnicity":{"enum":["decline","american_indian_or_alaska_native","asian","black_or_african_american","hispanic_or_latino","native_hawaiian_or_pacific_islander","white","two_or_more","declined","answered"],"type":"string"},"veteranStatus":{"enum":["decline","not_protected_veteran","protected_veteran","declined","answered"],"type":"string"},"disabilityStatus":{"enum":["decline","no","yes","declined","answered"],"type":"string"}},"required":["gender","raceEthnicity","veteranStatus","disabilityStatus"]},"answers":{"type":"array","maxItems":200,"items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"submitMode":{"enum":["review","hybrid","auto"],"type":"string"},"autoSubmitMinScore":{"type":"integer","minimum":50,"maximum":100},"autoApplyDailyLimit":{"type":"integer","minimum":1,"maximum":15},"prepareOvernight":{"type":"boolean"},"autoApplyNoCreditsNoticeAt":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}},"required":["phone","location","workAuthorization","requiresSponsorship","workAuthorizations","willingToRelocate","earliestStartDate","salaryExpectation","noticePeriod","address","references","securityClearance","driversLicense","over18","citizenships","selfIdentification","answers","submitMode","autoSubmitMinScore","autoApplyDailyLimit","prepareOvernight","autoApplyNoCreditsNoticeAt"]}}}}}}},"/apply-profile/settings":{"patch":{"operationId":"updateApplySettings","summary":"Change the apply automation settings","description":"Changes the submit mode (review, hybrid, or auto), the minimum match score a hybrid run needs before it sends a form, how many applications a repeating search may start on its own per day, and whether a repeating search in review mode prepares its top matches overnight (tailors a resume and writes a cover letter for each, and sends nothing). Only the fields sent change, and the rest of the apply profile is left exactly as it is. Pass clientId for one client's profile. Requires authentication.","tags":["Applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"submitMode":{"enum":["review","hybrid","auto"],"type":"string"},"autoSubmitMinScore":{"type":"integer","minimum":50,"maximum":100},"autoApplyDailyLimit":{"type":"integer","minimum":1,"maximum":15},"prepareOvernight":{"type":"boolean"},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The automation settings as saved.","content":{"application/json":{"schema":{"type":"object","properties":{"submitMode":{"enum":["review","hybrid","auto"],"type":"string"},"autoSubmitMinScore":{"type":"integer","minimum":50,"maximum":100},"autoApplyDailyLimit":{"type":"integer","minimum":1,"maximum":15},"prepareOvernight":{"type":"boolean"}},"required":["submitMode","autoSubmitMinScore","autoApplyDailyLimit","prepareOvernight"]}}}}}}},"/applications/{id}/site-playbook":{"get":{"operationId":"getSitePlaybook","summary":"Get what assisted apply learned about this application's site","description":"Returns the procedural notes earlier assisted-apply runs recorded about this application's form host — where fields are, quirks, and questions it keeps asking — or null when nothing has been learned yet. Never holds the candidate's own data. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The site playbook, or null when nothing has been learned yet.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"host":{"type":"string","minLength":1,"maxLength":255},"atsVendor":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}]},"hints":{"type":"array","maxItems":40,"items":{"type":"object","properties":{"kind":{"enum":["route","selector","mapping","quirk","question"],"type":"string"},"text":{"type":"string","minLength":1,"maxLength":300}},"required":["kind","text"]}},"applyCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"successCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["host","atsVendor","hints","applyCount","successCount"]},{"type":"null"}]}}}}}},"delete":{"operationId":"forgetSitePlaybook","summary":"Forget what assisted apply learned about this application's site","description":"Deletes the learned notes for this application's form host, so the next run starts fresh. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The playbook was forgotten.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/apply-profile/answers":{"post":{"operationId":"saveBrowserFillAnswers","summary":"Save answers given to an application form's questions","description":"Adds the user's answers to questions an application form asked to the apply profile, replacing any earlier answer to the same question, so later forms are filled without asking. Requires authentication.","tags":["Applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"answers":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]}},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["answers"]}}}},"responses":{"200":{"description":"The answers were saved.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"const":true}},"required":["ok"]}}}}}}},"/applications/{applicationId}/fill/resume-file":{"post":{"operationId":"getBrowserFillResumeFile","summary":"Get a short-lived link to the resume an application sends","description":"Returns a signed link, valid for a few minutes, to the PDF of the resume the application sends (its tailored copy or the original, as chosen), named after the candidate, for the browser extension to attach to the form. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The signed PDF link and the file's name.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"filename":{"type":"string"}},"required":["url","filename"]}}}}}}},"/applications/{applicationId}/fill/agent":{"post":{"operationId":"streamAgentFill","summary":"Run the agent that fills an application form in the user's browser","description":"Streams one stretch of the agent that fills the application form open in the user's own browser. The agent's browser steps are run by the HireSweep page through the browser extension, which sends the conversation back with each result. The agent reports every question and answer for the user to review; it presses the site's Submit only on a turn where the user pressed Submit. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":600,"items":{"not":{}}},"today":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The candidate's own calendar date (YYYY-MM-DD), which a site dates an upload by."}},"required":["messages"]}}}},"responses":{"200":{"description":"The agent's steps, as a UI message stream.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"APPLY_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"reason":{"enum":["allowance","daily","hosted","in_progress","spend_cap"],"type":"string"},"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["reason","resetsAt"]}},"required":["defined","code","status","message","data"]},{"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":"APPROVAL_REQUIRED"},"status":{"const":409},"message":{"type":"string","default":"This client approves each application before it is sent. Ask them to approve this one first."},"data":{"type":"object","properties":{"reason":{"enum":["missing","pending","declined","stale"],"type":"string"}},"required":["reason"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{applicationId}/fill/agent/recipe":{"post":{"operationId":"getAgentFillRecipe","summary":"Start a fill run that replays a learned recipe in the user's browser","description":"Starts a fill run that needs no model: holds the application's credits, names the run and writes its row, and returns the recipe settled for the form (null when none is, in which case the browser extension's bundled recipe for `vendor` is replayed if it has one) with the candidate's values the recipe's steps write. The values go to the HireSweep page alone. Self-identification answers are never among them, and nothing returned lets the replay press the site's Submit. Null when there is nothing to replay: the page then starts the agent. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The run's recipe, vendor, values and name, or null when there is nothing to replay.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"recipe":{"anyOf":[{"type":"object","properties":{"version":{"const":1},"scope":{"enum":["site","ats"],"type":"string"},"key":{"type":"string","minLength":1,"maxLength":253},"pages":{"type":"array","minItems":1,"maxItems":30,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"gates":{"type":"array","maxItems":100,"items":{"anyOf":[{"type":"object","properties":{"action":{"const":"assert"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"waitFor"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"handoff"},"hooks":{"type":"array","minItems":0,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0},"reason":{"enum":["real-input","self-id","captcha","email-code","credential","identity-provider"],"type":"string"}},"required":["action","hooks","reason"],"additionalProperties":false}]}},"fields":{"type":"array","maxItems":100,"items":{"anyOf":[{"type":"object","properties":{"action":{"const":"pointerClick"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"pick"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"pickPath"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"commitText"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"setDateParts"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"addRow"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"waitFor"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"assert"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"handoff"},"hooks":{"type":"array","minItems":0,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0},"reason":{"enum":["real-input","self-id","captcha","email-code","credential","identity-provider"],"type":"string"}},"required":["action","hooks","reason"],"additionalProperties":false}]}},"advance":{"anyOf":[{"type":"object","properties":{"action":{"const":"advance"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"null"}]}},"required":["id","gates","fields","advance"],"additionalProperties":false}},"minFeature":{"type":"string","minLength":1,"maxLength":64},"seen":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastSeenAt":{"type":"string","format":"date-time"}},"required":["version","scope","key","pages","minFeature","seen","lastSeenAt"],"additionalProperties":false},{"type":"null"}]},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}]},"values":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"runId":{"type":"string"}},"required":["recipe","vendor","values","runId"]},{"type":"null"}]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"APPLY_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"reason":{"enum":["allowance","daily","hosted","in_progress","spend_cap"],"type":"string"},"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["reason","resetsAt"]}},"required":["defined","code","status","message","data"]},{"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":"APPROVAL_REQUIRED"},"status":{"const":409},"message":{"type":"string","default":"This client approves each application before it is sent. Ask them to approve this one first."},"data":{"type":"object","properties":{"reason":{"enum":["missing","pending","declined","stale"],"type":"string"}},"required":["reason"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/applications/{applicationId}/fill/agent/recipe/resume":{"post":{"operationId":"resumeAgentFillRecipe","summary":"Pick a recipe replay up again where it stood","description":"For a replay that was interrupted (the page reloaded, a second tab opened): the run's recipe settled for the form (null when the extension's bundled recipe for `vendor` is the one being replayed), the candidate's values the recipe's steps write, and the page and step to carry on from. Starts nothing and holds no credit: the run is the one the application already holds. Switches the stored permission to press the site's Submit off, and nothing returned lets the replay press it. Null when there is nothing to carry on: recipes are not switched on, the run followed no recipe or has ended, or the recipe changed since the run began. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The run's recipe, vendor, values, name and resume point, or null.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"recipe":{"anyOf":[{"type":"object","properties":{"version":{"const":1},"scope":{"enum":["site","ats"],"type":"string"},"key":{"type":"string","minLength":1,"maxLength":253},"pages":{"type":"array","minItems":1,"maxItems":30,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"gates":{"type":"array","maxItems":100,"items":{"anyOf":[{"type":"object","properties":{"action":{"const":"assert"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"waitFor"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"handoff"},"hooks":{"type":"array","minItems":0,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0},"reason":{"enum":["real-input","self-id","captcha","email-code","credential","identity-provider"],"type":"string"}},"required":["action","hooks","reason"],"additionalProperties":false}]}},"fields":{"type":"array","maxItems":100,"items":{"anyOf":[{"type":"object","properties":{"action":{"const":"pointerClick"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"pick"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"pickPath"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"commitText"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"setDateParts"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"addRow"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"waitFor"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"assert"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"handoff"},"hooks":{"type":"array","minItems":0,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0},"reason":{"enum":["real-input","self-id","captcha","email-code","credential","identity-provider"],"type":"string"}},"required":["action","hooks","reason"],"additionalProperties":false}]}},"advance":{"anyOf":[{"type":"object","properties":{"action":{"const":"advance"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"null"}]}},"required":["id","gates","fields","advance"],"additionalProperties":false}},"minFeature":{"type":"string","minLength":1,"maxLength":64},"seen":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastSeenAt":{"type":"string","format":"date-time"}},"required":["version","scope","key","pages","minFeature","seen","lastSeenAt"],"additionalProperties":false},{"type":"null"}]},"vendor":{"anyOf":[{"type":"string"},{"type":"null"}]},"values":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"runId":{"type":"string"},"pageIndex":{"type":"integer","minimum":0,"maximum":9007199254740991},"stepIndex":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["recipe","vendor","values","runId","pageIndex","stepIndex"]},{"type":"null"}]}}}}}}},"/applications/{applicationId}/fill/agent/recipe/run":{"post":{"operationId":"recordAgentFillReplay","summary":"Write down that a fill run was replayed from a recipe with no model","description":"The measurement of a replay that ended: one row for the run in the apply funnel, with the recipe scope it replayed from, no model calls, and how many steps a model turn had to mend (0 for a clean replay). It names the application's own run and takes no id from the caller, so it cannot reach another account's row. It is the run's measurement and is written whatever position the recipe switch is in. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"recipeScope":{"enum":["site","ats"],"type":"string","description":"Where the replayed recipe was learned: the site, or the ATS vendor."},"stage":{"enum":["opened","reached-form","filled"],"type":"string","description":"The furthest stage the replay reached."},"repaired":{"type":"integer","minimum":0,"maximum":100,"description":"Steps a model turn had to mend."}},"required":["recipeScope","stage","repaired"]}}}},"responses":{"200":{"description":"The run's measurement is written, or there was no run to write it for.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/applications/{applicationId}/fill/agent/recipe/facts":{"post":{"operationId":"getAgentFillFacts","summary":"Read the candidate's facts a fill run may name in a recipe","description":"The candidate's scalar facts by the name a recipe step writes them under, for the HireSweep page to tell which fact a field it filled took, so the step it reports names that fact and never carries the value. They go to the page alone. Self-identification answers are never among them. Null when recipes are switched off. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The facts by name, or null when recipes are switched off.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"values":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}}},"required":["values"]},{"type":"null"}]}}}}}}},"/applications/{applicationId}/fill/agent/recipe/sighting":{"post":{"operationId":"reportAgentFillRecipe","summary":"Report the steps a filled form was filled with, for later runs to replay","description":"The steps of one filled form, as the browser extension saw them: per page, the action, the name of the fact it wrote and the stable hooks that find the element. A step has no key for a value, a self-identification answer, a trap field or a list of hosts, and a body that carries one is refused. A run reports once; the steps are scrubbed again on the server and folded into the recipe for the form's site and ATS vendor, which later runs replay only after two runs have agreed. Does nothing when recipes are switched off. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"The ID of the run that filled the form."},"pages":{"type":"array","minItems":1,"maxItems":30,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"gates":{"type":"array","maxItems":100,"items":{"anyOf":[{"type":"object","properties":{"action":{"const":"assert"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"waitFor"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"handoff"},"hooks":{"type":"array","minItems":0,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0},"reason":{"enum":["real-input","self-id","captcha","email-code","credential","identity-provider"],"type":"string"}},"required":["action","hooks","reason"],"additionalProperties":false}]}},"fields":{"type":"array","maxItems":100,"items":{"anyOf":[{"type":"object","properties":{"action":{"const":"pointerClick"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"pick"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"pickPath"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"commitText"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"setDateParts"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"addRow"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"waitFor"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"assert"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"object","properties":{"action":{"const":"handoff"},"hooks":{"type":"array","minItems":0,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0},"reason":{"enum":["real-input","self-id","captcha","email-code","credential","identity-provider"],"type":"string"}},"required":["action","hooks","reason"],"additionalProperties":false}]}},"advance":{"anyOf":[{"type":"object","properties":{"action":{"const":"advance"},"hooks":{"type":"array","minItems":1,"maxItems":8,"items":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false}},"target":{"type":"string","minLength":1,"maxLength":120},"confirm":{"type":"object","properties":{"kind":{"enum":["automationId","name","dataTest","dataQa","dataUi","ariaLabel","labelText","className","css","xpath"],"type":"string"},"value":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","value"],"additionalProperties":false},"timeoutMs":{"type":"integer","minimum":-9007199254740991,"maximum":60000,"exclusiveMinimum":0}},"required":["action","hooks"],"additionalProperties":false},{"type":"null"}]}},"required":["id","gates","fields","advance"],"additionalProperties":false},"description":"The form's pages, in order."}},"required":["runId","pages"]}}}},"responses":{"200":{"description":"Whether the report was taken: false when the run has reported already, or recipes are off.","content":{"application/json":{"schema":{"type":"object","properties":{"taken":{"type":"boolean"}},"required":["taken"]}}}}}}},"/applications/{applicationId}/fill/agent/plan":{"post":{"operationId":"planMappedFill","summary":"Plan how to fill the fields HireSweep already knows on the open form","description":"Matches the fields earlier applications to this form taught HireSweep against the elements of the application tab's latest snapshot, and returns the steps that fill them from the candidate's own data. The steps are for the HireSweep page to run through the browser extension; the agent that fills the form is never sent them. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"elements":{"type":"array","maxItems":400,"items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":32},"role":{"type":"string","maxLength":40},"name":{"type":"string","maxLength":500},"context":{"type":"string","maxLength":500},"options":{"type":"array","maxItems":100,"items":{"type":"string","maxLength":500}},"disabled":{"type":"boolean"}},"required":["ref","role"]},"description":"The elements of the application tab's latest snapshot."}},"required":["elements"]}}}},"responses":{"200":{"description":"The steps that fill the known fields, and the labels that found no single field on the page.","content":{"application/json":{"schema":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string"},"label":{"type":"string"},"text":{"type":"string"},"option":{"type":"string"},"checked":{"type":"boolean"},"choose":{"type":"string"}},"required":["ref","label"]}},"unmatched":{"type":"array","items":{"type":"string"}}},"required":["fields","unmatched"]}}}}}}},"/applications/{applicationId}/fill/agent/cancel":{"post":{"operationId":"cancelAgentFill","summary":"Cancel a fill run in the user's browser","description":"Hands back the credits a fill run held, when the user cancels it in HireSweep, including a run whose Submit the site did not take (a captcha, errors it listed). The 1 credit the run took when it started stays spent. A run whose form the site took, or whose Submit is under way, stays charged and the request fails with CONFLICT. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"The ID of the run: the first message of its conversation."}},"required":["runId"]}}}},"responses":{"200":{"description":"The credits the run held, if any, are handed back; the run's own credit stays spent.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/applications/{applicationId}/fill/run":{"get":{"operationId":"getAgentFillRun","summary":"Read the fill run under way for an application","description":"The agent fill under way in the user's own browser, as it was left: its conversation, the form's tab, where the user's Submit turn began, and for a recipe replay the page and step it stood on. A page that loads this carries the run on instead of starting it over. Reading it picks the run up again, which switches the stored permission to press the site's Submit off: the answer never has it on. Null when no run is under way. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The run under way, or null.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"runId":{"type":"string"},"messages":{"type":"array","items":{"not":{}}},"tabId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"applyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"submitIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowSubmit":{"type":"boolean"},"neededUser":{"type":"boolean"},"autoSendWeighed":{"type":"boolean"},"resume":{"type":"object","properties":{"status":{"anyOf":[{"enum":["started","running","stopped","complete"],"type":"string"},{"type":"null"}]},"pageIndex":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"stepIndex":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"recipeKey":{"anyOf":[{"type":"string"},{"type":"null"}]},"recipeVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["status","pageIndex","stepIndex","recipeKey","recipeVersion"]}},"required":["runId","messages","tabId","applyUrl","submitIndex","allowSubmit","neededUser","autoSendWeighed","resume"]},{"type":"null"}]}}}}}},"post":{"operationId":"saveAgentFillRun","summary":"Write down where a fill run stands","description":"Keeps what the page knows about the fill run under way that its conversation does not say: the tab the form is open in, where the user's Submit turn began, and for a recipe replay the page and step it is on and whether it is running, stopped or complete. With `begin`, starts a new run and drops whatever the application held before. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"runId":{"type":"string","minLength":1,"description":"The ID of the run: the first message of its conversation."},"begin":{"type":"boolean","description":"Starts a new run, replacing any the application held."},"tabId":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"applyUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"submitIndex":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"allowSubmit":{"type":"boolean"},"neededUser":{"type":"boolean"},"autoSendWeighed":{"type":"boolean"},"status":{"enum":["started","running","stopped","complete"],"type":"string","description":"Where a recipe replay stands."},"pageIndex":{"type":"integer","minimum":0,"maximum":29,"description":"The recipe page (from 0) a replay is on."},"stepIndex":{"type":"integer","minimum":0,"maximum":99,"description":"The step (from 0) of that page a replay is on."}},"required":["runId"]}}}},"responses":{"200":{"description":"The run's state is written down.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}},"delete":{"operationId":"clearAgentFillRun","summary":"Forget the fill run under way for an application","description":"Drops the fill run kept for an application, once it is sent or given up on, so a later page load starts from the apply actions. Requires authentication.","tags":["Applications"],"parameters":[{"name":"applicationId","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The ID of the application."}}],"responses":{"200":{"description":"The run is forgotten.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/applications/{id}/status":{"patch":{"operationId":"setApplicationStatus","summary":"Move an application through the pipeline","description":"Sets the application's pipeline status. The statuses the server sets while it is working - reviewing, tailoring, and applying - cannot be set here. Moving to submitted stamps the submission time if it is not already set. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["saved","reviewed","ready","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string"}},"required":["status"]}}}},"responses":{"200":{"description":"The application at its new status.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/resume":{"patch":{"operationId":"setApplicationResume","summary":"Choose the resume an application uses","description":"Points the application at one of the user's resumes, or clears the choice with a null id. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["resumeId"]}}}},"responses":{"200":{"description":"The application with its chosen resume.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/applications/{id}/apply-source":{"patch":{"operationId":"setApplicationApplySource","summary":"Choose the resume an apply run sends","description":"Chooses between the copy tailored for this posting and the resume it was written from. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"source":{"enum":["tailored","original"],"type":"string"}},"required":["source"]}}}},"responses":{"200":{"description":"The application with its choice.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the application."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this application is for; null for your own."},"jobPostingId":{"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["saved","reviewing","reviewed","tailoring","ready","applying","needs_action","submitted","screening","interview","offer","rejected","withdrawn","ghosted"],"type":"string","description":"Where the application stands in the pipeline."},"statusChangedAt":{"type":"string","format":"date-time","x-native-type":"date"},"statusBefore":{"anyOf":[{"type":"string"},{"type":"null"}]},"matchScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}],"description":"How well the chosen resume answers the posting."},"matchScorecard":{"anyOf":[{"type":"object","properties":{"dimensions":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"missingKeywords":{"type":"array","items":{"type":"string","minLength":1}},"strengths":{"type":"array","items":{"type":"string","minLength":1}},"resume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["dimensions","missingKeywords","strengths","modelMeta","updatedAt"]},{"type":"null"}],"description":"The per-dimension breakdown behind the score."},"tailoredResumeId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy of the chosen resume tailored to this posting, if any."},"tailoring":{"anyOf":[{"type":"object","properties":{"sourceResumeId":{"type":"string"},"sourceScore":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"changes":{"type":"array","items":{"type":"object","properties":{"kind":{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},"label":{"type":"string"},"before":{"type":"string"},"after":{"type":"string"},"reason":{"type":"string"},"lineIds":{"type":"array","maxItems":5,"items":{"type":"string"}}},"required":["kind","label","before","after","reason"]}},"refused":{"type":"array","items":{"type":"object","properties":{"kind":{"anyOf":[{"enum":["headline","summary","experience","role","project","hide","order"],"type":"string"},{"type":"null"}]},"label":{"type":"string"},"reason":{"type":"string"}},"required":["kind","label","reason"]}},"match":{"anyOf":[{"type":"object","properties":{"score":{"type":"integer","minimum":0,"maximum":100},"dimensions":{"type":"array","items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}}},"required":["score","dimensions"]},{"type":"null"}]},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["sourceResumeId","changes","refused","match","modelMeta","updatedAt"]},{"type":"null"}],"description":"What tailoring changed, what it refused, and how the copy scores."},"tailorError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last tailoring failed, if it did."},"tailorNoChange":{"type":"boolean","description":"Whether the last tailoring ran and honestly had nothing to rewrite, because the resume says nothing this posting asks for. Not a failure."},"applySource":{"enum":["tailored","original"],"type":"string","description":"Whether an apply run attaches the tailored copy or the resume itself."},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The user's own notes about this application."},"coverLetter":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The application's cover letter as plain text, once there is one."},"coverLetterTone":{"anyOf":[{"enum":["neutral","warm","formal","concise"],"type":"string"},{"type":"null"}],"description":"The tone the cover letter was last written in."},"coverLetterGeneratedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the cover letter was last written by AI."},"coverLetterPostingId":{"anyOf":[{"type":"string"},{"type":"null"}]},"coverLetterGeneratingSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When the AI started writing this letter, while it still is; null otherwise. The letter is the server's job once it starts, so a page that reloaded reads this to show it is still coming instead of offering it again."},"coverLetterError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last cover letter could not be written, if it could not."},"rescoringSince":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"When a rescore started, while one is still running; null otherwise."},"rescoreError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last rescore failed, if it did."},"submittedVia":{"anyOf":[{"enum":["manual","assisted"],"type":"string"},{"type":"null"}],"description":"Whether the application was sent by hand or assisted."},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstSubmittedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"firstReplyAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"sentMatchScore":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"sentWasTailored":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"sentHadCoverLetter":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"posting":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the job posting."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this posting was saved for; null for your own."},"source":{"enum":["manual","linkedin","indeed","greenhouse","lever","ashby","workable","workday","smartrecruiters","recruitee","personio","rippling","gem","bamboohr","breezy","pinpoint","teamtailor","jazzhr","jobvite","homerun","trakstar","polymer","comeet","hibob","himalayas","jobicy","arbeitnow","remoteok","weworkremotely","hackernews","usajobs","adzuna","jobspy","email_alert"],"type":"string","description":"Where the posting came from."},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}]},"url":{"type":"string","format":"uri","description":"The link to the job description."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The role title, once the posting has been reviewed."},"company":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The company, once the posting has been reviewed."},"location":{"anyOf":[{"type":"string"},{"type":"null"}]},"isRemote":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"employmentType":{"anyOf":[{"enum":["full_time","contract","part_time"],"type":"string"},{"type":"null"}],"description":"Full time, contract, or part time."},"salaryMin":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryMax":{"anyOf":[{"type":"integer","minimum":-2147483648,"maximum":2147483647},{"type":"null"}]},"salaryCurrency":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionRaw":{"anyOf":[{"type":"string"},{"type":"null"}]},"descriptionParsed":{"anyOf":[{"type":"object","properties":{"summary":{"anyOf":[{"type":"string"},{"type":"null"}]},"responsibilities":{"type":"array","items":{"type":"string","minLength":1}},"requirements":{"type":"array","items":{"type":"string","minLength":1}},"keywords":{"type":"array","items":{"type":"string","minLength":1}},"skills":{"type":"array","items":{"type":"string","minLength":1}}},"required":["summary","responsibilities","requirements","keywords"]},{"type":"null"}],"description":"What the review made of the description."},"postedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"fetchedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"reviewError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last review failed, if it did."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","clientId","source","externalId","url","title","company","location","isRemote","employmentType","salaryMin","salaryMax","salaryCurrency","descriptionRaw","descriptionParsed","postedAt","fetchedAt","reviewError","createdAt","updatedAt"]},"resume":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},{"type":"null"}]},"tailoringLoweredMatch":{"type":"boolean","description":"Whether the tailored copy scores lower against the posting than the resume it was written from. Such a copy is sent only when the user chooses it, and never without the user's Submit."}},"required":["id","clientId","jobPostingId","resumeId","status","statusChangedAt","statusBefore","matchScore","matchScorecard","tailoredResumeId","tailoring","tailorError","tailorNoChange","applySource","notes","coverLetter","coverLetterTone","coverLetterGeneratedAt","coverLetterPostingId","coverLetterGeneratingSince","coverLetterError","rescoringSince","rescoreError","submittedVia","submittedAt","firstSubmittedAt","firstReplyAt","sentMatchScore","sentWasTailored","sentHadCoverLetter","createdAt","updatedAt","posting","resume","tailoringLoweredMatch"]}}}}}}},"/extension/failures":{"post":{"operationId":"reportExtensionFailure","summary":"Record that the browser extension could not read a job","description":"Leaves one line in the server log saying which step of the extension's work was refused and why, so the failure can be counted. Takes only fixed values: no link, no posting text, nothing a page wrote. Requires authentication.","tags":["Applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stage":{"enum":["posting-read","apply-url","job-search"],"type":"string","description":"Which step of the extension's work was refused."},"reason":{"enum":["signed-out","easy-apply","not-found","not-linkedin","outdated","unreachable","no-worker","not-allowed","shortlink"],"type":"string","description":"Why, from the fixed list of reasons the app names."},"extensionVersion":{"type":"string","maxLength":16,"pattern":"^\\d+\\.\\d+\\.\\d+$","description":"The extension's version, as major.minor.patch."}},"required":["stage","reason"]}}}},"responses":{"200":{"description":"The report was recorded.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/applications/delete":{"post":{"operationId":"deleteApplications","summary":"Stop tracking several applications","description":"Deletes each listed application as `deleteApplication` does. An application under an open apply run is left in place and its id returned in `blockedIds`; one that no longer exists counts as skipped. Requires authentication.","tags":["Applications"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string","minLength":1},"description":"The IDs of the applications to delete."}},"required":["ids"]}}}},"responses":{"200":{"description":"How many applications were deleted, how many were already gone, and which were left in place.","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many applications were deleted."},"skipped":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"How many were already gone."},"blockedIds":{"type":"array","items":{"type":"string"},"description":"The IDs left in place because an application run is under way on them."}},"required":["deleted","skipped","blockedIds"]}}}}}}},"/applications/{id}/attempts":{"get":{"operationId":"listApplicationAttempts","summary":"List assisted apply runs against an application","description":"Returns the assisted apply runs against this application's form, newest first: where each stands, the fields it filled with the values entered, what stopped it, and a short-lived link to its last screenshot. A request made with an API key rather than the signed-in session gets the self-identification fields (gender, ethnicity, veteran and disability status) with their values left blank, and the saved answers to those questions left out. A run that has gone quiet for too long is ended as an error first. Requires authentication.","tags":["Applications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The application's assisted apply runs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the attempt."},"state":{"enum":["filling","asking","ready","submitting","done"],"type":"string","description":"Filling the form, waiting for answers, waiting for Submit, submitting, or over."},"autoSubmit":{"type":"boolean","description":"Whether this run submits the form it filled on its own: fixed from the apply profile's submit mode when it started, and turned off when a hybrid run has to ask the user something."},"submitMode":{"enum":["review","hybrid","auto"],"type":"string","description":"The apply profile's submit mode when this run started."},"outcome":{"anyOf":[{"enum":["submitted","blocked","captcha","abandoned","error"],"type":"string"},{"type":"null"}],"description":"How the run ended, once it is over."},"atsVendor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The applicant tracking system behind the form."},"applyUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The form the run reached."},"fields":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":500},"value":{"type":"string","maxLength":5000},"required":{"type":"boolean"},"type":{"enum":["text","textarea","date","select","combobox","checkbox","radio","file"],"type":"string"}},"required":["label","value","required"]},"description":"Every field on the form with the value entered."},"blockers":{"type":"array","items":{"type":"string"},"description":"What stopped the run, in its own words."},"questions":{"type":"array","items":{"type":"string"},"description":"Required questions the resume and the apply profile do not answer."},"codeQuestions":{"type":"array","items":{"type":"string"},"description":"The questions above the run read as a one-time code the site just sent the candidate; empty when it marked none, so the page also reads the questions' words."},"answers":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","minLength":1,"maxLength":500},"answer":{"type":"string","minLength":1,"maxLength":2000}},"required":["question","answer"]},"description":"The user's answers already on file for this attempt's questions; empty while a fresh ask still waits on the user."},"captcha":{"anyOf":[{"enum":["waiting","solved","handoff"],"type":"string"},{"type":"null"}],"description":"A captcha the running form waits on the user to solve in its browser (waiting), or how that wait ended; null when there is none."},"note":{"anyOf":[{"type":"string"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run stopped, when it did not submit."},"confirmation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the site said after the submission."},"events":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string"},"kind":{"enum":["tool","result","thought","run"],"type":"string"},"label":{"type":"string","maxLength":120},"text":{"type":"string","maxLength":300},"error":{"type":"boolean"}},"required":["at","kind","label","text","error"]},"description":"What the run did, line by line, as its own event stream reported it."},"screenshotUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A short-lived link to the last screenshot of the form."},"startedAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]}},"required":["id","state","autoSubmit","submitMode","outcome","atsVendor","applyUrl","fields","blockers","questions","codeQuestions","answers","captcha","note","reason","confirmation","events","screenshotUrl","startedAt","updatedAt","finishedAt"]}}}}}}}},"/library/approved-lines":{"get":{"operationId":"listApprovedLines","summary":"List approved lines","description":"Lists the workspace's approved lines, newest first: sentences you stand behind that tailoring and cover letters may reuse once they are vetted. Each line has its status (suggested or vetted), source, optional theme and avoid-when note, and the applications that used it (newest first, at most 20). Pass clientId for one client's library. Requires authentication.","tags":["Library"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The approved lines.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}]},"avoidWhen":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["suggested","vetted"],"type":"string"},"source":{"enum":["manual","tailoring","agent"],"type":"string"},"sourceApplicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"vettedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"usedIn":{"type":"array","maxItems":20,"items":{"type":"object","properties":{"applicationId":{"type":"string"},"title":{"anyOf":[{"type":"string"},{"type":"null"}]},"company":{"anyOf":[{"type":"string"},{"type":"null"}]},"at":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["applicationId","title","company","at"]},"description":"Applications whose tailoring used this line, newest first."}},"required":["id","text","theme","avoidWhen","status","source","sourceApplicationId","vettedAt","createdAt","updatedAt","usedIn"]}}}}}}},"post":{"operationId":"createApprovedLine","summary":"Add an approved line","description":"Adds a line you wrote. It is vetted at once. Refused with CONFLICT when the library already holds 100 vetted lines or the same text. The text is at most 280 characters, the theme 40 and the avoid-when note 200. Pass clientId for one client's library. Refused with FORBIDDEN for an API key: only the signed-in user can vet. Requires authentication.","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":280},"theme":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"What the line is about; empty clears it."},"avoidWhen":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"When not to use the line; empty clears it."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["text"]}}}},"responses":{"200":{"description":"The new line.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}]},"avoidWhen":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["suggested","vetted"],"type":"string"},"source":{"enum":["manual","tailoring","agent"],"type":"string"},"sourceApplicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"vettedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","text","theme","avoidWhen","status","source","sourceApplicationId","vettedAt","createdAt","updatedAt"]}}}}}}},"/library/approved-lines/{id}":{"patch":{"operationId":"updateApprovedLine","summary":"Edit an approved line","description":"Changes a line's text, theme or avoid-when note. New text makes the line vetted; a theme or note alone leaves its status. Refused with CONFLICT when the new text matches another line, or when vetting would pass 100 vetted lines. Refused with FORBIDDEN for an API key: only the signed-in user can vet. Requires authentication.","tags":["Library"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":280},"theme":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"What the line is about; empty clears it."},"avoidWhen":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"When not to use the line; empty clears it."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The updated line.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}]},"avoidWhen":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["suggested","vetted"],"type":"string"},"source":{"enum":["manual","tailoring","agent"],"type":"string"},"sourceApplicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"vettedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","text","theme","avoidWhen","status","source","sourceApplicationId","vettedAt","createdAt","updatedAt"]}}}}}},"delete":{"operationId":"deleteApprovedLine","summary":"Delete an approved line","description":"Deletes a line. Tailorings that used it keep their record of the change. Requires authentication.","tags":["Library"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}}}}}},"responses":{"200":{"description":"The line is deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/library/approved-lines/{id}/status":{"post":{"operationId":"setApprovedLineStatus","summary":"Vet or unvet an approved line","description":"Vets a suggested line, so tailoring and cover letters may reuse its words, or takes a vetted line back to suggested. Refused with CONFLICT when vetting would pass 100 vetted lines, and with FORBIDDEN for an API key: only the signed-in user can vet. Requires authentication.","tags":["Library"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["suggested","vetted"],"type":"string"},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["status"]}}}},"responses":{"200":{"description":"The line with its new status.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}]},"avoidWhen":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["suggested","vetted"],"type":"string"},"source":{"enum":["manual","tailoring","agent"],"type":"string"},"sourceApplicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"vettedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","text","theme","avoidWhen","status","source","sourceApplicationId","vettedAt","createdAt","updatedAt"]}}}}}}},"/library/approved-lines/suggestions":{"post":{"operationId":"suggestApprovedLine","summary":"Suggest an approved line","description":"Adds a line as a suggestion. It is never vetted here, and a line that already exists is returned unchanged with created false. Only the user can vet it. At 50 suggestions the oldest is dropped. Requires authentication.","tags":["Library"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":280},"theme":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"What the line is about; empty clears it."},"avoidWhen":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"When not to use the line; empty clears it."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["text"]}}}},"responses":{"200":{"description":"The suggested line, and whether it was new.","content":{"application/json":{"schema":{"type":"object","properties":{"line":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"theme":{"anyOf":[{"type":"string"},{"type":"null"}]},"avoidWhen":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["suggested","vetted"],"type":"string"},"source":{"enum":["manual","tailoring","agent"],"type":"string"},"sourceApplicationId":{"anyOf":[{"type":"string"},{"type":"null"}]},"vettedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","text","theme","avoidWhen","status","source","sourceApplicationId","vettedAt","createdAt","updatedAt"]},"created":{"type":"boolean"}},"required":["line","created"]}}}}}}},"/marketplace/operator/profile":{"get":{"operationId":"getOperatorProfile","summary":"Get your operator profile","description":"Returns your own operator profile, draft fields and the reason for a suspension included. Answers not found until you save a profile. Requires authentication.","tags":["Operators"],"responses":{"200":{"description":"Your operator profile.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"anyOf":[{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},{"type":"null"}]},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsAcceptedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["unpublished","published","suspended"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","termsVersion","termsAcceptedAt","publishedAt","suspendedAt","suspendedReason","status","createdAt","updatedAt"]}}}}}},"put":{"operationId":"saveOperatorProfile","summary":"Save your operator profile","description":"Creates your operator profile on the first save and changes the fields you send. A draft can be partial; publishing checks that it is complete. A suspended operator cannot save. Requires authentication.","tags":["Operators"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"type":"string","maxLength":64},"displayName":{"type":"string","minLength":1,"maxLength":80},"headline":{"type":"string","minLength":1,"maxLength":120},"bio":{"anyOf":[{"type":"string","maxLength":800},{"type":"null"}]},"roleFamilies":{"type":"array","minItems":1,"maxItems":5,"items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","minItems":1,"maxItems":6,"items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","minItems":1,"maxItems":5,"items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":50,"maximum":20000},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":50,"maximum":50000},{"type":"null"}]},"guaranteeTerms":{"type":"string","maxLength":600},"contactUrl":{"anyOf":[{"type":"string","maxLength":300,"format":"uri"},{"type":"null"}]},"acceptTerms":{"const":true}}}}}},"responses":{"200":{"description":"Your operator profile.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"anyOf":[{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},{"type":"null"}]},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsAcceptedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["unpublished","published","suspended"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","termsVersion","termsAcceptedAt","publishedAt","suspendedAt","suspendedReason","status","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"HANDLE_INVALID"},"status":{"const":400},"message":{"type":"string","default":"A handle is 3 to 30 lower-case letters, digits or hyphens, and starts and ends with a letter or digit."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"HANDLE_RESERVED"},"status":{"const":400},"message":{"type":"string","default":"That handle is reserved."},"data":{}},"required":["defined","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":"OPERATOR_SUSPENDED"},"status":{"const":403},"message":{"type":"string","default":"This operator profile is suspended."},"data":{}},"required":["defined","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":"HANDLE_TAKEN"},"status":{"const":409},"message":{"type":"string","default":"That handle is taken."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/marketplace/operator/profile/publish":{"post":{"operationId":"publishOperatorProfile","summary":"Publish your operator page","description":"Puts your page on the site. It needs a valid handle nobody else holds, the current standard terms accepted, and the required fields. Requires authentication.","tags":["Operators"],"responses":{"200":{"description":"Your operator profile, published.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"anyOf":[{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},{"type":"null"}]},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsAcceptedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["unpublished","published","suspended"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","termsVersion","termsAcceptedAt","publishedAt","suspendedAt","suspendedReason","status","createdAt","updatedAt"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"HANDLE_INVALID"},"status":{"const":400},"message":{"type":"string","default":"A handle is 3 to 30 lower-case letters, digits or hyphens, and starts and ends with a letter or digit."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"HANDLE_RESERVED"},"status":{"const":400},"message":{"type":"string","default":"That handle is reserved."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":true},"code":{"const":"PUBLISH_INCOMPLETE"},"status":{"const":400},"message":{"type":"string","default":"The profile is not complete enough to publish."},"data":{}},"required":["defined","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":"OPERATOR_SUSPENDED"},"status":{"const":403},"message":{"type":"string","default":"This operator profile is suspended."},"data":{}},"required":["defined","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":"HANDLE_TAKEN"},"status":{"const":409},"message":{"type":"string","default":"That handle is taken."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/marketplace/operator/profile/unpublish":{"post":{"operationId":"unpublishOperatorProfile","summary":"Take your operator page off the site","description":"Takes your page off the site; your profile and handle are kept. Requires authentication.","tags":["Operators"],"responses":{"200":{"description":"Your operator profile, unpublished.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"anyOf":[{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},{"type":"null"}]},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsAcceptedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["unpublished","published","suspended"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","termsVersion","termsAcceptedAt","publishedAt","suspendedAt","suspendedReason","status","createdAt","updatedAt"]}}}},"403":{"description":"403","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"OPERATOR_SUSPENDED"},"status":{"const":403},"message":{"type":"string","default":"This operator profile is suspended."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/marketplace/operator/record":{"get":{"operationId":"getOperatorRecord","summary":"Get your record and status","description":"Returns your own record with every count and the minimum each figure needs before it is public, whether you are Verified or still building a record, and the clients who lack an email, role family or level. Computed fresh. A suspended operator can read it. Requires authentication.","tags":["Operators"],"responses":{"200":{"description":"Your record, status and the clients missing details.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["suspended","verified","building"],"type":"string"},"record":{"type":"object","properties":{"window":{"type":"object","properties":{"fromDaysAgo":{"type":"number"},"toDaysAgo":{"type":"number"}},"required":["fromDaysAgo","toDaysAgo"]},"minimums":{"type":"object","properties":{"rosterClients":{"type":"number"},"interviewApplications":{"type":"number"},"interviewClients":{"type":"number"},"declinedDecisions":{"type":"number"},"declinedClients":{"type":"number"},"cellClients":{"type":"number"}},"required":["rosterClients","interviewApplications","interviewClients","declinedDecisions","declinedClients","cellClients"]},"roster":{"type":"object","properties":{"clients":{"type":"integer","minimum":0,"maximum":9007199254740991},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviews":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviewClients":{"type":"integer","minimum":0,"maximum":9007199254740991},"decisions":{"type":"integer","minimum":0,"maximum":9007199254740991},"decisionClients":{"type":"integer","minimum":0,"maximum":9007199254740991},"declined":{"type":"integer","minimum":0,"maximum":9007199254740991},"answers":{"type":"integer","minimum":0,"maximum":9007199254740991},"denied":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviewsPer100":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDaysToInterview":{"anyOf":[{"type":"number"},{"type":"null"}]},"declinedPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"denialPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"published":{"type":"object","properties":{"interviewsPer100":{"type":"boolean"},"medianDaysToInterview":{"type":"boolean"},"declinedPercent":{"type":"boolean"}},"required":["interviewsPer100","medianDaysToInterview","declinedPercent"]}},"required":["clients","applications","interviews","interviewClients","decisions","decisionClients","declined","answers","denied","interviewsPer100","medianDaysToInterview","declinedPercent","denialPercent","published"]},"breakdown":{"type":"array","items":{"type":"object","properties":{"clients":{"type":"integer","minimum":0,"maximum":9007199254740991},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviews":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviewClients":{"type":"integer","minimum":0,"maximum":9007199254740991},"decisions":{"type":"integer","minimum":0,"maximum":9007199254740991},"decisionClients":{"type":"integer","minimum":0,"maximum":9007199254740991},"declined":{"type":"integer","minimum":0,"maximum":9007199254740991},"answers":{"type":"integer","minimum":0,"maximum":9007199254740991},"denied":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviewsPer100":{"anyOf":[{"type":"number"},{"type":"null"}]},"medianDaysToInterview":{"anyOf":[{"type":"number"},{"type":"null"}]},"declinedPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"denialPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"roleFamily":{"anyOf":[{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},{"type":"null"}]}},"required":["clients","applications","interviews","interviewClients","decisions","decisionClients","declined","answers","denied","interviewsPer100","medianDaysToInterview","declinedPercent","denialPercent","roleFamily"]}}},"required":["window","minimums","roster","breakdown"]},"missing":{"type":"array","items":{"type":"object","properties":{"clientId":{"type":"string"},"name":{"type":"string"},"missing":{"type":"array","minItems":1,"items":{"enum":["email","roleFamily","level"],"type":"string"}}},"required":["clientId","name","missing"]}}},"required":["status","record","missing"]}}}}}}},"/marketplace/operators/{handle}":{"get":{"operationId":"getPublicOperator","summary":"An operator's public page","description":"Returns what a published operator chose to show: profile, price and guarantee terms, whether they are Verified, and, only if they are, their record with its sample sizes. Answers not found for a handle that is unknown, unpublished or suspended. No authentication.","tags":["Operators"],"parameters":[{"name":"handle","in":"path","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"The operator's public profile.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"type":"string"},"displayName":{"type":"string"},"headline":{"type":"string"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"type":"string"},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"publishedAt":{"type":"string","format":"date-time","x-native-type":"date"},"status":{"enum":["verified","building"],"type":"string"},"record":{"anyOf":[{"type":"object","properties":{"window":{"type":"object","properties":{"fromDaysAgo":{"type":"number"},"toDaysAgo":{"type":"number"}},"required":["fromDaysAgo","toDaysAgo"]},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991},"interviewsPer100":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","applications","clients"]},{"type":"null"}]},"medianDaysToInterview":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"clientsWithInterview":{"type":"integer","minimum":0,"maximum":9007199254740991},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","clientsWithInterview","clients"]},{"type":"null"}]},"declinedPercent":{"anyOf":[{"type":"object","properties":{"value":{"type":"integer","minimum":0,"maximum":9007199254740991},"decisions":{"type":"integer","minimum":0,"maximum":9007199254740991},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","decisions","clients"]},{"type":"null"}]},"breakdown":{"type":"array","items":{"type":"object","properties":{"roleFamily":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"},"interviewsPer100":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","applications","clients"]},{"type":"null"}]},"medianDaysToInterview":{"anyOf":[{"type":"object","properties":{"value":{"type":"number"},"clientsWithInterview":{"type":"integer","minimum":0,"maximum":9007199254740991},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","clientsWithInterview","clients"]},{"type":"null"}]},"declinedPercent":{"anyOf":[{"type":"object","properties":{"value":{"type":"integer","minimum":0,"maximum":9007199254740991},"decisions":{"type":"integer","minimum":0,"maximum":9007199254740991},"clients":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["value","decisions","clients"]},{"type":"null"}]}},"required":["roleFamily","interviewsPer100","medianDaysToInterview","declinedPercent"]}}},"required":["window","clients","interviewsPer100","medianDaysToInterview","declinedPercent","breakdown"]},{"type":"null"}]}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","publishedAt","status","record"]}}}}}}},"/marketplace/admin/operators/{operatorUserId}/suspend":{"post":{"operationId":"suspendOperator","summary":"Suspend an operator","description":"Takes an operator's page down and bars them from publishing again until unsuspended. Admins only. Requires authentication.","tags":["Operators"],"parameters":[{"name":"operatorUserId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"responses":{"200":{"description":"The operator's profile, suspended.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"anyOf":[{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},{"type":"null"}]},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsAcceptedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["unpublished","published","suspended"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","termsVersion","termsAcceptedAt","publishedAt","suspendedAt","suspendedReason","status","createdAt","updatedAt"]}}}}}}},"/marketplace/admin/operators/{operatorUserId}/unsuspend":{"post":{"operationId":"unsuspendOperator","summary":"Lift an operator's suspension","description":"Lifts a suspension; a page that was published is on the site again. Admins only. Requires authentication.","tags":["Operators"],"parameters":[{"name":"operatorUserId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The operator's profile.","content":{"application/json":{"schema":{"type":"object","properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}]},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}]},"headline":{"anyOf":[{"type":"string"},{"type":"null"}]},"bio":{"anyOf":[{"type":"string"},{"type":"null"}]},"roleFamilies":{"type":"array","items":{"enum":["software_engineering","data_ml","product_management","design","marketing","sales","customer_success","operations","finance_accounting","people_hr","legal","healthcare","education","other"],"type":"string"}},"levels":{"type":"array","items":{"enum":["entry","mid","senior","lead","director","executive"],"type":"string"}},"services":{"type":"array","items":{"enum":["applications","hiring_manager_outreach","interview_prep","resume_rewrite","offer_negotiation"],"type":"string"}},"priceModel":{"anyOf":[{"enum":["monthly","monthly_plus_success","success_only"],"type":"string"},{"type":"null"}]},"monthlyPriceUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"successFeeUsd":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"guaranteeTerms":{"anyOf":[{"type":"string"},{"type":"null"}]},"contactUrl":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"termsAcceptedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}]},"suspendedReason":{"anyOf":[{"type":"string"},{"type":"null"}]},"status":{"enum":["unpublished","published","suspended"],"type":"string"},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["handle","displayName","headline","bio","roleFamilies","levels","services","priceModel","monthlyPriceUsd","successFeeUsd","guaranteeTerms","contactUrl","termsVersion","termsAcceptedAt","publishedAt","suspendedAt","suspendedReason","status","createdAt","updatedAt"]}}}}}}},"/resumes/tags":{"get":{"operationId":"listResumeTags","summary":"List all resume tags","description":"Returns a sorted list of all unique tags across the authenticated user's resumes. Useful for populating tag filters in the dashboard. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"A sorted array of unique tag strings.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/resumes/{id}/statistics":{"get":{"operationId":"getResumeStatistics","summary":"Get resume statistics","description":"Returns view and download statistics for the specified resume, including total counts and the timestamps of the last view and download. Requires authentication.","tags":["Resume Statistics"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the resume."}}],"responses":{"200":{"description":"The resume's view and download statistics.","content":{"application/json":{"schema":{"type":"object","properties":{"isPublic":{"type":"boolean","description":"Whether the resume is currently public."},"views":{"type":"number","description":"Total number of times the resume has been viewed."},"downloads":{"type":"number","description":"Total number of times the resume has been downloaded."},"lastViewedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"Timestamp of the last view, or null if never viewed."},"lastDownloadedAt":{"anyOf":[{"type":"string","format":"date-time","x-native-type":"date"},{"type":"null"}],"description":"Timestamp of the last download, or null if never downloaded."}},"required":["isPublic","views","downloads","lastViewedAt","lastDownloadedAt"]}}}}}}},"/resumes/{id}/analysis":{"get":{"operationId":"getResumeAnalysis","summary":"Get latest resume analysis","description":"Returns the latest persisted AI analysis for the specified resume, if one exists. Requires authentication.","tags":["Resume Analysis"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the resume."}}],"responses":{"200":{"description":"The latest persisted resume analysis, or null if no analysis has been saved yet.","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"overallScore":{"type":"integer","minimum":0,"maximum":100},"scorecard":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"suggestions":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1},"impact":{"enum":["high","medium","low"],"type":"string"},"why":{"type":"string","minLength":1},"exampleRewrite":{"anyOf":[{"type":"string"},{"type":"null"}]},"copyPrompt":{"type":"string","minLength":1}},"required":["title","impact","why","exampleRewrite","copyPrompt"]}},"strengths":{"type":"array","maxItems":10,"items":{"type":"string","minLength":1}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]}},"required":["overallScore","scorecard","suggestions","strengths","updatedAt","modelMeta"]},{"type":"null"}]}}}}}}},"/resumes/{id}/analysis/state":{"get":{"operationId":"getResumeAnalysisState","summary":"Get where the resume's score stands","description":"Returns the latest persisted score together with whether another is being worked out right now, so a page that reloaded mid-score shows the score still coming instead of offering to pay for a second one. A score a restart cut off reads as failed rather than running. Requires authentication.","tags":["Resume Analysis"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the resume."}}],"responses":{"200":{"description":"The latest score, and whether one is running.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"enum":["running","succeeded","failed"],"type":"string","description":"Whether a score is being worked out, or how the last one ended."},"analysis":{"anyOf":[{"type":"object","properties":{"overallScore":{"type":"integer","minimum":0,"maximum":100},"scorecard":{"type":"array","minItems":1,"items":{"type":"object","properties":{"dimension":{"type":"string","minLength":1},"score":{"type":"integer","minimum":0,"maximum":100},"rationale":{"type":"string","minLength":1}},"required":["dimension","score","rationale"]}},"suggestions":{"type":"array","maxItems":10,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1},"impact":{"enum":["high","medium","low"],"type":"string"},"why":{"type":"string","minLength":1},"exampleRewrite":{"anyOf":[{"type":"string"},{"type":"null"}]},"copyPrompt":{"type":"string","minLength":1}},"required":["title","impact","why","exampleRewrite","copyPrompt"]}},"strengths":{"type":"array","maxItems":10,"items":{"type":"string","minLength":1}},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date"},"modelMeta":{"type":"object","properties":{"provider":{"type":"string","minLength":1},"model":{"type":"string","minLength":1}},"required":["provider","model"]}},"required":["overallScore","scorecard","suggestions","strengths","updatedAt","modelMeta"]},{"type":"null"}],"description":"The last score that landed, which stays readable while a new one is worked out."},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last score failed, if it did."}},"required":["status","analysis","errorCode"]}}}}}}},"/resumes/{id}/updates":{"get":{"operationId":"subscribeResumeUpdates","summary":"Subscribe to resume updates","description":"Streams lightweight invalidation events when the specified resume changes. The event payload contains metadata only; clients should refetch the resume for canonical data.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The unique identifier of the resume."}}],"responses":{"200":{"description":"A stream of resume update invalidation events.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/resumes/imports":{"post":{"operationId":"startResumeImport","summary":"Start importing a resume file","description":"Takes on a resume file and returns at once: reading it and creating the resume run on the server, so a refresh or a closed tab cannot lose an import. Send a PDF as the page images the browser rendered, or a Word document as a base64 string with its media type. Uses 1 credit, handed back if the import fails. Poll the list endpoint for how it ended. Requires authentication.","tags":["Resumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"fileName":{"type":"string","minLength":1,"maxLength":255,"description":"The name the person chose the file under."},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"source":{"anyOf":[{"type":"object","properties":{"kind":{"const":"pdf"},"images":{"type":"array","minItems":1,"maxItems":16,"items":{"type":"string","minLength":1,"maxLength":8388612},"description":"The PDF's pages, rendered to base64-encoded PNG images in the browser, in page order."}},"required":["kind","images"]},{"type":"object","properties":{"kind":{"const":"docx"},"mediaType":{"enum":["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],"type":"string"},"file":{"type":"object","properties":{"name":{"type":"string"},"data":{"type":"string","maxLength":13981018}},"required":["name","data"]}},"required":["kind","mediaType","file"]}]}},"required":["fileName","source"]}}}},"responses":{"200":{"description":"The id of the import that is now running.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"402":{"description":"402","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"AI_LIMIT_REACHED"},"status":{"const":402},"message":{"type":"string","default":"You're out of credits for HireSweep AI. They reset each month, or turn on extra usage on the billing page."},"data":{"type":"object","properties":{"resetsAt":{"anyOf":[{"type":"number"},{"type":"null"}]},"extraUsage":{"type":"boolean"}},"required":["resetsAt"]}},"required":["defined","code","status","message","data"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}},"413":{"description":"413","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"IMPORT_TOO_LARGE"},"status":{"const":413},"message":{"type":"string","default":"The rendered pages exceed the maximum import size."},"data":{}},"required":["defined","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":"listResumeImports","summary":"List imports that still have something to say","description":"Returns the imports that are still running, plus those that finished without having been acknowledged, oldest first. Pass clientId to read one client's imports instead of your own. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"The running and newly finished imports.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"fileName":{"type":"string"},"status":{"enum":["running","succeeded","failed"],"type":"string"},"resumeId":{"anyOf":[{"type":"string"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","x-native-type":"date"}},"required":["id","fileName","status","resumeId","errorCode","createdAt"]}}}}}}}},"/resumes/imports/{id}/acknowledge":{"post":{"operationId":"acknowledgeResumeImport","summary":"Acknowledge a finished import","description":"Marks a finished import as seen, so it is reported once and then stays quiet. An import that is still running is left alone. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"The import was acknowledged.","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/resumes":{"get":{"operationId":"listResumes","summary":"List all resumes","description":"Returns a list of all resumes belonging to the authenticated user. Results can be filtered by tags and sorted by last updated date, creation date, or name. Pass clientId to list one client's resumes instead of your own. Resume data is not included in the response for performance; use the get endpoint to fetch full resume data. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"tags","in":"query","schema":{"type":"array","items":{"type":"string"},"default":[]},"style":"deepObject","explode":true,"allowEmptyValue":true,"allowReserved":true},{"name":"sort","in":"query","schema":{"enum":["lastUpdatedAt","createdAt","name"],"type":"string","default":"lastUpdatedAt"},"allowEmptyValue":true,"allowReserved":true},{"name":"clientId","in":"query","schema":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."},"allowEmptyValue":true,"allowReserved":true}],"responses":{"200":{"description":"A list of resumes with their metadata (without full resume data).","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the resume."},"name":{"type":"string","minLength":1,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"description":"The slug of the resume."},"tags":{"type":"array","items":{"type":"string"},"description":"The tags of the resume."},"target":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"The job or company this resume is tailored for, shown on dashboard cards; null for a general resume."},"isPublic":{"type":"boolean","description":"Whether the resume is public."},"isLocked":{"type":"boolean","description":"Whether the resume is locked."},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this resume belongs to, for an operator applying on behalf of clients; null for your own."},"createdAt":{"type":"string","format":"date-time","x-native-type":"date","description":"The date and time the resume was created."},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date","description":"The date and time the resume was last updated."}},"required":["id","name","slug","tags","target","isPublic","isLocked","clientId","createdAt","updatedAt"]}}}}}}},"post":{"operationId":"createResume","summary":"Create a new resume","description":"Creates a new resume with the given name, slug, and tags. Optionally initializes the resume with sample data by setting withSampleData to true. Pass clientId to create it for one of your clients. The slug must be unique across the user's resumes. Returns the ID of the newly created resume. Requires authentication.","tags":["Resumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"maxLength":64,"description":"The slug of the resume."},"tags":{"type":"array","maxItems":50,"items":{"type":"string","maxLength":64},"description":"The tags of the resume."},"withSampleData":{"type":"boolean","default":false},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["name","slug","tags"]}}}},"responses":{"200":{"description":"The ID of the newly created resume.","content":{"application/json":{"schema":{"type":"string","description":"The ID of the created resume."}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RESUME_SLUG_ALREADY_EXISTS"},"status":{"const":400},"message":{"type":"string","default":"A resume with this slug already exists."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/resumes/{id}":{"get":{"operationId":"getResume","summary":"Get resume by ID","description":"Returns a single resume with its full data, identified by its unique ID. Only resumes belonging to the authenticated user can be retrieved. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"responses":{"200":{"description":"The resume with its full data.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the resume."},"name":{"type":"string","minLength":1,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"description":"The slug of the resume."},"tags":{"type":"array","items":{"type":"string"},"description":"The tags of the resume."},"target":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"The job or company this resume is tailored for, shown on dashboard cards; null for a general resume."},"isPublic":{"type":"boolean","description":"Whether the resume is public."},"isLocked":{"type":"boolean","description":"Whether the resume is locked."},"data":{"$ref":"#/components/schemas/ResumeData"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this resume belongs to, for an operator applying on behalf of clients; null for your own."},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date","description":"The date and time the resume was last updated."},"hasPassword":{"type":"boolean"}},"required":["id","name","slug","tags","target","isPublic","isLocked","data","clientId","updatedAt","hasPassword"]}}}}}},"put":{"operationId":"updateResume","summary":"Update a resume","description":"Updates one or more fields of a resume identified by its ID. All fields are optional; only provided fields will be updated. Locked resumes cannot be updated. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"maxLength":64,"description":"The slug of the resume."},"tags":{"type":"array","maxItems":50,"items":{"type":"string","maxLength":64},"description":"The tags of the resume."},"target":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"The job or company this resume is tailored for, shown on dashboard cards; null for a general resume."},"data":{"$ref":"#/components/schemas/ResumeData"},"isPublic":{"type":"boolean","description":"Whether the resume is public."}}}}}},"responses":{"200":{"description":"The updated resume with its full data.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the resume."},"name":{"type":"string","minLength":1,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"description":"The slug of the resume."},"tags":{"type":"array","items":{"type":"string"},"description":"The tags of the resume."},"target":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"The job or company this resume is tailored for, shown on dashboard cards; null for a general resume."},"isPublic":{"type":"boolean","description":"Whether the resume is public."},"isLocked":{"type":"boolean","description":"Whether the resume is locked."},"data":{"$ref":"#/components/schemas/ResumeData"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this resume belongs to, for an operator applying on behalf of clients; null for your own."},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date","description":"The date and time the resume was last updated."},"hasPassword":{"type":"boolean"}},"required":["id","name","slug","tags","target","isPublic","isLocked","data","clientId","updatedAt","hasPassword"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RESUME_SLUG_ALREADY_EXISTS"},"status":{"const":400},"message":{"type":"string","default":"A resume with this slug already exists."},"data":{}},"required":["defined","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":"patchResume","summary":"Patch resume data","description":"Applies JSON Patch (RFC 6902) operations to partially update a resume's data. This allows small, targeted changes (e.g. updating a single field) without sending the entire resume object. Locked resumes cannot be patched. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume to patch."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":"string","format":"date-time","x-native-type":"date","description":"If provided, the patch only applies when the resume version still matches this timestamp."},"operations":{"type":"array","minItems":1,"items":{"anyOf":[{"type":"object","properties":{"op":{"const":"add"},"path":{"type":"string"},"value":{}},"required":["op","path"]},{"type":"object","properties":{"op":{"const":"remove"},"path":{"type":"string"}},"required":["op","path"]},{"type":"object","properties":{"op":{"const":"replace"},"path":{"type":"string"},"value":{}},"required":["op","path"]},{"type":"object","properties":{"op":{"const":"move"},"path":{"type":"string"},"from":{"type":"string"}},"required":["op","path","from"]},{"type":"object","properties":{"op":{"const":"copy"},"path":{"type":"string"},"from":{"type":"string"}},"required":["op","path","from"]},{"type":"object","properties":{"op":{"const":"test"},"path":{"type":"string"},"value":{}},"required":["op","path"]}]},"description":"An array of JSON Patch (RFC 6902) operations to apply to the resume data."}},"required":["operations"]}}}},"responses":{"200":{"description":"The patched resume with its full data.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the resume."},"name":{"type":"string","minLength":1,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"description":"The slug of the resume."},"tags":{"type":"array","items":{"type":"string"},"description":"The tags of the resume."},"target":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"The job or company this resume is tailored for, shown on dashboard cards; null for a general resume."},"isPublic":{"type":"boolean","description":"Whether the resume is public."},"isLocked":{"type":"boolean","description":"Whether the resume is locked."},"data":{"$ref":"#/components/schemas/ResumeData"},"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The client this resume belongs to, for an operator applying on behalf of clients; null for your own."},"updatedAt":{"type":"string","format":"date-time","x-native-type":"date","description":"The date and time the resume was last updated."},"hasPassword":{"type":"boolean"}},"required":["id","name","slug","tags","target","isPublic","isLocked","data","clientId","updatedAt","hasPassword"]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"INVALID_PATCH_OPERATIONS"},"status":{"const":400},"message":{"type":"string","default":"The patch operations are invalid or produced an invalid resume."},"data":{}},"required":["defined","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":"RESUME_VERSION_CONFLICT"},"status":{"const":409},"message":{"type":"string","default":"The resume changed after this patch was generated."},"data":{}},"required":["defined","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":"deleteResume","summary":"Delete a resume","description":"Deletes a resume. It disappears from your lists and its public link stops at once; for one minute it can be brought back with the restore endpoint, after which it and its files (screenshots, PDFs) are removed for good. Locked resumes cannot be deleted; unlock the resume first. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"responses":{"200":{"description":"The resume was deleted.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/resumes/{username}/{slug}":{"get":{"operationId":"getResumeBySlug","summary":"Get public resume by username and slug","description":"Returns a publicly shared resume identified by the owner's username and the resume's slug. If the resume is password-protected and the viewer has not yet verified the password, a 401 error with code NEED_PASSWORD is returned. No authentication required for public resumes; if authenticated as the owner, private resumes are also accessible.","tags":["Resume Sharing"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The public resume with its full data.","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"The ID of the resume."},"slug":{"type":"string","minLength":1,"description":"The slug of the resume."},"tags":{"type":"array","items":{"type":"string"},"description":"The tags of the resume."},"isPublic":{"type":"boolean","description":"Whether the resume is public."},"isLocked":{"type":"boolean","description":"Whether the resume is locked."},"data":{"$ref":"#/components/schemas/ResumeData"},"name":{"type":"string"}},"required":["id","slug","tags","isPublic","isLocked","data","name"]}}}}}}},"/resumes/{username}/{slug}/download":{"post":{"operationId":"trackResumeDownload","summary":"Record a public resume download","description":"Counts one download of a publicly shared resume in its statistics. Applies the same visibility and password rules as getting the resume, and the owner's own downloads are not counted.","tags":["Resume Sharing"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The download was recorded.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/resumes/import":{"post":{"operationId":"importResume","summary":"Import a resume","description":"Creates a new resume from an existing ResumeData object (e.g. from a previously exported JSON file). A random name and slug are generated automatically. Returns the ID of the imported resume. Requires authentication.","tags":["Resumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/ResumeData"},"clientId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"The client whose data this is, for an operator applying on behalf of clients. Omit for your own."}},"required":["data"]}}}},"responses":{"200":{"description":"The ID of the imported resume.","content":{"application/json":{"schema":{"type":"string","description":"The ID of the imported resume."}}}},"400":{"description":"400","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"defined":{"const":true},"code":{"const":"RESUME_SLUG_ALREADY_EXISTS"},"status":{"const":400},"message":{"type":"string","default":"A resume with this slug already exists."},"data":{}},"required":["defined","code","status","message"]},{"type":"object","properties":{"defined":{"const":false},"code":{"type":"string"},"status":{"type":"number"},"message":{"type":"string"},"data":{}},"required":["defined","code","status","message"]}]}}}}}}},"/resumes/{id}/lock":{"post":{"operationId":"setResumeLocked","summary":"Set resume lock status","description":"Toggles the locked status of a resume. When locked, a resume cannot be updated, patched, or deleted. Useful for protecting finalized resumes from accidental edits. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"isLocked":{"type":"boolean","description":"Whether the resume is locked."}},"required":["isLocked"]}}}},"responses":{"200":{"description":"The resume lock status was updated successfully.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/resumes/lock":{"post":{"operationId":"setResumesLocked","summary":"Set the lock status of several resumes","description":"Locks or unlocks each listed resume as `setResumeLocked` does, in one request. Only resumes whose status actually changes are returned in `updatedIds`; an ID that is unknown, not yours, deleted or already in the requested state is left out. Requires authentication.","tags":["Resumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string","minLength":1},"description":"The IDs of the resumes to lock or unlock."},"isLocked":{"type":"boolean","description":"Whether the resume is locked."}},"required":["ids","isLocked"]}}}},"responses":{"200":{"description":"The IDs of the resumes whose lock status changed.","content":{"application/json":{"schema":{"type":"object","properties":{"updatedIds":{"type":"array","items":{"type":"string"},"description":"The IDs of the resumes whose lock status changed."}},"required":["updatedIds"]}}}}}}},"/resumes/{id}/password":{"put":{"operationId":"setResumePassword","summary":"Set resume password","description":"Sets or updates a password on a resume. When a password is set, viewers of the public resume must enter the password before the resume data is revealed. The password must be between 6 and 64 characters. Requires authentication.","tags":["Resume Sharing"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":6,"maxLength":64}},"required":["password"]}}}},"responses":{"200":{"description":"The resume password was set successfully.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}},"delete":{"operationId":"removeResumePassword","summary":"Remove resume password","description":"Removes password protection from a resume. After removal, the resume (if public) can be viewed without entering a password. Requires authentication.","tags":["Resume Sharing"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"responses":{"200":{"description":"The resume password was removed successfully.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/resumes/{username}/{slug}/password/verify":{"post":{"operationId":"verifyResumePassword","summary":"Verify resume password","description":"Verifies a password for a password-protected public resume. On success, the viewer is granted access to view the resume data for the duration of their session. No authentication required.","tags":["Resume Sharing"],"parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The username of the resume owner."}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"description":"The slug of the resume."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"password":{"type":"string","minLength":1,"description":"The password to verify."}},"required":["password"]}}}},"responses":{"200":{"description":"The password was verified successfully and access has been granted.","content":{"application/json":{"schema":{"type":"boolean"}}}}}}},"/resumes/{id}/duplicate":{"post":{"operationId":"duplicateResume","summary":"Duplicate a resume","description":"Creates a copy of an existing resume with the same data. Optionally override the name, slug, and tags for the duplicate. If not provided, the original resume's name and tags are used, and the slug is the name's with a short suffix so it never collides. Returns the ID of the duplicated resume. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The name of the resume."},"slug":{"type":"string","minLength":1,"description":"The slug of the resume."},"tags":{"type":"array","items":{"type":"string"},"description":"The tags of the resume."}},"required":["name","slug","tags"]}}}},"responses":{"200":{"description":"The ID of the duplicated resume.","content":{"application/json":{"schema":{"type":"string","description":"The ID of the duplicated resume."}}}}}}},"/resumes/{id}/restore":{"post":{"operationId":"restoreResume","summary":"Restore a deleted resume","description":"Brings back a resume deleted within the last minute, with its public link, as it was. After that the resume is gone for good and this returns NOT_FOUND. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"responses":{"200":{"description":"The resume was restored.","content":{"application/json":{"schema":{"anyOf":[{"not":{}},{"not":{}}]}}}}}}},"/resumes/delete":{"post":{"operationId":"deleteResumes","summary":"Delete several resumes","description":"Deletes each listed resume as `deleteResume` does, in one request: they disappear from your lists and their public links stop at once, and for one minute they can be brought back with the bulk restore endpoint. A locked resume is left in place and its ID returned in `blockedIds`; an ID that is unknown, not yours or already deleted is left out of every list; an ID that fails unexpectedly is returned in `failedIds` while the others still complete. Requires authentication.","tags":["Resumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string","minLength":1},"description":"The IDs of the resumes to delete."}},"required":["ids"]}}}},"responses":{"200":{"description":"Which resumes were deleted, which were left in place because they are locked, and which failed.","content":{"application/json":{"schema":{"type":"object","properties":{"deletedIds":{"type":"array","items":{"type":"string"},"description":"The IDs of the resumes that were deleted."},"blockedIds":{"type":"array","items":{"type":"string"},"description":"The IDs left in place because the resume is locked."},"failedIds":{"type":"array","items":{"type":"string"},"description":"The IDs that could not be deleted because of an error; try them again."}},"required":["deletedIds","blockedIds","failedIds"]}}}}}}},"/resumes/restore":{"post":{"operationId":"restoreResumes","summary":"Restore several deleted resumes","description":"Brings back each listed resume deleted within the last minute, as `restoreResume` does, in one request. An ID that is unknown, not yours or past the one-minute window is left out of every list; an ID that fails unexpectedly is returned in `failedIds` while the others still complete. Requires authentication.","tags":["Resumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","minItems":1,"maxItems":1000,"items":{"type":"string","minLength":1},"description":"The IDs of the deleted resumes to bring back."}},"required":["ids"]}}}},"responses":{"200":{"description":"Which resumes were restored and which failed.","content":{"application/json":{"schema":{"type":"object","properties":{"restoredIds":{"type":"array","items":{"type":"string"},"description":"The IDs of the resumes that were brought back."},"failedIds":{"type":"array","items":{"type":"string"},"description":"The IDs that could not be restored because of an error; try them again."}},"required":["restoredIds","failedIds"]}}}}}}},"/resumes/{id}/pdf":{"get":{"operationId":"downloadResumePdf","summary":"Download resume as PDF","description":"Generates a PDF for the specified resume and returns it as a forced download. Only resumes belonging to the authenticated user can be downloaded. Requires authentication.","tags":["Resumes"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The ID of the resume."}}],"responses":{"200":{"description":"The generated resume PDF.","headers":{"content-disposition":{"schema":{"type":"string"},"required":true}},"content":{"application/pdf":{"schema":{"type":"string","contentMediaType":"application/pdf"}}}}}}},"/statistics/users":{"get":{"operationId":"getUserCount","summary":"Get total number of users","description":"Returns the total number of registered users on this HireSweep instance. The count is cached for up to 6 hours for performance. No authentication required.","tags":["Platform Statistics"],"responses":{"200":{"description":"The total number of registered users.","content":{"application/json":{"schema":{"type":"number","description":"The total number of registered users."}}}}}}},"/statistics/resumes":{"get":{"operationId":"getResumeCount","summary":"Get total number of resumes","description":"Returns the total number of resumes created on this HireSweep instance. The count is cached for up to 6 hours for performance. No authentication required.","tags":["Platform Statistics"],"responses":{"200":{"description":"The total number of resumes created.","content":{"application/json":{"schema":{"type":"number","description":"The total number of resumes created."}}}}}}},"/support/chat":{"post":{"operationId":"supportChat","summary":"Ask the support assistant","description":"Streams an answer from HireSweep's support assistant, which answers questions about using HireSweep from its documentation. Send the conversation so far; only the text of each turn is read. No authentication required; rate-limited per account or visitor.","tags":["Support"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"messages":{"type":"array","minItems":1,"maxItems":60,"items":{"not":{}}}},"required":["messages"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{},{"not":{}}]}}}}}}},"/support/forward":{"post":{"operationId":"supportForward","summary":"Send a support request to the team","description":"Emails a request the support assistant handed off to the HireSweep team, with the conversation, so a person can answer it by email. Signed in, the reply goes to the account's email; otherwise send `email`. No authentication required; rate-limited per account or visitor.","tags":["Support"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"topic":{"enum":["billing","account","bug","applying","other"],"type":"string","description":"What the request is about."},"summary":{"type":"string","minLength":1,"maxLength":2000},"email":{"type":"string","maxLength":254,"format":"email"},"page":{"type":"string","maxLength":500,"format":"uri"},"messages":{"type":"array","minItems":1,"maxItems":60,"items":{"not":{}}}},"required":["topic","summary","messages"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"replyTo":{"type":"string"}},"required":["replyTo"]}}}}}}}}}