{"openapi":"3.0.0","paths":{"/v1/jobs/{jobId}":{"get":{"description":"Returns a published job and its public requirements. Does not require job ownership. Closed published jobs remain readable. Their status does not imply applications are accepted. Hidden pay and recruiting data are excluded. This read does not apply, save a job or charge credits.\n\n### Use cases\n\nInspect a published job before deciding whether to apply.\n\n### State and side effects\n\nRead-only and free. No application or saved job is created. Missing, inactive, and unpublished jobs return 404. Hidden compensation and recruiting data are excluded.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/jobs/8gQK2bWa' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"8gQK2bWa\",\n  \"title\": \"Senior Backend Engineer\",\n  \"type\": \"employment\",\n  \"status\": \"open\",\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"organizations\": [\n    \"Acme\"\n  ],\n  \"place\": {\n    \"remote\": true,\n    \"anywhere\": true,\n    \"locations\": []\n  },\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"proficiency\": \"expert\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"details\": [\n    {\n      \"code\": \"responsibilities\",\n      \"content\": \"Build reliable services.\"\n    }\n  ],\n  \"quickApply\": true\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The published job. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The job is missing, inactive, or unpublished. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getJob","parameters":[{"name":"jobId","required":true,"in":"path","description":"The job ID from a Torre job link.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"responses":{"200":{"description":"The published job.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDto"},"example":{"id":"8gQK2bWa","title":"Senior Backend Engineer","type":"employment","status":"open","url":"https://torre.ai/post/8gQK2bWa","organizations":["Acme"],"place":{"remote":true,"anywhere":true,"locations":[]},"skills":[{"name":"Node.js","proficiency":"expert"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"details":[{"code":"responsibilities","content":"Build reliable services."}],"quickApply":true}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The job is missing, inactive, or unpublished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get a published job","tags":["Jobs"]}},"/v1/candidates/me/job-matches":{"get":{"description":"Returns open job summaries ranked using the authenticated candidate’s existing Genome and saved preferences. Candidate identity cannot be overridden. Results reflect the search index and can change between pages. Read full job details with GET https://api.torre.ai/v1/jobs/{jobId}. No profile, application or preference is changed.\n\n### Use cases\n\nFind open jobs using the authenticated candidate’s existing Genome and saved preferences.\n\n### State and side effects\n\nRead-only and free. Returns up to 20 job summaries and scores in search order. Visibility and freshness follow the search index. Pass next_cursor unchanged to continue. Start again after editing a profile or preferences. Read full job details with GET https://api.torre.ai/v1/jobs/{jobId}. No application, profile or preference is changed.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/candidates/me/job-matches?limit=10' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [],\n  \"pagination\": {\n    \"next_cursor\": null,\n    \"has_more\": false\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Matching job summaries and continuation information. |\n| 400 | Invalid query, body or cursor. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | Invalid parameter values. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listCandidateJobMatches","parameters":[{"name":"limit","required":false,"in":"query","description":"Maximum number of job matches to return on this page.","schema":{"minimum":1,"maximum":20,"default":10,"type":"integer"}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor returned by the previous page. Pass it unchanged.","schema":{"maxLength":4096,"type":"string"}}],"responses":{"200":{"description":"Matching job summaries and continuation information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobMatchesDto"},"example":{"data":[],"pagination":{"next_cursor":null,"has_more":false}}}}},"400":{"description":"Invalid query, body or cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid parameter values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List matching jobs","tags":["Jobs"]}},"/v1/jobs/search":{"post":{"description":"Returns job summaries ranked using the authenticated candidate’s existing Genome and saved preferences. Filters apply only to this search. No profile, application or preference is changed.\n\n### Use cases\n\nFind jobs for yourself, with optional remote-only, Torre-only and closed-job filters.\n\n### State and side effects\n\nRead-only and free. Skills, compensation and job types come from the authenticated candidate’s existing Genome and preferences. Set onlyRemote to return remote jobs, torreOnly to return jobs posted on Torre, or includeClosed to include closed jobs. All three default to false. Returns up to 20 job summaries and scores in search order. Pass next_cursor unchanged as cursor with the same filters to continue. Restart after changing filters or preferences. Results reflect the search index. No profile, application or preference is changed.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/jobs/search' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"onlyRemote\":true,\"torreOnly\":true,\"includeClosed\":false,\"limit\":10}'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [],\n  \"pagination\": {\n    \"next_cursor\": null,\n    \"has_more\": false\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Matching job summaries and continuation information. |\n| 400 | Invalid query, body or cursor. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | Invalid parameter values. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"searchJobs","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobSearchDto"},"example":{"onlyRemote":true,"torreOnly":true,"includeClosed":false,"limit":10}}}},"responses":{"200":{"description":"Matching job summaries and continuation information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobMatchesDto"},"example":{"data":[],"pagination":{"next_cursor":null,"has_more":false}}}}},"400":{"description":"Invalid query, body or cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid parameter values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Search jobs","tags":["Jobs"],"x-read-only":true}},"/v1/jobs/{jobId}/match":{"get":{"description":"Returns source match scores, uncertainty and missing-information indicators for the authenticated candidate and a published job. Closed published jobs can also be evaluated. This does not imply applications are accepted. Scores are not hiring probabilities. Private job fields, hidden compensation inputs and diagnostic data are excluded. An unindexed job returns matching_not_ready.\n\n### Use cases\n\nUnderstand why a job matches your profile and which information is missing.\n\n### State and side effects\n\nFree and read-only. Scores describe your match, not your chance of being hired. Missing information and uncertainty are returned separately. Hidden pay and private recruiting data are not included. Factors stay in their returned order. Repeated factors can occur. Individual filter checks can be combined with AND, OR or NOT, and passesFilters reports the combined result. If matching data is not ready for a published job, the response is 503 matching_not_ready. Try again later.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/jobs/8gQK2bWa/match' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"jobId\": \"8gQK2bWa\",\n  \"score\": 0.8,\n  \"min\": 0.6,\n  \"max\": 0.9,\n  \"uncertain\": true,\n  \"passesFilters\": false,\n  \"factors\": [\n    {\n      \"code\": \"skills\",\n      \"score\": 0.8,\n      \"min\": 0.6,\n      \"max\": 0.9,\n      \"uncertain\": true,\n      \"missingInformation\": true\n    }\n  ],\n  \"requirements\": [\n    {\n      \"code\": \"compensation\",\n      \"passed\": false\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Match factors for the authenticated candidate. |\n| 400 | Invalid query, body or cursor. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The job is missing, inactive or unpublished. |\n| 422 | Invalid parameter values. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getCandidateJobMatch","parameters":[{"name":"jobId","required":true,"in":"path","description":"The job ID from a Torre job link.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"responses":{"200":{"description":"Match factors for the authenticated candidate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobMatchExplanationDto"},"example":{"jobId":"8gQK2bWa","score":0.8,"min":0.6,"max":0.9,"uncertain":true,"passesFilters":false,"factors":[{"code":"skills","score":0.8,"min":0.6,"max":0.9,"uncertain":true,"missingInformation":true}],"requirements":[{"code":"compensation","passed":false}]}}}},"400":{"description":"Invalid query, body or cursor.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The job is missing, inactive or unpublished.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid parameter values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Explain a job match","tags":["Jobs"]}},"/v1/skills/search":{"get":{"description":"Finds up to 30 matching skills and skill categories in relevance order. Returns skill IDs and names in the requested language. A nonblank query is required. This read is free and does not create skills or change a profile.\n\n### Use cases\n\nFind a skill ID and name while editing a professional profile.\n\n### State and side effects\n\nRead-only and free. Returns up to 30 matching skills and skill categories in relevance order. Does not create a skill or change a profile. A query with non-whitespace text is required. Locale defaults to en and also supports es. No matches returns an empty array.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/skills/search?q=JavaScript&locale=en' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n[\n  {\n    \"id\": 123,\n    \"name\": \"JavaScript\"\n  }\n]\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Matching skills. No matches returns an empty array. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | The search query is invalid. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"searchSkills","parameters":[{"name":"q","required":true,"in":"query","description":"Skill name or text to search. Must contain non-whitespace text.","schema":{"maxLength":100,"pattern":"\\S","example":"JavaScript","type":"string"}},{"name":"locale","required":false,"in":"query","description":"Language of skill names.","schema":{"default":"en","type":"string","enum":["en","es"]}}],"responses":{"200":{"description":"Matching skills. No matches returns an empty array.","content":{"application/json":{"schema":{"type":"array","maxItems":30,"items":{"$ref":"#/components/schemas/SkillDto"}},"example":[{"id":123,"name":"JavaScript"}]}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The search query is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Search skills","tags":["Skills"]}},"/v1/account":{"get":{"description":"Returns the authenticated account, organization roles, and its current Torre OS status.\n\n### Use cases\n\nCheck which account your API key belongs to before making changes. See its company roles and Torre OS status.\n\n### State and side effects\n\nRead-only. It does not change the account, subscription, organizations, or API key.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/account' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"accountId\": \"person_a1B2c3D4\",\n  \"name\": \"Taylor Smith\",\n  \"email\": \"taylor@example.com\",\n  \"organizations\": [\n    {\n      \"id\": \"org_a1B2c3D4\",\n      \"name\": \"Acme\",\n      \"role\": \"admin\"\n    }\n  ],\n  \"subscriptionStatus\": \"active\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The authenticated account. |\n| 400 | The query or body is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getAccount","parameters":[],"responses":{"200":{"description":"The authenticated account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"},"example":{"accountId":"person_a1B2c3D4","name":"Taylor Smith","email":"taylor@example.com","organizations":[{"id":"org_a1B2c3D4","name":"Acme","role":"admin"}],"subscriptionStatus":"active"}}}},"400":{"description":"The query or body is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get the current account","tags":["Account"]}},"/v1/account/subscription":{"get":{"description":"Returns the authenticated account's current Torre OS subscription. This metadata does not grant access to other API operations.\n\n### Use cases\n\nCheck your current Torre OS plan and billing interval.\n\n### State and side effects\n\nRead-only. Subscription metadata is descriptive and does not authorize another operation.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/account/subscription' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"plan\": \"torre-os\",\n  \"interval\": \"monthly\",\n  \"status\": \"active\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The current subscription, or an empty object. |\n| 400 | The query or body is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getSubscription","parameters":[],"responses":{"200":{"description":"The current subscription, or an empty object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscription"},"example":{"plan":"torre-os","interval":"monthly","status":"active"}}}},"400":{"description":"The query or body is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get your subscription","tags":["Account"]}},"/v1/pricing":{"get":{"description":"Returns the current public API price sheet in US dollars.\n\n### Use cases\n\nRead the current price immediately before a paid action instead of hard-coding costs.\n\n### State and side effects\n\nRead-only. Prices can change independently of the client and no balance is reserved.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/pricing' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"currency\": \"USD\",\n  \"actions\": [\n    {\n      \"action\": \"headhunt\",\n      \"operationIds\": [\n        \"requestOutreach\",\n        \"confirmOutreach\"\n      ],\n      \"pricingModel\": \"flat\",\n      \"price\": 2,\n      \"unit\": \"pitch\"\n    },\n    {\n      \"action\": \"reach\",\n      \"operationIds\": [\n        \"activateReach\"\n      ],\n      \"pricingModel\": \"caller_budget\",\n      \"price\": null,\n      \"unit\": \"day\"\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The current price sheet. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | Pricing is not available for this account, or its source is temporarily unavailable. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getPricing","parameters":[],"responses":{"200":{"description":"The current price sheet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceSheet"},"example":{"currency":"USD","actions":[{"action":"headhunt","operationIds":["requestOutreach","confirmOutreach"],"pricingModel":"flat","price":2,"unit":"pitch"},{"action":"reach","operationIds":["activateReach"],"pricingModel":"caller_budget","price":null,"unit":"day"}]}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"Pricing is not available for this account, or its source is temporarily unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get current pricing","tags":["Account"]}},"/v1/openings":{"post":{"description":"Create an opening, or import a Torre-owned job as its sharer. Send a structured `CreateOpeningInput`, or send `{ \"sourceText\": \"…\", \"organization_id\": 123 }`. Select a company using organization search or creation and send its id. You can instead send `organization` with its name and optional website, links and picture. Torre then finds the company it already has, or creates it, using the job's title, locations and responsibilities. The response returns that company as `organization`, with `matched`. Company selection is required except for flexible-job (freelance). Sending both company selectors returns `422`. Use `organization_ids: [123, 456]` to list multiple existing companies on one opening, with one opening ID and application flow. This is the ordinary multi-company behavior, not a hierarchy. A validation error, or a link Torre already has, creates no company. If posting fails after the opening is created, the company remains. Torre extracts that free-text role description into a structured opening and attempts to save any generated screening questions for you. Omitted `type` defaults to `flexible-job`. When `commitment` is omitted, `employee` derives `full-time`, `part-time` derives `part-time` without hours, `intern` derives `part-time` with 0 hours, and `flexible-job` leaves commitment absent. An import can post a part-time job without hours when its source states none. Other part-time openings need 1–30 `commitment.hours` to publish. Without `action: \"post\"`, new openings start not aligned and not published. If extraction cannot identify a role title, no opening is created and the request returns `422`. The `tagline` is generated by Torre and cannot be supplied.\n\nNormal openings can direct candidates to an external application page while keeping their owner, permissions and publication requirements. Send `externalApplicationUrl` in structured creation to save a normal opening and its Apply destination before optional publication. You can also create a normal draft first and PATCH the link later. Omitting `crawled` defaults to false. Send `crawled: true` explicitly to select the Torre-owned import/share flow. A URL alone never selects it. For an explicitly selected import, send `externalApplicationUrl` for a job you found elsewhere. The job belongs to Torre and you are shown as its sharer. Active sharers of Torre-owned distributed imports can read, edit, close and unpublish them, but cannot manage applicants, publish them later or spend credits. Send `crawledSources` for up to 20 distinct source URLs, independently of the single apply link. An explicit `deadline` (date or RFC3339 timestamp) is saved before publication. LinkedIn imports default to three days when omitted. Duplicate creation never overwrites existing deadlines or sources. The response is a `SharedOpening`, and with `action: \"post\"` the job is posted at creation. If Torre already has a job with that link, nothing is created: you become one of its sharers and get `200`. For other openings, `action: \"post\"` also posts the new opening, as `publishOpening` does. If posting is refused, the error carries the created opening id in `error.details.openingId`. Publication requires the same job details as the web form. `422 opening_incomplete` reports missing sections in `error.details.fields`. A normal draft remains unpublished. If an import fails publication and cleanup succeeds, `error.details.creationState` is `discarded`: its `openingId` is diagnostic, not an editable draft. Correct the input before creating again. For location errors, provide countries for country-restricted remote work or precise places for on-site or hybrid work. Do not widen the source restrictions. `skipAlignment` does not bypass completeness. Inspect a retained draft before retrying creation. For attraction setup alone, send `attractionInitializationKey` and `attractionPreferences`. This saves a quiet draft without extracting requirements or publishing. Reuse the returned opening id and complete it with `updateOpening`.\n\n### Use cases\n\nTurn a hiring brief into a draft, send exact job fields, or import a job found elsewhere. Start with an unpublished draft so you can review it before publishing.\n\n### State and side effects\n\nQuiet initialization accepts a stable attractionInitializationKey with initial choices and returns the same unpublished opening on key reuse. Resume that ID after connecting. Pending reads can be minimal. Normal openings belong to the authenticated account and remain unpublished unless action is post. To direct applicants elsewhere, create a normal draft first and update its externalApplicationUrl before publishing. Ownership, permissions, alignment and publication requirements remain unchanged. The import flow creates a Torre-owned job and records you as its sharer. An existing imported apply link returns 200 and the existing SharedOpening. A newly created opening returns 201. Duplicate imports do not overwrite the existing deadline or sources. Search for or create a company first and send its numeric id as organization_id. You can instead send organization with its name and optional website, links and picture. Torre then finds or creates the company using the opening title, locations and responsibilities, and returns it with matched. Company selection is required except for flexible-job (freelance), including when type is extracted from sourceText. Sending both is rejected. An unknown id, a validation error or an apply link Torre already has creates no company. If posting fails after creation, the company remains. Free-text creation attempts to save generated screening questions. If Torre cannot identify a role title, no opening is created. Publication checks completeness even with skipAlignment. If publication fails after creation, inspect error.details.openingId and error.details.creationState before trying again. A discarded import was removed after validation. Its ID is diagnostic, not an editable draft. Correct the input before creating again. For missing location, provide country restrictions for remote work or precise places for on-site and hybrid work. Never widen the source restrictions.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"organization_id\":123,\"sourceText\":\"Hiring a senior Node.js engineer, remote only in Colombia and Mexico, to build a payments platform.\"}'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Senior Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"open\",\n  \"published\": false,\n  \"aligned\": null,\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Torre already has a job with this link. Nothing was created. |\n| 201 | Created. Imported jobs return a SharedOpening. Normal openings return an Opening. |\n| 400 | Malformed request. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 409 | With `action: \"post\"`, the opening was created but not posted. |\n| 422 | Invalid fields, or opening_incomplete when required publication sections are missing. The error.details.openingId field identifies the result. A creationState value of discarded means cleanup removed an import, not a retained draft. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"createOpening","parameters":[{"name":"Idempotency-Key","in":"header","description":"A client-generated key for correlating this request. This operation does not guarantee duplicate suppression or return the original result when retried. Before retrying an uncertain result, list your openings to check whether it was created.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreateOpeningInput"},{"type":"object","additionalProperties":false,"required":["sourceText"],"not":{"anyOf":[{"required":["organization_id","organization"]},{"required":["organization_ids","organization"]},{"required":["organization_id","organization_ids"]}]},"properties":{"organization_ids":{"type":"array","items":{"type":"integer","minimum":1,"maximum":2147483647},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Existing company IDs from organization search or creation. Lists all companies on one opening, with one opening ID and application flow. Do not combine with organization_id or organization. This does not define a corporate hierarchy or grant company roles.","example":[123,456]},"organization_id":{"type":"integer","minimum":1,"maximum":2147483647,"description":"An existing organization id. Select organization_id, organization_ids or organization unless the extracted type is flexible-job (freelance)."},"organization":{"allOf":[{"$ref":"#/components/schemas/OpeningOrganizationInput"}],"description":"The company, instead of organization_id or organization_ids. Torre finds the company it already has, using the job's title, locations and responsibilities, or creates it. Do not combine company selectors."},"sourceText":{"type":"string","description":"Torre extracts the job type from this role description before checking company requirements. A flexible-job (freelance) brief can omit the company. Other extracted types require organization_id, organization_ids or organization and otherwise return 422 invalid_field with those fields in error.details.fields."}}},{"$ref":"#/components/schemas/InitializeOpening"}]},"examples":{"externalApply":{"summary":"Normal opening with an external Apply destination","value":{"organization_id":123,"objective":"Senior Backend Engineer","type":"employee","remote":true,"externalApplicationUrl":"https://careers.example.com/jobs/backend-engineer"}},"structured":{"summary":"Structured input","value":{"objective":"Senior Backend Engineer","type":"employee","remote":true,"organization_id":123}},"fromText":{"summary":"Extract from natural language","value":{"organization_id":123,"sourceText":"Hiring a senior Go engineer, remote in LATAM, to build the payments platform."}},"post":{"summary":"Bring in a job found elsewhere and post it","value":{"crawled":true,"organization_id":123,"objective":"Senior Backend Engineer","type":"employee","agreement":{"type":"employment-contract"},"geography":{"type":"remote_anywhere"},"responsibilities":"Build reliable payment services, review production changes, collaborate with product teams, and investigate incidents to improve reliability for customers.","skills":[{"name":"Go","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"code":"to-be-agreed"},"externalApplicationUrl":"https://jobs.example.com/roles/42","crawledSources":["https://careers.example.com/backend-engineer"],"deadline":"2030-08-01","action":"post","skipAlignment":true}}}}}},"responses":{"200":{"description":"Torre already has a job with this link. Nothing was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SharedOpening"}}}},"201":{"description":"Created. Imported jobs return a SharedOpening. Normal openings return an Opening.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OpeningDto"},{"$ref":"#/components/schemas/OpeningAttraction"},{"$ref":"#/components/schemas/SharedOpening"}]},"example":{"objective":"Senior Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":false,"aligned":null,"url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"400":{"description":"Malformed request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"With `action: \"post\"`, the opening was created but not posted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid fields, or opening_incomplete when required publication sections are missing. The error.details.openingId field identifies the result. A creationState value of discarded means cleanup removed an import, not a retained draft.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"},"example":{"error":{"type":"validation_error","code":"opening_incomplete","message":"Complete the required job-post details in Torre before publishing.","details":{"fields":["details","compensation"],"openingId":"8gQK2bWa"}},"request_id":"req_example"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create an opening","tags":["Openings"]},"get":{"description":"Returns the authenticated actor’s posted openings and translates source pagination into the public cursor envelope. Results can move between cursor pages when openings change.\n\n### Use cases\n\nList the openings your account manages. Use the next cursor to load more.\n\n### State and side effects\n\nRead-only. Cursor pages are a live view and can shift when openings are created or updated.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings?limit=25' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"8gQK2bWa\",\n      \"objective\": \"Senior Backend Engineer\",\n      \"status\": \"open\",\n      \"published\": false,\n      \"aligned\": null,\n      \"applicantCount\": 0,\n      \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n    }\n  ],\n  \"pagination\": {\n    \"next_cursor\": null,\n    \"has_more\": false\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A page of openings. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | The request was well-formed but failed validation. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listOpenings","parameters":[{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.next_cursor`.","schema":{"maxLength":10,"pattern":"^(?:0|[1-9]\\d{0,8}|1\\d{9}|20\\d{8}|21[0-3]\\d{7}|214[0-6]\\d{6}|2147[0-3]\\d{5}|21474[0-7]\\d{4}|214748[0-2]\\d{3}|2147483[0-5]\\d{2}|21474836[0-3]\\d|214748364[0-7])$","type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1-100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}}],"responses":{"200":{"description":"A page of openings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningList"},"example":{"data":[{"id":"8gQK2bWa","objective":"Senior Backend Engineer","status":"open","published":false,"aligned":null,"applicantCount":0,"updatedAt":"2026-09-14T15:30:00.000Z"}],"pagination":{"next_cursor":null,"has_more":false}}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request was well-formed but failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List your openings","tags":["Openings"]}},"/v1/openings/{openingId}":{"get":{"description":"Returns one of your own openings by its opaque `id`, including its `aligned` status, publication state, and stats. Active sharers can also retrieve Torre-owned distributed imports, including `crawledSources`, `externalApplicationUrl` and the exact `deadlineAt` timestamp.\n\n### Use cases\n\nRead a saved opening to review its requirements, publication status and latest applicant count.\n\n### State and side effects\n\nThis read changes nothing. A pending attraction opening can return the minimal OpeningAttraction response with setupPending true. Continue that same ID. You must manage the opening or be an active sharer of an eligible imported job. Missing jobs and jobs you cannot access both return 404. Use deadlineAt for the exact saved deadline timestamp, or deadline for its calendar date.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Senior Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"open\",\n  \"published\": false,\n  \"aligned\": null,\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The saved opening or its incomplete attraction setup. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getOpening","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The saved opening or its incomplete attraction setup.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OpeningDto"},{"$ref":"#/components/schemas/OpeningAttraction"}]},"example":{"objective":"Senior Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":false,"aligned":null,"url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an opening","tags":["Openings"]},"patch":{"description":"Update the supplied opening without creating another. Company selection, job type, agreement, commitment, timeframe and start date can complete an initialized draft. Other writable fields are `objective`, `responsibilities`, `skills`, `languages`, `compensation`, `deadline`, `geography`, `crawledSources`, and `externalApplicationUrl`. Active sharers can also update Torre-owned distributed imports, except their application destination. Send at least one field. Every skill requires at least one native `experience` or `proficiency` requirement. A `deadline` update must be sent by itself, as must a complete `geography` or `crawledSources` replacement. An empty sources list clears the metadata without changing the apply link. For a salary range, send both `min` and `max`. `min` must not exceed `max`. For compensation to be agreed upon, send `{ \"code\": \"to-be-agreed\" }` without amounts. Omitted `code` means range.\n\nEditing a search criterion such as `objective`, `skills`, `languages`, `compensation`, or `geography` resets its alignment: `aligned` becomes `null`. `getAlignment` can read that state. Use the alignment, search, and publication operations to continue the workflow. Send `externalApplicationUrl` alone to add or replace the application destination on an opening you own or manage. This preserves ownership, import status, sources, alignment and publication. Omit the field to keep the current link. Null and empty values are rejected. The `deadline` does not affect alignment. The `tagline` is generated by Torre and cannot be updated through this operation.\n\nA missing opening and an opening you cannot access return the same `404` response.\n\n### Use cases\n\nCorrect a saved opening without creating another job. Send only the fields you want to change. Use organization_ids to replace all associated companies with a flat list of existing company IDs. All selected companies stay on the same opening and application flow. No corporate hierarchy or new company roles are created. Do not combine with organization_id. Only owners and accepted managers can change company associations.\n\n### State and side effects\n\nComplete pending attraction setup on this same opening ID. Read again after saving. Completion is not publication approval and partial writes can survive a later failure. Updates only the fields in the PATCH schema. Omitted fields are left unchanged. Active sharers can update Torre-owned distributed imports without becoming managers. Matching-criteria changes reset alignment. Deadline-only, crawledSources-only and application-link-only changes do not. Send externalApplicationUrl alone to add or replace the destination on an opening you own or manage. Sharer access alone is insufficient. This preserves ownership, native/imported status, sources and publication. Omit to keep the current link. Null and empty values are rejected. The crawledSources field replaces the source collection, not the main application link. Torre generates the read-only tagline. Submit geography alone to replace the complete working arrangement: physical_location, hybrid, remote_anywhere, remote_countries, or remote_timezones. Countries and timezone restrictions from the old mode are removed. Supply every intended country for regional jobs such as LATAM. A timezone range is not a country-residency restriction.\n\n### Example request\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"objective\":\"Staff Backend Engineer\"}'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Staff Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"open\",\n  \"published\": false,\n  \"aligned\": null,\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Saved on the same opening. |\n| 400 | Malformed request. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | The request was well-formed but failed validation. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"updateOpening","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOpeningInputDto"},"example":{"objective":"Staff Backend Engineer"}}}},"responses":{"200":{"description":"Saved on the same opening.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/OpeningDto"},{"$ref":"#/components/schemas/OpeningAttraction"}]},"example":{"objective":"Staff Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":false,"aligned":null,"url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"400":{"description":"Malformed request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request was well-formed but failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Update an opening","tags":["Openings"]}},"/v1/openings/{openingId}/close":{"post":{"description":"Stops new activity for the opening and returns it with `status: \"closed\"`. The request body and query string must be empty. Owners and accepted managers can close their openings. Active sharers can close Torre-owned distributed imports without becoming managers.\n\n### Use cases\n\nStop accepting and processing new activity for an opening that is no longer hiring.\n\n### State and side effects\n\nCloses an accessible opening. Owners, accepted managers, and active sharers of Torre-owned distributed imports can use this command. It does not grant management access to a sharer. Send no body and no query parameters. The command is not automatically retried. Closing does not change publication state.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/close' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Senior Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"closed\",\n  \"published\": true,\n  \"aligned\": null,\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Closed. |\n| 400 | Malformed request. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | The query or body is not empty. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"closeOpening","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Closed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningDto"},"example":{"objective":"Senior Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"closed","published":true,"aligned":null,"url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"400":{"description":"Malformed request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The query or body is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Close an opening","tags":["Openings"]}},"/v1/openings/{openingId}/publish":{"post":{"description":"Publishes the opening by default, or unpublishes it when `published` is `false`. Publishing normally requires an aligned opening and a verified job poster. `skipAlignment` defaults to `false` and bypasses only the alignment requirement. An uncertain result requires a fresh opening read before another request. The publication state sometimes changes before an error response. Publication requires the same job details as the web form, even with `skipAlignment`. `422 opening_incomplete` reports missing sections in `error.details.fields`. Complete those sections and align again if required. Fields not exposed by public PATCH must be completed in Torre. Incomplete drafts can still be read and unpublished. Active sharers of Torre-owned distributed imports can unpublish them but cannot publish them. Publishing does not reopen a closed job: `409 opening_closed` requires a standalone PATCH with a future `deadline` before publishing again.\n\n### Use cases\n\nPublish an aligned opening as a job post, or unpublish it while keeping the opening available for management.\n\n### State and side effects\n\nChanges publication state. Publication checks the same required sections as the web form and normally requires alignment. The skipAlignment field skips alignment only. Missing sections return 422 opening_incomplete with error.details.fields. A company is required except for flexible-job (freelance), even with skipAlignment. A legacy opening without a company returns 409 opening_organization_required. Select its company in Torre before retrying. Active sharers of a Torre-owned import can unpublish it but cannot publish it. Do not retry an uncertain write automatically.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/publish' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"published\":true}'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Senior Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"open\",\n  \"published\": true,\n  \"aligned\": \"2026-09-14T16:00:00.000Z\",\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The updated opening. |\n| 400 | Malformed request. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 409 | The opening is closed, needs a company, is not aligned, or is a duplicate. |\n| 422 | Invalid fields, or opening_incomplete when required publication sections are missing. See error.details.fields. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"publishOpening","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishOpeningRequestDto"},"example":{"published":true}}}},"responses":{"200":{"description":"The updated opening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningDto"},"example":{"objective":"Senior Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":true,"aligned":"2026-09-14T16:00:00.000Z","url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"400":{"description":"Malformed request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The opening is closed, needs a company, is not aligned, or is a duplicate.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid fields, or opening_incomplete when required publication sections are missing. See error.details.fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"},"example":{"error":{"type":"validation_error","code":"opening_incomplete","message":"Complete the required job-post details in Torre before publishing.","details":{"fields":["details","compensation"]}},"request_id":"req_example"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Post or unpost a job","tags":["Publish a job"]}},"/v1/openings/{openingId}/attraction-preferences":{"get":{"description":"Read the supplied opening before continuing its setup. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`). Missing preferences are unanswered. This read does not activate services.\n\n### Use cases\n\nContinue the supplied saved opening rather than creating another.\n\n### State and side effects\n\nRead-only. Missing attraction preferences remain unanswered.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/attraction-preferences' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"8gQK2bWa\",\n  \"published\": false,\n  \"attractionPreferences\": {\n    \"services\": [\n      \"torre-network\"\n    ],\n    \"revision\": 0\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The saved opening and its private attraction choices. |\n| 400 | Malformed request or unsupported query. |\n| 401 | Authentication is required. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening is missing or inaccessible. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getOpeningAttractionPreferences","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The saved opening and its private attraction choices.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningAttraction"},"example":{"id":"8gQK2bWa","published":false,"attractionPreferences":{"services":["torre-network"],"revision":0}}}}},"400":{"description":"Malformed request or unsupported query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Authentication is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening is missing or inaccessible.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Read saved attraction choices","tags":["Openings"]},"put":{"description":"Save intent only, without publishing or spending. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`). Supply the last read revision. On conflict, read current answers and reconcile rather than retrying stale choices. Omitted fields stay unchanged. An empty services array clears draft choices.\n\n### Use cases\n\nSave attraction intent and application destination for the supplied opening.\n\n### State and side effects\n\nDoes not publish, activate paid services or change an active campaign. Read and reconcile a revision conflict before writing again.\n\n### Example request\n\n```bash\ncurl --request PUT \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/attraction-preferences' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"revision\":0,\"services\":[\"torre-network\"]}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"8gQK2bWa\",\n  \"published\": false,\n  \"attractionPreferences\": {\n    \"services\": [\n      \"torre-network\"\n    ],\n    \"revision\": 1\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The updated private attraction choices and current revision. |\n| 400 | Malformed request or unsupported query. |\n| 401 | Authentication is required. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening is missing or inaccessible. |\n| 409 | Read the current revision before reconciling conflicting edits. |\n| 422 | The supplied choices are invalid. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"updateOpeningAttractionPreferences","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAttractionPreferences"},"example":{"revision":0,"services":["torre-network"]}}}},"responses":{"200":{"description":"The updated private attraction choices and current revision.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningAttraction"},"example":{"id":"8gQK2bWa","published":false,"attractionPreferences":{"services":["torre-network"],"revision":1}}}}},"400":{"description":"Malformed request or unsupported query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Authentication is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening is missing or inaccessible.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"Read the current revision before reconciling conflicting edits.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The supplied choices are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Save attraction choices","tags":["Openings"]}},"/v1/openings/{openingId}/applicants":{"get":{"description":"Lists people who applied to this opening, including application-delivered contact information.\n\n### Use cases\n\nSee who applied to your opening. Filter by stage and sort by recency or match rank.\n\n### State and side effects\n\nFree and read-only. Use stageId=applicants for the Applicants column: people who have not been moved into another stage.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/applicants?stageId=applicants&sort=recency&limit=25' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"candidateId\": \"c_a1B2c3D4\",\n      \"name\": \"Alex Morgan\",\n      \"professionalHeadline\": \"Backend engineer\",\n      \"stageId\": \"stage-shortlisted\",\n      \"status\": \"in_touch\",\n      \"matchStatus\": \"match\",\n      \"matchScore\": 92,\n      \"reviewedAt\": \"2026-09-14T16:00:00.000Z\",\n      \"stageEnteredAt\": \"2026-09-14T15:00:00.000Z\",\n      \"disqualification\": null,\n      \"contactInfo\": {\n        \"email\": null,\n        \"phone\": null,\n        \"socialMedia\": []\n      },\n      \"appliedAt\": \"2026-09-13T18:00:00.000Z\"\n    }\n  ],\n  \"pagination\": {\n    \"next_cursor\": null,\n    \"has_more\": false\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A page of applicants. |\n| 400 | The JSON body or query structure is malformed, or the cursor is invalid or stale. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening path identifier is invalid. |\n| 422 | A known query parameter has an invalid value. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listApplicants","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}},{"name":"sort","required":false,"in":"query","description":"Order by application recency or match rank. Keep the same sort when continuing a cursor.","schema":{"type":"string","enum":["recency","match_rank"]}},{"name":"stageId","required":false,"in":"query","description":"The opaque stage id to filter by, or `applicants` for the Applicants column.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1-100).","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.next_cursor`.","schema":{"type":"string","maxLength":1024}}],"responses":{"200":{"description":"A page of applicants.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicantList"},"example":{"data":[{"candidateId":"c_a1B2c3D4","name":"Alex Morgan","professionalHeadline":"Backend engineer","stageId":"stage-shortlisted","status":"in_touch","matchStatus":"match","matchScore":92,"reviewedAt":"2026-09-14T16:00:00.000Z","stageEnteredAt":"2026-09-14T15:00:00.000Z","disqualification":null,"contactInfo":{"email":null,"phone":null,"socialMedia":[]},"appliedAt":"2026-09-13T18:00:00.000Z"}],"pagination":{"next_cursor":null,"has_more":false}}}}},"400":{"description":"The JSON body or query structure is malformed, or the cursor is invalid or stale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening path identifier is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"A known query parameter has an invalid value.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List applicants","tags":["Review applicants"]}},"/v1/openings/{openingId}/applicants/{candidateId}":{"patch":{"description":"Send exactly one field. Use `stageId` to request a move to a stage returned by the stages endpoint, including custom stages. Use `status` to change the application status without selecting a pipeline column. Send `stageId: \"applicants\"` to move the applicant back to the Applicants column. The current application state determines which transitions are allowed. A successful response returns the updated applicant.\n\n### Use cases\n\nMove an applicant to another hiring stage, or change their application status.\n\n### State and side effects\n\nSend either `stageId` or `status`, not both. A `stageId` identifies a stage returned by the stages endpoint, including a custom stage. Use `stageId: \"applicants\"` to restore the unassigned Applicants column. The candidate’s current application state still determines whether a transition is allowed. A valid destination id does not guarantee that the move is allowed. A status update does not select a pipeline column. The response contains the updated applicant.\n\n### Example request\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/applicants/c_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"stageId\":\"stage-technical-interview\"}'\n```\n\n### Example response\n\n```json\n{\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"name\": \"Alex Morgan\",\n  \"professionalHeadline\": \"Backend engineer\",\n  \"stageId\": \"stage-shortlisted\",\n  \"status\": \"in_touch\",\n  \"matchStatus\": \"match\",\n  \"matchScore\": 92,\n  \"reviewedAt\": \"2026-09-14T16:00:00.000Z\",\n  \"stageEnteredAt\": \"2026-09-14T15:00:00.000Z\",\n  \"disqualification\": null,\n  \"contactInfo\": {\n    \"email\": null,\n    \"phone\": null,\n    \"socialMedia\": []\n  },\n  \"appliedAt\": \"2026-09-13T18:00:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The updated applicant. |\n| 400 | The JSON body is malformed or the query is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | A path identifier is invalid. |\n| 409 | The applicant is locked as disqualified and cannot receive a direct status update. |\n| 422 | The request body is not a closed update object. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"updateApplicant","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}},{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"title":"Move to a pipeline stage","allOf":[{"$ref":"#/components/schemas/UpdateApplicantRequest"},{"required":["stageId"]}]},{"title":"Change the application status","allOf":[{"$ref":"#/components/schemas/UpdateApplicantRequest"},{"required":["status"]}]}]},"examples":{"customStage":{"summary":"Move to a custom pipeline stage","value":{"stageId":"stage-technical-interview"}},"applicationStatus":{"summary":"Change the application status","value":{"status":"retracted"}}}}}},"responses":{"200":{"description":"The updated applicant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"},"example":{"candidateId":"c_a1B2c3D4","name":"Alex Morgan","professionalHeadline":"Backend engineer","stageId":"stage-shortlisted","status":"in_touch","matchStatus":"match","matchScore":92,"reviewedAt":"2026-09-14T16:00:00.000Z","stageEnteredAt":"2026-09-14T15:00:00.000Z","disqualification":null,"contactInfo":{"email":null,"phone":null,"socialMedia":[]},"appliedAt":"2026-09-13T18:00:00.000Z"}}}},"400":{"description":"The JSON body is malformed or the query is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"A path identifier is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The applicant is locked as disqualified and cannot receive a direct status update.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request body is not a closed update object.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Move an applicant or update status","tags":["Review applicants"]},"get":{"description":"Returns one applicant with their current stage, review state, and any contact information available through their application. You must have access to the opening.\n\n### Use cases\n\nRead one applicant’s current stage, review decision and contact information shared with the application.\n\n### State and side effects\n\nRead-only. It verifies opening ownership and does not unlock or purchase additional contact data.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/applicants/c_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"name\": \"Alex Morgan\",\n  \"professionalHeadline\": \"Backend engineer\",\n  \"stageId\": \"stage-shortlisted\",\n  \"status\": \"in_touch\",\n  \"matchStatus\": \"match\",\n  \"matchScore\": 92,\n  \"reviewedAt\": \"2026-09-14T16:00:00.000Z\",\n  \"stageEnteredAt\": \"2026-09-14T15:00:00.000Z\",\n  \"disqualification\": null,\n  \"contactInfo\": {\n    \"email\": null,\n    \"phone\": null,\n    \"socialMedia\": []\n  },\n  \"appliedAt\": \"2026-09-13T18:00:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Returns the applicant with stage, review, and delivered contact information. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getApplicant","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}},{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns the applicant with stage, review, and delivered contact information.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"},"example":{"candidateId":"c_a1B2c3D4","name":"Alex Morgan","professionalHeadline":"Backend engineer","stageId":"stage-shortlisted","status":"in_touch","matchStatus":"match","matchScore":92,"reviewedAt":"2026-09-14T16:00:00.000Z","stageEnteredAt":"2026-09-14T15:00:00.000Z","disqualification":null,"contactInfo":{"email":null,"phone":null,"socialMedia":[]},"appliedAt":"2026-09-13T18:00:00.000Z"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an applicant","tags":["Review applicants"]}},"/v1/openings/{openingId}/applicants/{candidateId}/review":{"post":{"description":"Records a match or rule-out decision and returns the updated applicant. A ruled-out decision requires a reason and can optionally include feedback or notify the applicant. An uncertain result requires a fresh applicant read before another request. The decision sometimes persists before an error response.\n\n### Use cases\n\nRecord an approved match or rule-out decision for an applicant.\n\n### State and side effects\n\nPersists the review before optional notification work. A later failure can occur after the decision is already saved.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/applicants/c_a1B2c3D4/review' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"verdict\":\"ruled_out\",\"reason\":\"no_match\",\"feedback\":\"The role requires more production Node.js experience.\",\"notifyApplicant\":false}'\n```\n\n### Example response\n\n```json\n{\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"name\": \"Alex Morgan\",\n  \"professionalHeadline\": \"Backend engineer\",\n  \"stageId\": \"stage-shortlisted\",\n  \"status\": \"disqualified\",\n  \"matchStatus\": \"no_match\",\n  \"matchScore\": 92,\n  \"reviewedAt\": \"2026-09-14T16:00:00.000Z\",\n  \"stageEnteredAt\": \"2026-09-14T15:00:00.000Z\",\n  \"disqualification\": {\n    \"reason\": \"no_match\",\n    \"feedback\": \"The role requires more production Node.js experience.\"\n  },\n  \"contactInfo\": {\n    \"email\": null,\n    \"phone\": null,\n    \"socialMedia\": []\n  },\n  \"appliedAt\": \"2026-09-13T18:00:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The applicant after the review decision was applied. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 409 | The applicant cannot be reviewed in its current state. |\n| 422 | The request contains invalid fields. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"reviewApplicant","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}},{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ReviewApplicantRequest"},{"oneOf":[{"required":["verdict"],"properties":{"verdict":{"type":"string","enum":["match"]}},"not":{"anyOf":[{"required":["reason"]},{"required":["feedback"]},{"required":["notifyApplicant"]}]}},{"required":["verdict","reason"],"properties":{"verdict":{"type":"string","enum":["ruled_out"]}}}]}]},"example":{"verdict":"ruled_out","reason":"no_match","feedback":"The role requires more production Node.js experience.","notifyApplicant":false}}}},"responses":{"200":{"description":"The applicant after the review decision was applied.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Applicant"},"example":{"candidateId":"c_a1B2c3D4","name":"Alex Morgan","professionalHeadline":"Backend engineer","stageId":"stage-shortlisted","status":"disqualified","matchStatus":"no_match","matchScore":92,"reviewedAt":"2026-09-14T16:00:00.000Z","stageEnteredAt":"2026-09-14T15:00:00.000Z","disqualification":{"reason":"no_match","feedback":"The role requires more production Node.js experience."},"contactInfo":{"email":null,"phone":null,"socialMedia":[]},"appliedAt":"2026-09-13T18:00:00.000Z"}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The applicant cannot be reviewed in its current state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request contains invalid fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Review an applicant","tags":["Review applicants"]}},"/v1/openings/{openingId}/alignment":{"get":{"description":"Returns the opening's current `aligned` timestamp and status without changing it.\n\n### Use cases\n\nCheck whether an opening can be searched or published and whether criteria edits require a new confirmation.\n\n### State and side effects\n\nRead-only. If aligned is null, review and confirm the requirements before searching or publishing with alignment required.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/alignment' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"aligned\": \"2026-09-14T16:00:00.000Z\",\n  \"status\": \"aligned\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Alignment status. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | Complete the opening requirements before alignment. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getAlignment","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"Alignment status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlignmentDto"},"example":{"aligned":"2026-09-14T16:00:00.000Z","status":"aligned"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Complete the opening requirements before alignment.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an opening's alignment status","tags":["Openings"]},"put":{"description":"Stores the current alignment timestamp and returns the verified opening.\n\n### Use cases\n\nConfirm that the current opening criteria represent the intended candidate search.\n\n### State and side effects\n\nStores the current alignment timestamp and returns the verified opening.\n\n### Example request\n\n```bash\ncurl --request PUT \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/alignment' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Senior Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"open\",\n  \"published\": false,\n  \"aligned\": \"2026-09-14T16:00:00.000Z\",\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The opening, now aligned. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | Complete the opening requirements before continuing. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"confirmAlignment","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The opening, now aligned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningDto"},"example":{"objective":"Senior Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":false,"aligned":"2026-09-14T16:00:00.000Z","url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Complete the opening requirements before continuing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Confirm alignment","tags":["Openings"]}},"/v1/openings/{openingId}/alignment/feedback":{"post":{"description":"Applies feedback to the opening and can create screening questions. Returned `screeningQuestions` are already saved and include their IDs. When candidate-specific feedback includes a presentation token, that presented candidate is recorded as a no-match. An uncertain result requires fresh opening and screening-question reads before another request. Some changes sometimes persist before an error response.\n\n### Use cases\n\nRefine an opening after inspecting candidates and reject a presented synthetic candidate when it is not a match.\n\n### State and side effects\n\nFeedback about a presented candidate records a no-match and can update requirements or add screening questions. Those questions are already saved. Do not add them again. If a request fails or times out, read the opening and its questions before trying again because some changes can already be saved.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/alignment/feedback' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"feedback\":\"Prioritize candidates with production payments experience.\",\"candidateId\":\"candidate_synthetic_1\",\"presentationToken\":\"v1.<opaque-presentation>.<signature>\"}'\n```\n\n### Example response\n\n```json\n{\n  \"type\": \"changes\",\n  \"opening\": {\n    \"objective\": \"Senior Payments Backend Engineer\",\n    \"tagline\": \"Build reliable payments at global scale.\",\n    \"type\": \"employee\",\n    \"remote\": true,\n    \"skills\": [\n      {\n        \"name\": \"Node.js\",\n        \"experience\": \"3-plus-years\"\n      }\n    ],\n    \"languages\": [\n      {\n        \"code\": \"en\",\n        \"fluency\": \"fully-fluent\"\n      }\n    ],\n    \"compensation\": {\n      \"min\": 90000,\n      \"max\": 120000,\n      \"currency\": \"USD\",\n      \"periodicity\": \"yearly\"\n    },\n    \"commitment\": {\n      \"code\": \"full-time\",\n      \"hours\": 40\n    },\n    \"organizationId\": \"org_a1B2c3D4\",\n    \"organizationIds\": [\n      123\n    ],\n    \"id\": \"8gQK2bWa\",\n    \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n    \"status\": \"open\",\n    \"published\": false,\n    \"aligned\": null,\n    \"url\": \"https://torre.ai/post/8gQK2bWa\",\n    \"stats\": {\n      \"applicants\": 0\n    },\n    \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n    \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n  },\n  \"screeningQuestions\": [\n    {\n      \"id\": \"question_a1B2c3D4\",\n      \"type\": \"written\",\n      \"prompt\": \"Describe a payment system you operated.\"\n    }\n  ],\n  \"message\": \"The opening criteria and screening questions were updated.\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | How the feedback was interpreted and any applied changes. |\n| 400 | Malformed request. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 409 | The opening changed after the candidate was presented. |\n| 422 | The request was well-formed but failed validation. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"submitAlignmentFeedback","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlignmentFeedbackRequestDto"},"example":{"feedback":"Prioritize candidates with production payments experience.","candidateId":"candidate_synthetic_1","presentationToken":"v1.<opaque-presentation>.<signature>"}}}},"responses":{"200":{"description":"How the feedback was interpreted and any applied changes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefineSearchResult"},"example":{"type":"changes","opening":{"objective":"Senior Payments Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":false,"aligned":null,"url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"},"screeningQuestions":[{"id":"question_a1B2c3D4","type":"written","prompt":"Describe a payment system you operated."}],"message":"The opening criteria and screening questions were updated."}}}},"400":{"description":"Malformed request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The opening changed after the candidate was presented.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request was well-formed but failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Submit alignment feedback","tags":["Openings"]}},"/v1/openings/{openingId}/alignment/candidate":{"post":{"description":"Generates the same fictional persona used by the Torre alignment UI, removes identity fields, and returns short-lived proof tied to the current opening criteria.\n\n### Use cases\n\nReview a fictional candidate to check whether your saved job requirements describe the person you want to hire.\n\n### State and side effects\n\nCreates a temporary synthetic profile. Its proof expires after 15 minutes and becomes stale as soon as the opening changes.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/alignment/candidate' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"candidate\": {\n    \"candidateId\": \"candidate_synthetic_1\",\n    \"synthetic\": true,\n    \"professionalHeadline\": \"Senior backend engineer\",\n    \"summary\": \"Builds reliable distributed payment systems.\",\n    \"location\": {\n      \"name\": \"Bogota\",\n      \"country\": \"Colombia\"\n    },\n    \"skills\": [\n      {\n        \"name\": \"Node.js\",\n        \"weight\": 91,\n        \"proficiency\": \"expert\"\n      }\n    ],\n    \"experiences\": [\n      {\n        \"category\": \"jobs\",\n        \"name\": \"Backend Engineer\",\n        \"organizationName\": \"Example company\",\n        \"fromYear\": \"2022\",\n        \"toYear\": \"2026\"\n      }\n    ],\n    \"languages\": [\n      {\n        \"code\": \"en\",\n        \"fluency\": \"fully-fluent\"\n      }\n    ]\n  },\n  \"presentationToken\": \"v1.<opaque-presentation>.<signature>\",\n  \"expiresAt\": \"2026-09-14T16:15:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | An anonymized synthetic candidate and its confirmation proof. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | Complete the opening requirements before continuing. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"presentAlignmentCandidate","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"An anonymized synthetic candidate and its confirmation proof.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlignmentCandidatePresentation"},"example":{"candidate":{"candidateId":"candidate_synthetic_1","synthetic":true,"professionalHeadline":"Senior backend engineer","summary":"Builds reliable distributed payment systems.","location":{"name":"Bogota","country":"Colombia"},"skills":[{"name":"Node.js","weight":91,"proficiency":"expert"}],"experiences":[{"category":"jobs","name":"Backend Engineer","organizationName":"Example company","fromYear":"2022","toYear":"2026"}],"languages":[{"code":"en","fluency":"fully-fluent"}]},"presentationToken":"v1.<opaque-presentation>.<signature>","expiresAt":"2026-09-14T16:15:00.000Z"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Complete the opening requirements before continuing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Present an alignment candidate","tags":["Openings"]}},"/v1/openings/{openingId}/alignment/confirm":{"post":{"description":"Aligns the opening only when the proof belongs to this actor, opening, candidate, and unchanged opening version. The existing bodyless PUT confirmation remains available.\n\n### Use cases\n\nConfirm that the fictional candidate matches your hiring needs and approve the requirements used to generate it.\n\n### State and side effects\n\nThe authenticated account, opening, candidate, token expiry, and opening version must match the presentation. A changed opening requires a new presentation.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/alignment/confirm' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"candidateId\":\"candidate_synthetic_1\",\"presentationToken\":\"v1.<opaque-presentation>.<signature>\"}'\n```\n\n### Example response\n\n```json\n{\n  \"objective\": \"Senior Backend Engineer\",\n  \"tagline\": \"Build reliable payments at global scale.\",\n  \"type\": \"employee\",\n  \"remote\": true,\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"experience\": \"3-plus-years\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"compensation\": {\n    \"min\": 90000,\n    \"max\": 120000,\n    \"currency\": \"USD\",\n    \"periodicity\": \"yearly\"\n  },\n  \"commitment\": {\n    \"code\": \"full-time\",\n    \"hours\": 40\n  },\n  \"organizationId\": \"org_a1B2c3D4\",\n  \"organizationIds\": [\n    123\n  ],\n  \"id\": \"8gQK2bWa\",\n  \"slug\": \"senior-backend-engineer-8gQK2bWa\",\n  \"status\": \"open\",\n  \"published\": false,\n  \"aligned\": \"2026-09-14T16:00:00.000Z\",\n  \"url\": \"https://torre.ai/post/8gQK2bWa\",\n  \"stats\": {\n    \"applicants\": 0\n  },\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\",\n  \"updatedAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The opening, now aligned. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 409 | The opening changed after the candidate was presented. |\n| 422 | The candidate and presentation proof do not match or the proof expired. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"confirmPresentedAlignment","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmPresentedAlignmentRequest"},"example":{"candidateId":"candidate_synthetic_1","presentationToken":"v1.<opaque-presentation>.<signature>"}}}},"responses":{"200":{"description":"The opening, now aligned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpeningDto"},"example":{"objective":"Senior Backend Engineer","tagline":"Build reliable payments at global scale.","type":"employee","remote":true,"skills":[{"name":"Node.js","experience":"3-plus-years"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"compensation":{"min":90000,"max":120000,"currency":"USD","periodicity":"yearly"},"commitment":{"code":"full-time","hours":40},"organizationId":"org_a1B2c3D4","organizationIds":[123],"id":"8gQK2bWa","slug":"senior-backend-engineer-8gQK2bWa","status":"open","published":false,"aligned":"2026-09-14T16:00:00.000Z","url":"https://torre.ai/post/8gQK2bWa","stats":{"applicants":0},"createdAt":"2026-09-14T15:30:00.000Z","updatedAt":"2026-09-14T15:30:00.000Z"}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The opening changed after the candidate was presented.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The candidate and presentation proof do not match or the proof expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Confirm a presented alignment candidate","tags":["Openings"]}},"/v1/openings/{openingId}/stages/{stageId}":{"delete":{"description":"Deletes a stage and optionally moves its applicants to another stage.\n\n### Use cases\n\nRemove an editable custom stage that is no longer part of the hiring workflow.\n\n### State and side effects\n\nDeletes the stage according to pipeline protection rules. A successful response has no body.\n\n### Example request\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/stages/stage-shortlisted' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\nHTTP 204: no response body.\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 204 | The stage was deleted. |\n| 400 | A path or query identifier is invalid. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening or stage does not exist or cannot be accessed. |\n| 409 | The stage is protected or is the last remaining stage. |\n| 422 | The receiver stage is not valid for this deletion. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"deleteStage","parameters":[{"name":"moveApplicantsTo","required":false,"in":"query","description":"Receiver stage id for applicants currently in the deleted stage.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}},{"name":"stageId","required":true,"in":"path","description":"The stage's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}},{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"responses":{"204":{"description":"The stage was deleted."},"400":{"description":"A path or query identifier is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening or stage does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The stage is protected or is the last remaining stage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The receiver stage is not valid for this deletion.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Delete a pipeline stage","tags":["Pipeline & stages"]},"patch":{"description":"Updates any supplied name or description. Omitted fields are preserved, an empty object is a source-validated no-op, and stage order is unchanged.\n\n### Use cases\n\nRename an editable pipeline stage or change the guidance shown for that stage.\n\n### State and side effects\n\nUpdates the persisted stage but does not move its applicants or change its order.\n\n### Example request\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/stages/stage-shortlisted' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"name\":\"Technical interview\",\"description\":\"Candidates ready for technical interviews.\"}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"stage-shortlisted\",\n  \"name\": \"Technical interview\",\n  \"order\": 3,\n  \"editable\": true,\n  \"description\": \"Candidates selected for a deeper review.\",\n  \"applicantCount\": 4\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The canonical persisted stage. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 409 | The stage cannot accept the requested update. |\n| 422 | The request was well-formed but failed validation. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"updateStage","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}},{"name":"stageId","required":true,"in":"path","description":"The stage's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageUpdateInput"},"example":{"name":"Technical interview","description":"Candidates ready for technical interviews."}}}},"responses":{"200":{"description":"The canonical persisted stage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stage"},"example":{"id":"stage-shortlisted","name":"Technical interview","order":3,"editable":true,"description":"Candidates selected for a deeper review.","applicantCount":4}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The stage cannot accept the requested update.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request was well-formed but failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Update a pipeline stage","tags":["Pipeline & stages"]}},"/v1/openings/{openingId}/screening-questions":{"post":{"description":"Creates a screening question on the opening.\n\n### Use cases\n\nAdd the questions the job post form offers: open written, audio or video answers, Yes/No, multiple choice or checkboxes, with their purpose and options.\n\n### State and side effects\n\nCreates one question and returns it as saved, including the default Yes/No options. It does not review existing applicants.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/screening-questions' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"type\":\"yes-no\",\"prompt\":\"Can you work from the Bogotá office three days a week?\",\"purpose\":\"filter\"}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"question_e5F6g7H8\",\n  \"type\": \"yes-no\",\n  \"prompt\": \"Can you work from the Bogotá office three days a week?\",\n  \"purpose\": \"filter\",\n  \"options\": [\n    {\n      \"title\": \"Yes\",\n      \"purposeType\": \"qualifies\"\n    },\n    {\n      \"title\": \"No\",\n      \"purposeType\": \"disqualifies\"\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | The created screening question. |\n| 400 | The JSON body is malformed or the query is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening path identifier is invalid. |\n| 422 | The request body is not a closed screening-question input. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"addScreeningQuestion","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreeningQuestionInput"},"example":{"type":"yes-no","prompt":"Can you work from the Bogotá office three days a week?","purpose":"filter"}}}},"responses":{"201":{"description":"The created screening question.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreeningQuestion"},"example":{"id":"question_e5F6g7H8","type":"yes-no","prompt":"Can you work from the Bogotá office three days a week?","purpose":"filter","options":[{"title":"Yes","purposeType":"qualifies"},{"title":"No","purposeType":"disqualifies"}]}}}},"400":{"description":"The JSON body is malformed or the query is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening path identifier is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request body is not a closed screening-question input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Add a screening question","tags":["Publish a job"]},"get":{"description":"Returns the screening questions attached to an opening.\n\n### Use cases\n\nDisplay or synchronize the screening questions attached to an opening.\n\n### State and side effects\n\nRead-only. Returned ids are opaque and stable for later references. Questions keep their saved order and include their purpose and options.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/screening-questions' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"question_a1B2c3D4\",\n      \"type\": \"written\",\n      \"prompt\": \"Describe a payment system you operated.\",\n      \"purpose\": \"learn\",\n      \"options\": []\n    },\n    {\n      \"id\": \"question_e5F6g7H8\",\n      \"type\": \"yes-no\",\n      \"prompt\": \"Can you work from the Bogotá office three days a week?\",\n      \"purpose\": \"filter\",\n      \"options\": [\n        {\n          \"title\": \"Yes\",\n          \"purposeType\": \"qualifies\"\n        },\n        {\n          \"title\": \"No\",\n          \"purposeType\": \"disqualifies\"\n        }\n      ]\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The opening's screening questions. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listScreeningQuestions","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The opening's screening questions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScreeningQuestionList"},"example":{"data":[{"id":"question_a1B2c3D4","type":"written","prompt":"Describe a payment system you operated.","purpose":"learn","options":[]},{"id":"question_e5F6g7H8","type":"yes-no","prompt":"Can you work from the Bogotá office three days a week?","purpose":"filter","options":[{"title":"Yes","purposeType":"qualifies"},{"title":"No","purposeType":"disqualifies"}]}]}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List screening questions","tags":["Publish a job"]}},"/v1/openings/{openingId}/stages/reorder":{"post":{"description":"Sets the pipeline order. Supply every active stage ID exactly once. Fixed stages must remain in their current positions. Applicants remain in their stages.\n\n### Use cases\n\nArrange your hiring stages in the order your team uses.\n\n### State and side effects\n\nReorders the supplied stages while protected stages keep their allowed positions. Applicants remain in their stages.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/stages/reorder' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"stageIds\":[\"stage-screening\",\"stage-shortlisted\",\"stage-interview\"]}'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"stage-shortlisted\",\n      \"name\": \"Shortlisted\",\n      \"order\": 2,\n      \"editable\": true,\n      \"description\": \"Candidates selected for a deeper review.\",\n      \"applicantCount\": 4\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The updated stage order. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | The stage order is not a valid source permutation. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"reorderStages","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReorderStagesRequest"},"example":{"stageIds":["stage-screening","stage-shortlisted","stage-interview"]}}}},"responses":{"200":{"description":"The updated stage order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageList"},"example":{"data":[{"id":"stage-shortlisted","name":"Shortlisted","order":2,"editable":true,"description":"Candidates selected for a deeper review.","applicantCount":4}]}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The stage order is not a valid source permutation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Reorder pipeline stages","tags":["Pipeline & stages"]}},"/v1/openings/{openingId}/stages":{"post":{"description":"Creates an editable stage immediately before the rightmost Hired stage, or after the current stages when no Hired stage is present. The new stage starts with no applicants.\n\n### Use cases\n\nAdd a custom hiring column to an opening pipeline.\n\n### State and side effects\n\nCreates one editable stage immediately before the rightmost Hired stage, or after the current stages when no Hired stage exists. It starts with no applicants.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/stages' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"name\":\"Technical interview\",\"description\":\"Candidates ready for technical interviews.\"}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"stage-technical-interview\",\n  \"name\": \"Technical interview\",\n  \"order\": 3,\n  \"editable\": true,\n  \"description\": \"Candidates selected for a deeper review.\",\n  \"applicantCount\": 0\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | The created stage. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 422 | The request was well-formed but failed validation. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"createStage","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageInput"},"example":{"name":"Technical interview","description":"Candidates ready for technical interviews."}}}},"responses":{"201":{"description":"The created stage.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Stage"},"example":{"id":"stage-technical-interview","name":"Technical interview","order":3,"editable":true,"description":"Candidates selected for a deeper review.","applicantCount":0}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request was well-formed but failed validation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a pipeline stage","tags":["Pipeline & stages"]},"get":{"description":"Returns an opening's hiring-pipeline stages in source order.\n\n### Use cases\n\nGet your hiring stages and their IDs before moving an applicant.\n\n### State and side effects\n\nRead-only. Use the returned IDs, not stage names, for moves. The default Applicants column uses the special value applicants.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/stages' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"stage-shortlisted\",\n      \"name\": \"Shortlisted\",\n      \"order\": 3,\n      \"editable\": true,\n      \"description\": \"Candidates selected for a deeper review.\",\n      \"applicantCount\": 4\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The opening's ordered pipeline stages. |\n| 401 | Missing or invalid credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The resource does not exist or you cannot access it. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listStages","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string"}}],"responses":{"200":{"description":"The opening's ordered pipeline stages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageList"},"example":{"data":[{"id":"stage-shortlisted","name":"Shortlisted","order":3,"editable":true,"description":"Candidates selected for a deeper review.","applicantCount":4}]}}}},"401":{"description":"Missing or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The resource does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List pipeline stages","tags":["Pipeline & stages"]}},"/v1/organizations/search":{"get":{"description":"Find existing companies by name. Use a returned id as organization_id when creating an opening. This read does not create or claim companies.\n\n### Use cases\n\nFind a company before creating an opening.\n\n### State and side effects\n\nRead-only and free. A nonblank q is required. The limit defaults to 10 and accepts 1 to 30. No matches returns an empty array. Use the returned numeric id as organization_id.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/organizations/search?q=Acme&limit=10' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n[\n  {\n    \"id\": 123,\n    \"name\": \"Acme\"\n  }\n]\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Matching companies, or an empty array when none match. |\n| 401 | Missing or invalid API credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | Invalid organization query or input. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"searchOrganizations","parameters":[{"name":"q","required":true,"in":"query","description":"The company name to search for. Use a nonblank query.","schema":{"maxLength":100,"pattern":"\\S","example":"Acme","type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum number of organizations to return.","schema":{"minimum":1,"maximum":30,"default":10,"type":"integer"}}],"responses":{"200":{"description":"Matching companies, or an empty array when none match.","content":{"application/json":{"schema":{"type":"array","maxItems":30,"items":{"$ref":"#/components/schemas/Organization"}},"example":[{"id":123,"name":"Acme"}]}}},"401":{"description":"Missing or invalid API credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid organization query or input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Search organizations","tags":["Organizations"]}},"/v1/organizations/{organizationId}":{"get":{"description":"Get a company by its numeric id from organization search, creation or matching, or an opening's organizationIds. Returns its id and displayed name. You do not need to be a company member. This read does not create or claim a company, change an opening or spend credits.\n\n### Use cases\n\nRead a company you already know by ID, including each company listed in an opening's organizationIds.\n\n### State and side effects\n\nRead-only and free. Returns the company's numeric id and displayed name. No company membership is required. Use a positive numeric ID from searchOrganizations, createOrganization, matchOrganization or organizationIds. The legacy singular organizationId on an opening is a slug, not this numeric ID. A missing company returns 404. Invalid IDs return 422. Does not create or claim companies, change openings or spend credits.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/organizations/123' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"id\": 123,\n  \"name\": \"Acme\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The company ID and displayed name. |\n| 401 | Missing or invalid API credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | No company exists with this ID. |\n| 422 | Invalid organization query or input. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getOrganization","parameters":[{"name":"organizationId","required":true,"in":"path","description":"The positive numeric company ID, not the legacy organizationId slug on an opening.","schema":{"type":"integer","minimum":1,"maximum":2147483647}}],"responses":{"200":{"description":"The company ID and displayed name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"},"example":{"id":123,"name":"Acme"}}}},"401":{"description":"Missing or invalid API credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"No company exists with this ID.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid organization query or input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an organization","tags":["Organizations"]}},"/v1/organizations":{"post":{"description":"Create a company using its name and optional website, links and logo. When Torre already has the company it is returned with 200 instead of creating a duplicate. Use the returned id as organization_id when creating an opening. This does not create or publish an opening.\n\n### Use cases\n\nCreate a company when the organization search does not return the one you need.\n\n### State and side effects\n\nFinds the company Torre already has by its name, website or links, such as its LinkedIn page, instead of creating a duplicate. The optional context describes the job you are hiring for and helps tell apart companies with similar names. 200 means Torre already had the company. Does not create or publish an opening. Use the returned numeric id as organization_id. Writes are not retried automatically. Search before retrying an uncertain result.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/organizations' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"name\":\"Acme\",\"website\":\"https://acme.com\",\"links\":[\"https://www.linkedin.com/company/acme\"]}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": 123,\n  \"name\": \"Acme\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Torre already has this company. Nothing was created. |\n| 201 | The created company, or an existing one found by its name. |\n| 401 | Missing or invalid API credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | Invalid organization query or input. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"createOrganization","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrganizationInput"},"example":{"name":"Acme","website":"https://acme.com","links":["https://www.linkedin.com/company/acme"]}}}},"responses":{"200":{"description":"Torre already has this company. Nothing was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"201":{"description":"The created company, or an existing one found by its name.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"},"example":{"id":123,"name":"Acme"}}}},"401":{"description":"Missing or invalid API credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid organization query or input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create an organization","tags":["Organizations"]}},"/v1/organizations/match":{"post":{"description":"Check whether Torre already has a company, using its name and optional website, links and the job you are hiring for. This never creates or changes a company. Returns the company Torre has, or null when it has none. Use createOrganization to add a missing company.\n\n### Use cases\n\nCheck whether Torre already has a company before creating it, without creating anything.\n\n### State and side effects\n\nRead-only and free. Never creates or changes a company. Matches by name, website and links, such as its LinkedIn page, the same way createOrganization does. The optional context describes the job you are hiring for and helps tell apart companies with similar names. Returns organization: null when Torre does not have the company. 503 means matching is temporarily unavailable. Retry later.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/organizations/match' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"name\":\"Acme\",\"website\":\"https://acme.com\",\"context\":{\"title\":\"Backend Engineer\",\"locations\":[\"Bogotá, Colombia\"]}}'\n```\n\n### Example response\n\n```json\n{\n  \"organization\": {\n    \"id\": 123,\n    \"name\": \"Acme\"\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The company Torre already has, or null. Nothing was created. |\n| 401 | Missing or invalid API credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | Invalid organization query or input. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"matchOrganization","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchOrganizationInput"},"example":{"name":"Acme","website":"https://acme.com","context":{"title":"Backend Engineer","locations":["Bogotá, Colombia"]}}}}},"responses":{"200":{"description":"The company Torre already has, or null. Nothing was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMatch"},"example":{"organization":{"id":123,"name":"Acme"}}}}},"401":{"description":"Missing or invalid API credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid organization query or input.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Match an organization","tags":["Organizations"],"x-read-only":true}},"/v1/candidate-searches":{"post":{"description":"Starts a candidate search for an aligned opening. The first search after each alignment includes external sources. Later searches use Torre candidates.\n\n### Use cases\n\nFind people who match an aligned opening’s requirements.\n\n### State and side effects\n\nCreates a search resource but does not contact, invite, or charge for a candidate. The first search after alignment starts external sourcing automatically.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/candidate-searches' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"openingId\":\"8gQK2bWa\",\"size\":20}'\n```\n\n### Example response\n\n```json\n{\n  \"searchId\": \"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9\",\n  \"data\": [],\n  \"total\": 0,\n  \"external\": {\n    \"included\": true,\n    \"status\": \"pending\"\n  },\n  \"page\": 1,\n  \"pageSize\": 20,\n  \"hasMore\": true\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | A source-backed first page of candidate results. |\n| 400 | Malformed request. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening does not exist or cannot be accessed. |\n| 409 | The opening is not aligned. |\n| 422 | The request contains invalid fields. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"createCandidateSearch","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateSearchInput"},"examples":{"byOpening":{"summary":"Search Torre candidates for an opening","value":{"openingId":"8gQK2bWa","size":25}}}}}},"responses":{"201":{"description":"A source-backed first page of candidate results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateSearch"},"example":{"searchId":"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9","data":[],"total":0,"external":{"included":true,"status":"pending"},"page":1,"pageSize":20,"hasMore":true}}}},"400":{"description":"Malformed request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The opening is not aligned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request contains invalid fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Start a candidate search","tags":["Search candidates"]}},"/v1/candidate-searches/{searchId}":{"get":{"description":"Returns candidate search results. Use cursor for Torre candidate results, or page and pageSize for external search results. Pages reflect the current index and candidate exclusions.\n\n### Use cases\n\nCheck a search’s progress or load its next page of candidates.\n\n### State and side effects\n\nRead-only. It does not restart the search or change the opening.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/candidate-searches/cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9?page=1&pageSize=20' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"searchId\": \"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9\",\n  \"data\": [\n    {\n      \"candidateId\": \"c_a1B2c3D4\",\n      \"torrePro\": false,\n      \"name\": \"Alex M.\",\n      \"pictureThumbnail\": \"https://res.cloudinary.com/torre/image/upload/example.jpg\",\n      \"professionalHeadline\": \"Backend engineer\",\n      \"skills\": [\n        {\n          \"name\": \"Node.js\",\n          \"weight\": 91\n        }\n      ],\n      \"openTo\": [\n        \"full-time-employment\"\n      ],\n      \"location\": {\n        \"name\": \"Bogota\",\n        \"country\": \"Colombia\"\n      },\n      \"compensationBand\": \"USD 90,000–120,000/year\",\n      \"matchScore\": 92,\n      \"inYourDb\": false\n    }\n  ],\n  \"total\": 1,\n  \"external\": {\n    \"included\": true,\n    \"status\": \"complete\"\n  },\n  \"page\": 1,\n  \"pageSize\": 20,\n  \"hasMore\": false\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A source-backed page of candidate results. |\n| 400 | The cursor is malformed or does not match this search. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The search does not exist or cannot be accessed. |\n| 409 | The opening is not aligned or its alignment changed after this search started. |\n| 422 | Invalid or mixed pagination parameters. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getCandidateSearch","parameters":[{"name":"searchId","required":true,"in":"path","description":"Opaque candidate search identifier returned when the search starts.","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"Cursor returned in nextCursor. Use only for Torre candidate searches.","schema":{"maxLength":16384,"type":"string"}},{"name":"page","required":false,"in":"query","description":"1-based page number for external search results only.","schema":{"minimum":1,"maximum":21474836,"type":"integer"}},{"name":"pageSize","required":false,"in":"query","description":"Results per page for external search results only.","schema":{"minimum":1,"maximum":100,"type":"integer"}}],"responses":{"200":{"description":"A source-backed page of candidate results.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CandidateSearch"},"example":{"searchId":"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9","data":[{"candidateId":"c_a1B2c3D4","torrePro":false,"name":"Alex M.","pictureThumbnail":"https://res.cloudinary.com/torre/image/upload/example.jpg","professionalHeadline":"Backend engineer","skills":[{"name":"Node.js","weight":91}],"openTo":["full-time-employment"],"location":{"name":"Bogota","country":"Colombia"},"compensationBand":"USD 90,000–120,000/year","matchScore":92,"inYourDb":false}],"total":1,"external":{"included":true,"status":"complete"},"page":1,"pageSize":20,"hasMore":false}}}},"400":{"description":"The cursor is malformed or does not match this search.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The search does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The opening is not aligned or its alignment changed after this search started.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid or mixed pagination parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get candidate search results","tags":["Search candidates"]}},"/v1/people/community-created":{"post":{"description":"Creates an unclaimed profile linked to the account that owns the API key. Provide a name and at least one of email or phone. It does not create a Torre account, add an applicant, send an invitation, or charge credits. Existing contact details return 409 without revealing the existing profile. After a timeout or connection failure, reconcile the result before retrying.\n\n### Use cases\n\nCreate a profile for a person who has not claimed a Torre genome.\n\n### State and side effects\n\nCreates a private community-created genome linked to your account. It does not create an application, send an invitation, or spend credits. A duplicate returns 409 without changing the existing profile.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/people/community-created' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"name\":\"Alex Morgan\",\"email\":\"alex@example.com\",\"phone\":\"+573001234567\"}'\n```\n\n### Example response\n\n```json\n{\n  \"candidateId\": \"candidate_alex\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | The profile was created. |\n| 400 | The request body or query structure is invalid. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 409 | A profile already uses the supplied contact details. |\n| 422 | The request contains invalid field values. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"createCommunityGenome","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCommunityGenomeRequestDto"},"example":{"name":"Alex Morgan","email":"alex@example.com","phone":"+573001234567"}}}},"responses":{"201":{"description":"The profile was created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommunityGenomeCreatedDto"},"example":{"candidateId":"candidate_alex"}}}},"400":{"description":"The request body or query structure is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"A profile already uses the supplied contact details.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request contains invalid field values.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a community-created genome","tags":["Search candidates"]}},"/v1/people/{candidateId}":{"get":{"description":"Returns a public person profile without private contact information.\n\n### Use cases\n\nRead a person’s accessible public profile using their canonical ggId. You can use an ID returned by resume import, candidate search or applicant operations.\n\n### State and side effects\n\nUse your own API key. You do not need the person’s key. This free read returns professional information, not private contacts. It does not authorize acting as that person or retrieving their personalized job matches.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/people/c_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"name\": \"Alex Morgan\",\n  \"pictureThumbnail\": \"https://res.cloudinary.com/torre/image/upload/example.jpg\",\n  \"professionalHeadline\": \"Backend engineer\",\n  \"verified\": true,\n  \"torrePro\": false,\n  \"summary\": \"Backend engineer focused on reliable distributed systems.\",\n  \"location\": {\n    \"name\": \"Bogota\",\n    \"country\": \"Colombia\"\n  },\n  \"skills\": [\n    {\n      \"name\": \"Node.js\",\n      \"weight\": 91,\n      \"proficiency\": \"expert\"\n    }\n  ],\n  \"experiences\": [\n    {\n      \"category\": \"jobs\",\n      \"name\": \"Backend Engineer\",\n      \"organizationName\": \"Acme\",\n      \"fromYear\": \"2022\",\n      \"toYear\": \"2026\"\n    }\n  ],\n  \"languages\": [\n    {\n      \"code\": \"en\",\n      \"fluency\": \"fully-fluent\"\n    }\n  ],\n  \"openTo\": [\n    \"full-time-employment\"\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A source-backed public person profile. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The person does not exist or cannot be accessed. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getPerson","parameters":[{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string"}}],"responses":{"200":{"description":"A source-backed public person profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Person"},"example":{"candidateId":"c_a1B2c3D4","name":"Alex Morgan","pictureThumbnail":"https://res.cloudinary.com/torre/image/upload/example.jpg","professionalHeadline":"Backend engineer","verified":true,"torrePro":false,"summary":"Backend engineer focused on reliable distributed systems.","location":{"name":"Bogota","country":"Colombia"},"skills":[{"name":"Node.js","weight":91,"proficiency":"expert"}],"experiences":[{"category":"jobs","name":"Backend Engineer","organizationName":"Acme","fromYear":"2022","toYear":"2026"}],"languages":[{"code":"en","fluency":"fully-fluent"}],"openTo":["full-time-employment"]}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The person does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get a person profile","tags":["Search candidates"]}},"/v1/candidates/{candidateId}/outreach":{"post":{"description":"Requests one paid pitch for an existing Torre profile and an opening you manage. The candidate does not need an application or prior search. Uses the same draft, quote, and send flow as Torre. An uncertain result requires status retrieval by outreach ID before another request. The outreach sometimes starts before an error response.\n\n### Use cases\n\nAsk Torre Headhunt to send a pitch about your opening to an existing professional. This product is currently disabled. The contract does not guarantee availability.\n\n### State and side effects\n\nCan charge the prepaid balance and start asynchronous delivery. Store the returned outreach ID and poll it for delivery, charge, and refund status. An uncertain result requires a status read before another request. The outreach sometimes starts before an error response.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/candidates/c_a1B2c3D4/outreach' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"openingId\":\"8gQK2bWa\",\"instructions\":\"Mention the remote-first team and payments mission.\",\"outcome\":\"introduce\",\"maxPrice\":2}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"outreach_a1B2c3D4\",\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"contacted\",\n  \"charged\": 2,\n  \"refunded\": false,\n  \"balance\": 48\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The outreach reached a terminal or replayed state. |\n| 202 | The outreach is processing. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 402 | The prepaid balance cannot cover the action. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The candidate or opening does not exist or cannot be accessed. |\n| 409 | The outreach price or lifecycle state conflicts. |\n| 422 | The opening is incomplete or the request fields are invalid. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | Outreach is not available for this account or a source is unavailable. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"requestOutreach","parameters":[{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestOutreach"},"example":{"openingId":"8gQK2bWa","instructions":"Mention the remote-first team and payments mission.","outcome":"introduce","maxPrice":2}}}},"responses":{"200":{"description":"The outreach reached a terminal or replayed state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"},"example":{"id":"outreach_a1B2c3D4","candidateId":"c_a1B2c3D4","openingId":"8gQK2bWa","status":"contacted","charged":2,"refunded":false,"balance":48}}}},"202":{"description":"The outreach is processing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"402":{"description":"The prepaid balance cannot cover the action.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The candidate or opening does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The outreach price or lifecycle state conflicts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The opening is incomplete or the request fields are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"Outreach is not available for this account or a source is unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Request a Torre Headhunt pitch","tags":["Search candidates"]}},"/v1/openings/{openingId}/outreach/{outreachId}":{"get":{"description":"Safely polls one actor-owned outreach request and the current prepaid balance.\n\n### Use cases\n\nCheck whether a pitch was delivered and read its charge or refund status.\n\n### State and side effects\n\nRead-only. Polling never resends a pitch or creates an additional charge.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/outreach/outreach_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"outreach_a1B2c3D4\",\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"contacted\",\n  \"charged\": 2,\n  \"refunded\": false,\n  \"balance\": 48\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Current outreach status. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening or outreach does not exist or cannot be accessed. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getOutreach","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}},{"name":"outreachId","required":true,"in":"path","description":"The outreach's opaque id.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"responses":{"200":{"description":"Current outreach status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"},"example":{"id":"outreach_a1B2c3D4","candidateId":"c_a1B2c3D4","openingId":"8gQK2bWa","status":"contacted","charged":2,"refunded":false,"balance":48}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening or outreach does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an outreach request","tags":["Search candidates"]}},"/v1/candidates/{candidateId}/messages":{"post":{"description":"Send one free message to an applicant. Provide exactly one of `openingId` or `conversationId`. Use the conversationId from a reply webhook or message history to reply in that exact thread. An openingId places the message in that job conversation. Torre never guesses the destination. An uncertain response can mean the message was sent. The optional `Idempotency-Key` does not guarantee duplicate suppression.\n\n### Use cases\n\nMessage an applicant about a specific job, or reply in the exact conversation identified by a webhook or message history.\n\n### State and side effects\n\nSend exactly one of openingId or conversationId. Missing or conflicting selectors return 422 before sending. An openingId saves the message in that job conversation. A conversationId reuses the complete thread identity, including its job context when present. Torre never guesses a job. Applicant permissions still apply. An uncertain result can mean the message was sent, so do not retry automatically.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/candidates/c_a1B2c3D4/messages' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"body\":\"Hi Alex, are you available for a technical interview next week?\",\"openingId\":\"8gQK2bWa\"}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"message_a1B2c3D4\",\n  \"conversationId\": \"conversation_a1B2c3D4;opportunities=8gQK2bWa\",\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"sent\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | Message sent. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The candidate or contextual opening does not exist or cannot be accessed. |\n| 422 | The request is invalid or the candidate is not an applicant. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"messageCandidate","parameters":[{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key used to identify this logical request. Unless the operation explicitly states otherwise, this header does not guarantee duplicate suppression or replay the original result.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageInput"},"example":{"body":"Hi Alex, are you available for a technical interview next week?","openingId":"8gQK2bWa"}}}},"responses":{"201":{"description":"Message sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"},"example":{"id":"message_a1B2c3D4","conversationId":"conversation_a1B2c3D4;opportunities=8gQK2bWa","candidateId":"c_a1B2c3D4","openingId":"8gQK2bWa","status":"sent"}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The candidate or contextual opening does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request is invalid or the candidate is not an applicant.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Message an applicant","tags":["Review applicants"]},"get":{"description":"Read your sent and received messages with the candidateId from a message.replied webhook. Use its conversationId to select the exact thread, or openingId for that job. Do not combine them. Omit both selectors to include all accessible topics. Continue with pagination.next_cursor until it is null to retrieve the complete accessible history. Only conversations and messages accessible to the authenticated account are returned. Internal notes are excluded. Reading does not send messages, mark messages as seen, or spend credits.\n\n### Use cases\n\nAfter a message.replied webhook, read the full conversation using data.candidateId and its complete data.conversationId. Alternatively select the job with data.openingId, never both selectors.\n\n### State and side effects\n\nRead-only and free. Select the exact thread with conversationId from the webhook/history, or use openingId for a job. Never send both. Omit both to read all accessible topics. Includes sent and received messages, not internal notes. Reading does not mark messages as seen. Follow pagination.next_cursor until null, keeping candidate and selector unchanged. A timestamp group can exceed the target limit. An exceptionally dense page fails rather than silently skipping messages.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/candidates/c_a1B2c3D4/messages' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"message_a1B2c3D4\",\n      \"type\": \"message\",\n      \"conversationId\": \"conversation_a1B2c3D4\",\n      \"senderId\": \"c_a1B2c3D4\",\n      \"recipientIds\": [\n        \"gg_owner\"\n      ],\n      \"body\": \"Available next week.\",\n      \"createdAt\": \"2026-11-12T12:00:00Z\",\n      \"deletedAt\": null\n    }\n  ],\n  \"pagination\": {\n    \"next_cursor\": null,\n    \"has_more\": false\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A page of sent and received messages, newest first. An absent conversation returns an empty page. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The conversation is unavailable to this account. |\n| 422 | The candidate identifier, opening filter, limit, or cursor is invalid. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listConversationMessages","parameters":[{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}},{"name":"openingId","required":false,"in":"query","description":"Select the job conversation by opening ID. Do not combine with conversationId.","schema":{"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$(?![\\s\\S])","type":"string"}},{"name":"conversationId","required":false,"in":"query","description":"Copy conversationId from a reply webhook or message history to select that exact thread. Do not combine with openingId.","schema":{"maxLength":115,"pattern":"^(?!\\.{1,2}(?:;|$))[A-Za-z0-9._~-]{1,50}(?:;opportunities=(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50})?(?![\\s\\S])","type":"string"}},{"name":"cursor","required":false,"in":"query","description":"Opaque next_cursor from the previous page. Keep the same candidate and opening filter.","schema":{"maxLength":1024,"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Target number of messages. A complete timestamp group can make a page slightly larger, up to 99 messages.","schema":{"minimum":1,"maximum":50,"default":25,"type":"integer"}}],"responses":{"200":{"description":"A page of sent and received messages, newest first. An absent conversation returns an empty page.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationMessagesDto"},"example":{"data":[{"id":"message_a1B2c3D4","type":"message","conversationId":"conversation_a1B2c3D4","senderId":"c_a1B2c3D4","recipientIds":["gg_owner"],"body":"Available next week.","createdAt":"2026-11-12T12:00:00Z","deletedAt":null}],"pagination":{"next_cursor":null,"has_more":false}}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The conversation is unavailable to this account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The candidate identifier, opening filter, limit, or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Read a conversation","tags":["Review applicants"]}},"/v1/candidates/{candidateId}/messages/read-status":{"patch":{"description":"Change only your own read status for an existing conversation. Send read=true after reviewing it, or read=false to leave it unread for later. Use conversationId from the reply webhook or history for that exact thread, or openingId for a job conversation. Never send both. Without either selector, only the direct conversation without a job topic is affected. Marking unread follows the web behavior and needs a received message. This does not send messages or spend credits. Conversation-history reads never change read status.\n\n### Use cases\n\nAfter reviewing a reply, mark that conversation as read. Mark it unread when you want to return to it later.\n\n### State and side effects\n\nFree. Changes only your own read status, using the same behavior as the web. Select conversationId from the webhook/history, or openingId for that job. Never send both. Without either, only the direct conversation without a job is changed. Unread needs an incoming message. History reads do not change the status. No message is sent. An uncertain write is not retried automatically.\n\n### Example request\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.torre.ai/v1/candidates/gg_candidate/messages/read-status' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"read\":true,\"openingId\":\"8gQK2bWa\"}'\n```\n\n### Example response\n\nHTTP 204: no response body.\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 204 | The read-status command completed. Later messages or user activity can change the status again. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | No accessible conversation found. |\n| 422 | The candidate, read flag or opening is invalid. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"updateConversationReadStatus","parameters":[{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationReadStatusInput"},"example":{"read":true,"openingId":"8gQK2bWa"}}}},"responses":{"204":{"description":"The read-status command completed. Later messages or user activity can change the status again."},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"No accessible conversation found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The candidate, read flag or opening is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Mark a conversation as read or unread","tags":["Review applicants"]}},"/v1/candidates/{candidateId}/outreach/prepare":{"post":{"description":"Saves a candidate-specific draft for review and returns its current quote. Does not send, publish, charge, or reserve free allowance.\n\n### Use cases\n\nReview the saved Headhunt message and candidate-specific price before authorizing delivery, as in the Torre UI.\n\n### State and side effects\n\nCreates or reuses a draft. Does not publish the opening, send messages, charge, or reserve allowance. An already accepted outreach returns its current status instead of creating another send.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/candidates/c_a1B2c3D4/outreach/prepare' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"openingId\":\"8gQK2bWa\",\"outcome\":\"invite_to_apply\",\"instructions\":\"Mention the remote-first team.\"}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"321\",\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"openingId\": \"8gQK2bWa\",\n  \"message\": \"Hi Alex, the remote-first team is hiring a backend engineer. Are you interested in applying?\",\n  \"outcome\": \"invite_to_apply\",\n  \"status\": \"draft\",\n  \"quote\": {\n    \"costState\": \"free\",\n    \"price\": 0,\n    \"unitPrice\": 0.4,\n    \"balance\": 2,\n    \"freeAllowance\": 3,\n    \"freeRemaining\": 1\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Saved message and current quote. |\n| 400 | Malformed JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening, candidate, or outreach does not exist or cannot be accessed. |\n| 409 | The price or saved outreach state changed. Review the quote before confirming again. |\n| 422 | Invalid input or incomplete opening. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"prepareOutreach","parameters":[{"name":"candidateId","required":true,"in":"path","description":"The candidate's canonical Torre `ggId`.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrepareOutreach"},"example":{"openingId":"8gQK2bWa","outcome":"invite_to_apply","instructions":"Mention the remote-first team."}}}},"responses":{"200":{"description":"Saved message and current quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparedOutreach"},"example":{"id":"321","candidateId":"c_a1B2c3D4","openingId":"8gQK2bWa","message":"Hi Alex, the remote-first team is hiring a backend engineer. Are you interested in applying?","outcome":"invite_to_apply","status":"draft","quote":{"costState":"free","price":0,"unitPrice":0.4,"balance":2,"freeAllowance":3,"freeRemaining":1}}}}},"400":{"description":"Malformed JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening, candidate, or outreach does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The price or saved outreach state changed. Review the quote before confirming again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid input or incomplete opening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Prepare a Torre Headhunt message and quote","tags":["Search candidates"]}},"/v1/openings/{openingId}/outreach/allowance":{"get":{"description":"Reads the current free outreach allowance, unit price, and prepaid balance for an owned opening before a message is prepared. Does not create a draft, charge, or reserve allowance.\n\n### Use cases\n\nShow the current free Headhunt allowance, unit price, and prepaid balance before preparing a candidate message.\n\n### State and side effects\n\nRead-only. The result is a live account snapshot: it does not create a draft, reserve allowance, or charge funds. Refresh the candidate-specific quote after preparing a message and before confirmation.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/outreach/allowance' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"costState\": \"free\",\n  \"price\": 0,\n  \"unitPrice\": 0.4,\n  \"balance\": 2,\n  \"freeAllowance\": 3,\n  \"freeRemaining\": 1\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Current price, balance, and free allowance. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening, candidate, or outreach does not exist or cannot be accessed. |\n| 409 | The price or saved outreach state changed. Review the quote before confirming again. |\n| 422 | Invalid input or incomplete opening. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getOutreachAllowance","parameters":[{"name":"openingId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Current price, balance, and free allowance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachQuote"},"example":{"costState":"free","price":0,"unitPrice":0.4,"balance":2,"freeAllowance":3,"freeRemaining":1}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening, candidate, or outreach does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The price or saved outreach state changed. Review the quote before confirming again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid input or incomplete opening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get the current Headhunt allowance","tags":["Search candidates"]}},"/v1/openings/{openingId}/outreach/{outreachId}/quote":{"get":{"description":"Reads the candidate-specific quote for an owned saved message. Does not charge or reserve allowance.\n\n### Use cases\n\nRefresh the price and free allowance of the saved message before confirmation.\n\n### State and side effects\n\nRead-only. Quotes do not reserve allowance or funds and can change before confirmation. Use maxPrice when confirming. Use 0 to accept only free delivery.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/outreach/321/quote' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"costState\": \"charged\",\n  \"price\": 0.4,\n  \"unitPrice\": 0.4,\n  \"balance\": 2,\n  \"freeAllowance\": 3,\n  \"freeRemaining\": 0\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Current price, balance, and free allowance. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening, candidate, or outreach does not exist or cannot be accessed. |\n| 409 | The price or saved outreach state changed. Review the quote before confirming again. |\n| 422 | Invalid input or incomplete opening. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getOutreachQuote","parameters":[{"name":"openingId","required":true,"in":"path","schema":{"type":"string"}},{"name":"outreachId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Current price, balance, and free allowance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachQuote"},"example":{"costState":"charged","price":0.4,"unitPrice":0.4,"balance":2,"freeAllowance":3,"freeRemaining":0}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening, candidate, or outreach does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The price or saved outreach state changed. Review the quote before confirming again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid input or incomplete opening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get the current quote for a saved outreach","tags":["Search candidates"]}},"/v1/openings/{openingId}/outreach/{outreachId}/confirm":{"post":{"description":"Confirms the saved message and outcome with an explicit maximum price. Rechecks the quote. The source validates actor, ownership, verification for publication, and billing before delivery. The operation publishes the opening when needed. Use getOutreach to poll delivery and refunds.\n\n### Use cases\n\nAuthorize delivery of the reviewed saved message. The candidate and outcome are resolved from the owned outreach, not supplied by the caller.\n\n### State and side effects\n\nThe operation publishes the opening when needed and charges prepaid credits when the quote is paid. Job poster verification remains required. A price above maxPrice returns 409. Insufficient balance returns 402. Poll getOutreach for delivery and refunds. Do not automatically retry an ambiguous write.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/outreach/321/confirm' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"maxPrice\":0.4}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"321\",\n  \"candidateId\": \"c_a1B2c3D4\",\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"requested\",\n  \"charged\": 0.4,\n  \"refunded\": false,\n  \"balance\": 1.6\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Current terminal outreach state. |\n| 202 | Delivery is processing. |\n| 400 | Malformed JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 402 | Insufficient prepaid balance. |\n| 403 | Recruiting access denied or job poster verification is required before publication. |\n| 404 | The opening, candidate, or outreach does not exist or cannot be accessed. |\n| 409 | The price or saved outreach state changed. Review the quote before confirming again. |\n| 422 | Invalid input or incomplete opening. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"confirmOutreach","parameters":[{"name":"openingId","required":true,"in":"path","schema":{"type":"string"}},{"name":"outreachId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmOutreach"},"example":{"maxPrice":0.4}}}},"responses":{"200":{"description":"Current terminal outreach state.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"}}}},"202":{"description":"Delivery is processing.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Outreach"},"example":{"id":"321","candidateId":"c_a1B2c3D4","openingId":"8gQK2bWa","status":"requested","charged":0.4,"refunded":false,"balance":1.6}}}},"400":{"description":"Malformed JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"402":{"description":"Insufficient prepaid balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"Recruiting access denied or job poster verification is required before publication.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening, candidate, or outreach does not exist or cannot be accessed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The price or saved outreach state changed. Review the quote before confirming again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"Invalid input or incomplete opening.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Confirm delivery of a saved Headhunt message","tags":["Search candidates"]}},"/v1/balance":{"get":{"description":"Returns the authenticated account balance in USD.\n\n### Use cases\n\nCheck how many prepaid US dollars are available before a paid action.\n\n### State and side effects\n\nRead-only. It does not reserve funds or trigger automatic reload.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/balance' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"balance\": 50,\n  \"currency\": \"USD\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Current balance. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The feature is disabled or temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getBalance","parameters":[],"responses":{"200":{"description":"Current balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balance"},"example":{"balance":50,"currency":"USD"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The feature is disabled or temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get your prepaid balance","tags":["Account"]}},"/v1/balance/auto-reload":{"get":{"description":"Read the authenticated account’s automatic balance reload settings. This read never starts a payment. An account without configuration returns enabled=false and omits the amounts.\n\n### Use cases\n\nDisplay whether automatic balance reload is enabled and its configured thresholds.\n\n### State and side effects\n\nRead-only. Calling this endpoint never creates a payment or changes saved-card settings.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/balance/auto-reload' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"enabled\": true,\n  \"threshold\": 10,\n  \"reloadAmount\": 50,\n  \"monthlyCap\": 200,\n  \"enableUrl\": \"https://torre.ai/developer/api-keys\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Auto-reload settings. |\n| 400 | The query or body is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getAutoReload","parameters":[],"responses":{"200":{"description":"Auto-reload settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoReload"},"example":{"enabled":true,"threshold":10,"reloadAmount":50,"monthlyCap":200,"enableUrl":"https://torre.ai/developer/api-keys"}}}},"400":{"description":"The query or body is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get auto-reload settings","tags":["Account"]}},"/v1/balance/top-up":{"post":{"description":"Creates a checkout session for the requested amount and returns its payment URL. Creating the session does not add funds to the balance. The balance is updated asynchronously after payment succeeds.\n\n### Use cases\n\nStart a Torre checkout when an account needs more prepaid balance.\n\n### State and side effects\n\nCreates a checkout session only. Balance changes after the payment provider confirms payment.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/balance/top-up' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"amountCents\":5000}'\n```\n\n### Example response\n\n```json\n{\n  \"checkoutUrl\": \"https://torre.ai/checkout/payment?session_id=cs_test_example\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | Checkout session created. |\n| 400 | The request body is not valid JSON. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | The query or body contains invalid fields. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"createTopUp","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopUpInput"},"example":{"amountCents":5000}}}},"responses":{"201":{"description":"Checkout session created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopUp"},"example":{"checkoutUrl":"https://torre.ai/checkout/payment?session_id=cs_test_example"}}}},"400":{"description":"The request body is not valid JSON.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The query or body contains invalid fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a balance top-up checkout session","tags":["Account"]}},"/v1/usage":{"get":{"description":"Returns the authenticated account’s prepaid balance movements, newest first. Results can be filtered by movement type and continued with the returned cursor.\n\n### Use cases\n\nBuild a spending report from your account’s charges, top-ups and refunds.\n\n### State and side effects\n\nRead-only. Returns filtered, cursor-paginated records without changing the balance.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/usage?limit=25' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"usage_123\",\n      \"type\": \"top_up\",\n      \"amount\": 50,\n      \"action\": \"top_up\",\n      \"candidateId\": null,\n      \"openingId\": null,\n      \"createdAt\": \"2026-09-14T15:30:00.000Z\"\n    }\n  ],\n  \"pagination\": {\n    \"has_more\": false,\n    \"next_cursor\": null\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A page of usage records. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | The query or body contains invalid fields. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listUsage","parameters":[{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.next_cursor`.","schema":{"pattern":"^[1-9]\\d{0,12}$","type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1-100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"type","required":false,"in":"query","description":"Restrict the ledger to this entry category.","schema":{"type":"string","enum":["spend","top_up","refund"]}}],"responses":{"200":{"description":"A page of usage records.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageList"},"example":{"data":[{"id":"usage_123","type":"top_up","amount":50,"action":"top_up","candidateId":null,"openingId":null,"createdAt":"2026-09-14T15:30:00.000Z"}],"pagination":{"has_more":false,"next_cursor":null}}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The query or body contains invalid fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List balance usage","tags":["Account"]}},"/v1/webhook-endpoints":{"post":{"description":"Registers an account-owned HTTPS destination. The signing secret is returned once in this response.\n\n### Use cases\n\nTell Torre where to send notifications for the events your application handles.\n\n### State and side effects\n\nCreates an endpoint and returns its signing secret once. Store the secret before discarding the response.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/webhook-endpoints' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"url\":\"https://example.com/torre-webhooks\",\"events\":[\"candidate.applied\",\"message.replied\",\"candidate.search.completed\",\"candidate.search.failed\"]}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"endpoint_a1B2c3D4\",\n  \"url\": \"https://example.com/torre-webhooks\",\n  \"events\": [\n    \"candidate.applied\",\n    \"message.replied\",\n    \"candidate.search.completed\",\n    \"candidate.search.failed\"\n  ],\n  \"secret\": \"torre_whsec_example\",\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 201 | Created. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | The endpoint or event list is invalid. |\n| 429 | Rate limit exceeded. |","operationId":"createWebhookEndpoint","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpointInput"},{"type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","description":"Public HTTPS URL that receives events."},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}}},"additionalProperties":false}]},"example":{"url":"https://example.com/torre-webhooks","events":["candidate.applied","message.replied","candidate.search.completed","candidate.search.failed"]}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":"endpoint_a1B2c3D4","url":"https://example.com/torre-webhooks","events":["candidate.applied","message.replied","candidate.search.completed","candidate.search.failed"],"secret":"torre_whsec_example","createdAt":"2026-09-14T15:30:00.000Z"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The endpoint or event list is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Create a webhook endpoint","tags":["Webhooks & events"]},"get":{"description":"Lists active webhook endpoints owned by the authenticated Torre account.\n\n### Use cases\n\nCheck your existing webhook subscriptions before adding another receiver.\n\n### State and side effects\n\nRead-only. Signing secrets are always redacted after creation.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/webhook-endpoints' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"endpoint_a1B2c3D4\",\n      \"url\": \"https://example.com/torre-webhooks\",\n      \"events\": [\n        \"candidate.applied\",\n        \"message.replied\",\n        \"candidate.search.completed\",\n        \"candidate.search.failed\"\n      ],\n      \"secret\": null,\n      \"createdAt\": \"2026-09-14T15:30:00.000Z\"\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Your webhook endpoints. Signing secrets are always redacted. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |","operationId":"listWebhookEndpoints","parameters":[],"responses":{"200":{"description":"Your webhook endpoints. Signing secrets are always redacted.","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"example":{"data":[{"id":"endpoint_a1B2c3D4","url":"https://example.com/torre-webhooks","events":["candidate.applied","message.replied","candidate.search.completed","candidate.search.failed"],"secret":null,"createdAt":"2026-09-14T15:30:00.000Z"}]}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List webhook endpoints","tags":["Webhooks & events"]}},"/v1/webhook-endpoints/{endpointId}":{"get":{"description":"Returns one endpoint owned by the authenticated Torre account. Missing and foreign ids are indistinguishable.\n\n### Use cases\n\nCheck the destination URL and event types of a webhook you own.\n\n### State and side effects\n\nRead-only. The secret is not shown again. An endpoint owned by another account returns the same 404 as a missing endpoint.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/webhook-endpoints/endpoint_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"endpoint_a1B2c3D4\",\n  \"url\": \"https://example.com/torre-webhooks\",\n  \"events\": [\n    \"candidate.applied\",\n    \"message.replied\",\n    \"candidate.search.completed\",\n    \"candidate.search.failed\"\n  ],\n  \"secret\": null,\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The endpoint. Its signing secret is redacted. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | No webhook endpoint found for that id. |\n| 429 | Rate limit exceeded. |","operationId":"getWebhookEndpoint","parameters":[{"name":"endpointId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The endpoint. Its signing secret is redacted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":"endpoint_a1B2c3D4","url":"https://example.com/torre-webhooks","events":["candidate.applied","message.replied","candidate.search.completed","candidate.search.failed"],"secret":null,"createdAt":"2026-09-14T15:30:00.000Z"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"No webhook endpoint found for that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get a webhook endpoint","tags":["Webhooks & events"]},"patch":{"description":"Replaces the destination and subscriptions without rotating or revealing its signing secret.\n\n### Use cases\n\nReplace a webhook destination or its subscribed event types.\n\n### State and side effects\n\nUpdates the destination and subscriptions without rotating or revealing the signing secret.\n\n### Example request\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.torre.ai/v1/webhook-endpoints/endpoint_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"url\":\"https://example.com/torre-events\",\"events\":[\"message.replied\"]}'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"endpoint_a1B2c3D4\",\n  \"url\": \"https://example.com/torre-events\",\n  \"events\": [\n    \"message.replied\"\n  ],\n  \"secret\": null,\n  \"createdAt\": \"2026-09-14T15:30:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Updated. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | No webhook endpoint found for that id. |\n| 422 | The endpoint or event list is invalid. |\n| 429 | Rate limit exceeded. |","operationId":"updateWebhookEndpoint","parameters":[{"name":"endpointId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpointInput"},{"type":"object","properties":{"url":{"type":"string","format":"uri","pattern":"^[Hh][Tt][Tt][Pp][Ss]://","description":"Public HTTPS URL that receives events."},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}}},"additionalProperties":false}]},"example":{"url":"https://example.com/torre-events","events":["message.replied"]}}}},"responses":{"200":{"description":"Updated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"},"example":{"id":"endpoint_a1B2c3D4","url":"https://example.com/torre-events","events":["message.replied"],"secret":null,"createdAt":"2026-09-14T15:30:00.000Z"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"No webhook endpoint found for that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The endpoint or event list is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Update a webhook endpoint","tags":["Webhooks & events"]},"delete":{"description":"Stops new deliveries to an account-owned endpoint. Missing, foreign, and already deleted ids are indistinguishable.\n\n### Use cases\n\nStop delivery to a callback that is retired or compromised.\n\n### State and side effects\n\nStops future deliveries. Missing, foreign, and already deleted endpoints are indistinguishable.\n\n### Example request\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.torre.ai/v1/webhook-endpoints/endpoint_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\nHTTP 204: no response body.\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 204 | Deleted. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | No webhook endpoint found for that id. |\n| 429 | Rate limit exceeded. |","operationId":"deleteWebhookEndpoint","parameters":[{"name":"endpointId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted."},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"No webhook endpoint found for that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Delete a webhook endpoint","tags":["Webhooks & events"]}},"/v1/openings/{openingId}/reach":{"get":{"description":"Returns the current Torre Reach and Torre ReachMax campaign status for a job. It includes the active state, combined daily budget, spend to date, and end date. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`).\n\n### Use cases\n\nCheck an opening’s Torre Reach and Torre ReachMax status, daily budget, total spend and end date.\n\n### State and side effects\n\nRead-only. It does not renew, stop, or charge the campaign. The dailyBudget field is the combined daily amount. Optional services and serviceEndDates describe individual services. Missing legacy service metadata is not proof of inactivity.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/reach' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"active\",\n  \"dailyBudget\": 10,\n  \"endsAt\": \"2026-09-30\",\n  \"spentToDate\": 20,\n  \"startedAt\": \"2026-09-12T12:00:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Current campaign status and spend. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening or its campaign state does not exist, or you cannot access it. |\n| 409 | Torre Reach is already active through another billing flow. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getReach","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"responses":{"200":{"description":"Current campaign status and spend.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reach"},"example":{"openingId":"8gQK2bWa","status":"active","dailyBudget":10,"endsAt":"2026-09-30","spentToDate":20,"startedAt":"2026-09-12T12:00:00.000Z"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening or its campaign state does not exist, or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"Torre Reach is already active through another billing flow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an opening's Torre Reach and Torre ReachMax status","tags":["Sponsor a job"]},"delete":{"description":"Stops future charges for all active Torre Reach and Torre ReachMax services on the opening. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`). An already-paid external service can remain active through its current period end. Stopping prevents future renewal cycles and does not refund already delivered spend.\n\n### Use cases\n\nPrevent future Torre Reach and Torre ReachMax renewals and daily charges for an opening.\n\n### State and side effects\n\nStops future cycles without refunding delivered spend. An already paid period can remain active until its end.\n\n### Example request\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/reach' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"stopped\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | Future campaign charges were stopped. |\n| 400 | The query or body is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening does not exist or you cannot access it. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"stopReach","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"responses":{"200":{"description":"Future campaign charges were stopped.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopReachResponse"},"example":{"openingId":"8gQK2bWa","status":"stopped"}}}},"400":{"description":"The query or body is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Stop Torre Reach and Torre ReachMax","tags":["Sponsor a job"]},"post":{"description":"Creates or updates actor-owned Torre Reach or Torre ReachMax using the unified prepaid balance only. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`). Omitted services preserve external-only Torre ReachMax behavior. Request `dailyBudget` is the Torre ReachMax distribution budget. Selection alone does not activate a service. The first activation can publish the opening and charge the first daily budget immediately. An active public campaign update applies its new budget and end date on the next daily cycle without an immediate charge. A future cycle with insufficient balance stops the campaign. A campaign active through another billing flow returns a conflict. The optional `Idempotency-Key` does not guarantee duplicate suppression or replay the original result. If the result is uncertain, call `getReach` before sending another write.\n\n### Use cases\n\nStart Torre Reach or Torre ReachMax for an opening or update the budget and end date of an active public campaign.\n\n### State and side effects\n\nQuote explicit services before approval. Request dailyBudget is the Torre ReachMax distribution budget. Billing adds fixed internal Torre Reach sponsorship. Legacy budget-only requests remain external-only Torre ReachMax requests. The first activation can publish the opening and charge the first daily budget. An associated company is required before activation except for flexible-job (freelance). A legacy opening without one returns 409 opening_organization_required without a charge. Later daily cycles can stop when balance is insufficient.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/reach' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"dailyBudget\":10,\"endsAt\":\"2026-09-30\"}'\n```\n\n### Example response\n\n```json\n{\n  \"openingId\": \"8gQK2bWa\",\n  \"status\": \"active\",\n  \"dailyBudget\": 10,\n  \"endsAt\": \"2026-09-30\",\n  \"spentToDate\": 20,\n  \"startedAt\": \"2026-09-12T12:00:00.000Z\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The selected campaign services were activated or updated. |\n| 400 | The JSON body is malformed or the query is not empty. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 402 | The prepaid balance cannot cover the first daily budget. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening does not exist or you cannot access it. |\n| 409 | The opening needs a company, or the campaign is active through another billing flow. |\n| 422 | The request is invalid or the opening cannot be activated. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"activateReach","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}},{"name":"Idempotency-Key","in":"header","description":"A client-generated key used to identify this logical request. Unless the operation explicitly states otherwise, this header does not guarantee duplicate suppression or replay the original result.","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ReachInput"},{"$ref":"#/components/schemas/ReachSelectionInput"}]},"examples":{"activate":{"value":{"dailyBudget":10,"endsAt":"2099-09-30"}}}}}},"responses":{"200":{"description":"The selected campaign services were activated or updated.","headers":{"X-Balance-Remaining":{"description":"Prepaid balance remaining after this request, in US dollars.","schema":{"type":"number","minimum":0}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reach"},"example":{"openingId":"8gQK2bWa","status":"active","dailyBudget":10,"endsAt":"2026-09-30","spentToDate":20,"startedAt":"2026-09-12T12:00:00.000Z"}}}},"400":{"description":"The JSON body is malformed or the query is not empty.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"402":{"description":"The prepaid balance cannot cover the first daily budget.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening does not exist or you cannot access it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The opening needs a company, or the campaign is active through another billing flow.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The request is invalid or the opening cannot be activated.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Activate or update Torre Reach or Torre ReachMax","tags":["Sponsor a job"]}},"/v1/openings/{openingId}/reach/quote":{"post":{"description":"Read-only quote for the supplied opening and selected services. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`). Does not publish, reserve funds or activate a campaign. Quotes can change before activation.\n\n### Use cases\n\nRead the cost of the explicit services before approving activation.\n\n### State and side effects\n\nRead-only. No publication, fund reservation or activation. Requote if the selection changes.\n\n### Example request\n\n```bash\ncurl --request POST \\\n  --url 'https://api.torre.ai/v1/openings/8gQK2bWa/reach/quote' \\\n  --header 'Authorization: Bearer <api-key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"services\":[\"torre-reach-internal\"]}'\n```\n\n### Example response\n\n```json\n{\n  \"services\": [\n    \"torre-reach-internal\"\n  ],\n  \"dailyBudget\": 0,\n  \"internalDailyPrice\": 4.99,\n  \"dailyTotal\": 4.99,\n  \"amountDueNow\": 4.99,\n  \"balance\": 50,\n  \"decision\": \"ready\"\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The current read-only quote. No funds are reserved or charged. |\n| 400 | Malformed request or unsupported query. |\n| 401 | Authentication is required. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | The opening is missing or inaccessible. |\n| 409 | The campaign cannot use these settings. |\n| 422 | The selection or budget is invalid. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"getReachQuote","parameters":[{"name":"openingId","required":true,"in":"path","description":"The opening's opaque id.","schema":{"type":"string","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReachSelectionInput"},"example":{"services":["torre-reach-internal"]}}}},"responses":{"200":{"description":"The current read-only quote. No funds are reserved or charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReachQuote"},"example":{"services":["torre-reach-internal"],"dailyBudget":0,"internalDailyPrice":4.99,"dailyTotal":4.99,"amountDueNow":4.99,"balance":50,"decision":"ready"}}}},"400":{"description":"Malformed request or unsupported query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Authentication is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"The opening is missing or inaccessible.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"409":{"description":"The campaign cannot use these settings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The selection or budget is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Quote selected attraction services","tags":["Sponsor a job"],"x-read-only":true}},"/v1/attraction-options":{"get":{"description":"Read available attraction services before asking for selections. Torre Reach is internal sponsorship (`torre-reach-internal`). Torre ReachMax (ReachMax) is external distribution (`torre-reach-external`). Unavailable services cannot be selected. Prices and minimums describe the public API. Read a quote for the opening before paid activation.\n\n### Use cases\n\nDiscover attraction choices before collecting selections.\n\n### State and side effects\n\nRead-only. Unavailable services are not offered for activation. Use an opening quote before spending.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/attraction-options' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"options\": [\n    {\n      \"id\": \"torre-network\",\n      \"group\": \"active\",\n      \"available\": true,\n      \"pricingModel\": \"free\"\n    },\n    {\n      \"id\": \"torre-reach-internal\",\n      \"group\": \"active\",\n      \"available\": true,\n      \"pricingModel\": \"daily\",\n      \"dailyPrice\": 4.99\n    },\n    {\n      \"id\": \"torre-reach-external\",\n      \"group\": \"active\",\n      \"available\": true,\n      \"pricingModel\": \"daily_budget\",\n      \"minimumDailyBudget\": 1\n    },\n    {\n      \"id\": \"torre-sourcing\",\n      \"group\": \"passive\",\n      \"available\": false,\n      \"pricingModel\": \"unavailable\"\n    },\n    {\n      \"id\": \"torre-headhunt\",\n      \"group\": \"passive\",\n      \"available\": false,\n      \"pricingModel\": \"unavailable\"\n    }\n  ]\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The available attraction options and current billing metadata. |\n| 400 | Unsupported query. |\n| 401 | Authentication is required. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 429 | Rate limit exceeded. |\n| 502 | Torre returned an unexpected service response. |\n| 503 | The operation is temporarily unavailable. Retry later. |\n| 504 | The operation did not complete before the request deadline. |","operationId":"listAttractionOptions","parameters":[],"responses":{"200":{"description":"The available attraction options and current billing metadata.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttractionOptions"},"example":{"options":[{"id":"torre-network","group":"active","available":true,"pricingModel":"free"},{"id":"torre-reach-internal","group":"active","available":true,"pricingModel":"daily","dailyPrice":4.99},{"id":"torre-reach-external","group":"active","available":true,"pricingModel":"daily_budget","minimumDailyBudget":1},{"id":"torre-sourcing","group":"passive","available":false,"pricingModel":"unavailable"},{"id":"torre-headhunt","group":"passive","available":false,"pricingModel":"unavailable"}]}}}},"400":{"description":"Unsupported query.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"401":{"description":"Authentication is required.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"502":{"description":"Torre returned an unexpected service response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"503":{"description":"The operation is temporarily unavailable. Retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"504":{"description":"The operation did not complete before the request deadline.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List attraction options","tags":["Openings"]}},"/v1/events/{eventId}":{"get":{"description":"Returns an immutable account event. Business events can be delivered to webhook endpoints. API request entries are history-only. Missing and foreign ids are indistinguishable.\n\n### Use cases\n\nRead one event from your account’s history using its event ID.\n\n### State and side effects\n\nRead-only. Business events can be delivered to webhooks. API request entries remain history-only. Reading an event does not redeliver it or change webhook delivery attempts.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/events/event_a1B2c3D4' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"id\": \"event_a1B2c3D4\",\n  \"type\": \"message.replied\",\n  \"createdAt\": \"2026-09-14T16:30:00.000Z\",\n  \"data\": {\n    \"openingId\": \"8gQK2bWa\",\n    \"candidateId\": \"c_a1B2c3D4\",\n    \"messageId\": \"message_a1B2c3D4\",\n    \"conversationId\": \"room_a1B2c3D4;opportunities=8gQK2bWa\",\n    \"topic\": {\n      \"id\": \"8gQK2bWa\",\n      \"name\": \"opportunities\"\n    }\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | The event. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 404 | No event found for that id. |\n| 429 | Rate limit exceeded. |","operationId":"getEvent","parameters":[{"name":"eventId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"The event.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"},"example":{"id":"event_a1B2c3D4","type":"message.replied","createdAt":"2026-09-14T16:30:00.000Z","data":{"openingId":"8gQK2bWa","candidateId":"c_a1B2c3D4","messageId":"message_a1B2c3D4","conversationId":"room_a1B2c3D4;opportunities=8gQK2bWa","topic":{"id":"8gQK2bWa","name":"opportunities"}}}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"404":{"description":"No event found for that id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"Get an event","tags":["Webhooks & events"]}},"/v1/events":{"get":{"description":"Lists account-owned business and API request events newest first. Filter by event type and continue with the returned opaque cursor.\n\n### Use cases\n\nSee recent activity for your account, including business events and API requests. Filter by event type and follow the next cursor for more.\n\n### State and side effects\n\nRead-only. Events are returned newest first and the cursor is opaque. API requests record method, route template, and HTTP status without credentials, queries, or bodies.\n\n### Example request\n\n```bash\ncurl --request GET \\\n  --url 'https://api.torre.ai/v1/events?type=message.replied&limit=25' \\\n  --header 'Authorization: Bearer <api-key>'\n```\n\n### Example response\n\n```json\n{\n  \"data\": [\n    {\n      \"id\": \"event_a1B2c3D4\",\n      \"type\": \"message.replied\",\n      \"createdAt\": \"2026-09-14T16:30:00.000Z\",\n      \"data\": {\n        \"openingId\": \"8gQK2bWa\",\n        \"candidateId\": \"c_a1B2c3D4\",\n        \"messageId\": \"message_a1B2c3D4\",\n        \"conversationId\": \"room_a1B2c3D4;opportunities=8gQK2bWa\",\n        \"topic\": {\n          \"id\": \"8gQK2bWa\",\n          \"name\": \"opportunities\"\n        }\n      }\n    }\n  ],\n  \"pagination\": {\n    \"next_cursor\": null,\n    \"has_more\": false\n  }\n}\n```\n\n### HTTP outcomes\n\n| Status | Meaning |\n| --- | --- |\n| 200 | A page of events. |\n| 401 | Missing, invalid, or unprovisioned credentials. |\n| 403 | The token is not authorized for the Recruiting API. |\n| 422 | The query or cursor is invalid. |\n| 429 | Rate limit exceeded. |","operationId":"listEvents","parameters":[{"name":"cursor","required":false,"in":"query","description":"Opaque cursor from a previous response's `pagination.next_cursor`.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Maximum items to return (1-100).","schema":{"minimum":1,"maximum":100,"default":25,"type":"integer"}},{"name":"type","required":false,"in":"query","description":"Restrict event history to this event type.","schema":{"$ref":"#/components/schemas/EventHistoryType"}}],"responses":{"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"},"example":{"data":[{"id":"event_a1B2c3D4","type":"message.replied","createdAt":"2026-09-14T16:30:00.000Z","data":{"openingId":"8gQK2bWa","candidateId":"c_a1B2c3D4","messageId":"message_a1B2c3D4","conversationId":"room_a1B2c3D4;opportunities=8gQK2bWa","topic":{"id":"8gQK2bWa","name":"opportunities"}}}],"pagination":{"next_cursor":null,"has_more":false}}}}},"401":{"description":"Missing, invalid, or unprovisioned credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"403":{"description":"The token is not authorized for the Recruiting API.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"422":{"description":"The query or cursor is invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}},"429":{"description":"Rate limit exceeded.","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Request quota for the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests remaining in the current window.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecruitingErrorDto"}}}}},"security":[{"bearer":[]}],"summary":"List events","tags":["Webhooks & events"]}}},"info":{"title":"Torre Recruiting API","description":"Use Torre to prepare jobs, review applicants and connect your recruiting tools. Start with a read-only request, follow a guide for your task, then use the endpoint examples below for exact fields and responses. This Reference documents 65 operations. Individual products can be unavailable even when their contract is listed.\n\nOpen [Recipes for talent specialists](https://api.torre.ai/docs/reference/?page=recipes#recipes) for workflows, connection setup, best practices and agent prompts.\nRead every guide by scrolling, or jump to its heading from the menu. Each includes curl examples.\n\n## Authentication\n\nSign in to Torre and create a key at [API keys](https://torre.ai/developer/api-keys). Send the opaque key as `Authorization: Bearer <api-key>`. Every operation below requires authentication, including published-job reads. The account and candidate identity come from the key, not an account id in the request. Never share the key in prompts, URLs, or public repositories.\nLoad your key securely as `TORRE_API_KEY`, then check your account without changing data or spending credits:\n```bash\ncurl https://api.torre.ai/v1/account \\\n  -H \"Authorization: Bearer $TORRE_API_KEY\"\n```\nExpect `200` with your account identity. For an agent, use [Connect to Torre](https://torre.ai/mcp/connect) to sign in through your browser instead of copying a key. MCP OAuth does not currently authorize direct REST calls.\n\n## Access and identifiers\n\nOpening management normally requires ownership or an accepted management role. Active sharers of Torre-owned distributed imports can read, update, close, and unpublish those imports, but cannot manage applicants, publish them later, or spend credits. Inaccessible and missing resources return the same `404`. Published-job reads do not require opening ownership. Job search and candidate-specific job matches use the authenticated candidate’s saved Genome and preferences. Recruiting searches for candidates use an opening’s criteria.\n\nUse the numeric `id` from organization search or creation as `organization_id` when creating an opening. You can instead send the company as `organization`, and Torre finds or creates it. The read-only `organizationId` on an opening is a company slug, not that numeric input. Use a person’s canonical Torre `ggId` as `candidateId`. Opening ids, other resource ids, and pagination cursors are opaque. Do not derive one identifier from another.\nYou can read an accessible public profile with `GET /v1/people/{candidateId}` using your own key. Personalized job matches are different: they use the key owner’s profile and do not accept another person’s `ggId`.\n\n## Workflow\n\n1. Search for or create an organization, then create a structured opening or use `sourceText` to extract a role description. Company selection is required except for freelance (`flexible-job`). The tagline is generated by Torre and is not a writable field.\n2. Complete the opening, confirm alignment, and publish it. `skipAlignment` skips alignment only. It does not skip the web form’s publication requirements. Draft creation alone does not mean the opening is ready to publish.\n3. For imported jobs, use one `externalApplicationUrl` and optionally a separate `crawledSources` collection. Set `deadline` at creation or update it later. LinkedIn imports default to three days when omitted. Duplicate imports return the existing job without overwriting its sources or deadline.\n4. Search for candidates, review applicants, and manage pipeline stages. Read the allowed status transitions before moving an applicant. Creating a community-created Genome gives you a person id, not an application, login, or invitation.\n5. Choose free Job Network distribution, sponsorship on Torre at a fixed daily price, external distribution with your own daily budget, or both paid services. Read the catalog and request an opening-specific quote. Approve the daily total and immediate charge before activating once. In the request, `dailyBudget` covers external distribution only. In the quote, `dailyTotal` combines the service costs. In status responses, `dailyBudget` is the combined daily amount. Follow activity through webhooks or event history.\n6. For candidate-facing integrations, use job search or saved job matches, read a published job, and inspect its match explanation. These operations do not apply to a job, save it, or edit candidate preferences.\n\n## Conventions\n\n- Send JSON request bodies using the documented field names and types. Required fields and nested restrictions are listed per operation. An omitted field is not interchangeable with null.\n- Pagination differs by operation. Use the exact cursor and filters returned for that operation. Do not mix `next_cursor` with `nextCursor` or assume every result is cursor-paginated.\n- Read the attraction catalog and request an opening-specific quote before paid sponsorship or distribution. `GET /v1/pricing` describes billing models. It does not calculate a combined campaign quote.\n- Do not automatically retry state-changing requests after a timeout unless the operation explicitly guarantees idempotency.\n- Error bodies use a stable machine-readable `code`, a human-readable `message`, and a `request_id` for support and tracing.\n- After an uncertain write, inspect the existing resource before repeating it. A failure does not guarantee rollback. A create-and-publish error can include the created id in `error.details.openingId`. The `opening_incomplete` error also identifies missing sections in `error.details.fields`.","version":"1.0.0","contact":{}},"tags":[{"name":"Account","description":"Read account identity, Torre OS subscription metadata, pricing, prepaid balance, auto-reload settings, checkout links, and usage availability."},{"name":"Openings","description":"Create, list, read, update, align, and close account-owned openings."},{"name":"Jobs","description":"Read published jobs and their public requirements without job ownership."},{"name":"Skills","description":"Find skill IDs and names for professional profiles."},{"name":"Organizations","description":"Search or create a company before creating an opening."},{"name":"Publish a job","description":"Publish or unpublish an opening. Publishing normally requires alignment and a verified job poster."},{"name":"Review applicants","description":"List, inspect, review, and update applicants while preserving the product pipeline transitions."},{"name":"Pipeline & stages","description":"List and manage opening stages and screening questions using opaque ids."},{"name":"Search candidates","description":"Start and page candidate searches, inspect public profiles, message applicants, and request Torre Headhunt outreach."},{"name":"Sponsor a job","description":"Read, activate, update, and stop Torre Reach using the account prepaid balance."},{"name":"Webhooks & events","description":"Register signed HTTPS destinations and inspect the immutable event history available to the account."}],"servers":[{"url":"https://api.torre.ai","description":"Production"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Use an opaque Torre API key created by a signed-in Torre user. Send it as `Authorization: Bearer <api-key>`."}},"schemas":{"RecruitingErrorDetailDto":{"type":"object","properties":{"type":{"type":"string","enum":["invalid_request","authentication_error","not_found","conflict","validation_error","payment_required","rate_limit_error","api_error"],"description":"The broad error category."},"code":{"type":"string","description":"Specific, stable machine-readable code."},"message":{"type":"string","description":"A human-readable explanation. Branch on code, not this message."},"details":{"type":"object","additionalProperties":true,"description":"Additional context, such as missing publication fields or a created opening id."}},"required":["type","code","message"]},"RecruitingErrorDto":{"type":"object","properties":{"error":{"description":"The error code, category, explanation, and optional context.","allOf":[{"$ref":"#/components/schemas/RecruitingErrorDetailDto"}]},"request_id":{"type":"string","description":"The request identifier to include when contacting support."}},"required":["error","request_id"]},"JobPlaceDto":{"type":"object","properties":{"remote":{"type":"boolean","description":"Whether this job allows remote work, including hybrid arrangements."},"anywhere":{"type":"boolean","description":"Whether remote work is unrestricted by location."},"locations":{"description":"Named locations allowed for this job.","type":"array","items":{"type":"string"}},"timezones":{"description":"Allowed timezone range when provided.","type":"array","items":{"type":"string"}}},"required":["remote","anywhere","locations"]},"SkillFilterDto":{"type":"object","properties":{"name":{"type":"string","description":"The skill name.","example":"Node.js","maxLength":100,"pattern":"^(?=.*\\S)[\\s\\S]+$"},"proficiency":{"type":"string","enum":["novice","proficient","expert"],"description":"Minimum proficiency level for this skill. Torre matches by this categorical level. There is no numeric weight filter."},"experience":{"type":"string","enum":["unknown","potential-to-develop","1-plus-year","2-plus-years","3-plus-years","4-plus-years","5-plus-years","6-plus-years","7-plus-years","8-plus-years","9-plus-years","10-plus-years"],"description":"Optional minimum experience tier for this skill (for example, 1-plus-year, 3-plus-years, 5-plus-years).","example":"3-plus-years"}},"required":["name"]},"LanguageFilterDto":{"type":"object","properties":{"code":{"type":"string","description":"ISO 639-1 language code.","example":"en","pattern":"^[a-z]{2}$"},"fluency":{"type":"string","enum":["reading","conversational","fully-fluent"],"description":"Minimum fluency."}},"required":["code"]},"JobDetailDto":{"type":"object","properties":{"code":{"type":"string","description":"The public job section identifier, such as responsibilities."},"content":{"type":"string","description":"The saved content of this public job section."}},"required":["code","content"]},"JobCompensationDto":{"type":"object","properties":{"code":{"type":"string","description":"The compensation arrangement, such as fixed or range."},"currency":{"type":"string","description":"The currency of the visible compensation amounts."},"min":{"type":"number","description":"The minimum visible amount per payment period.","minimum":0},"max":{"type":"number","description":"The maximum visible amount per payment period.","minimum":0},"periodicity":{"type":"string","description":"The payment period, such as monthly or yearly."}},"required":["code"]},"JobDto":{"type":"object","properties":{"id":{"type":"string","description":"The opaque published-job id.","example":"8gQK2bWa"},"title":{"type":"string","description":"The job title.","example":"Senior Backend Engineer"},"type":{"type":"string","description":"The opportunity type, such as employment or freelance-gigs."},"status":{"type":"string","description":"The current hiring status. Publication and hiring status are separate.","enum":["open","closed","opening-soon"]},"url":{"type":"string","description":"The public Torre job page.","format":"uri"},"tagline":{"type":"string","description":"The short role summary generated by Torre."},"organizations":{"description":"Names of the organizations offering the job.","type":"array","items":{"type":"string"}},"place":{"description":"The public working arrangement and location restrictions.","allOf":[{"$ref":"#/components/schemas/JobPlaceDto"}]},"skills":{"description":"The job's skill requirements.","type":"array","items":{"$ref":"#/components/schemas/SkillFilterDto"}},"languages":{"description":"The job's language requirements.","type":"array","items":{"$ref":"#/components/schemas/LanguageFilterDto"}},"details":{"description":"Public non-financial job details.","type":"array","items":{"$ref":"#/components/schemas/JobDetailDto"}},"compensation":{"description":"Omitted when pay is hidden.","allOf":[{"$ref":"#/components/schemas/JobCompensationDto"}]},"quickApply":{"type":"boolean","description":"Whether the published job supports Torre quick apply. Reading this field does not submit an application."},"deadline":{"type":"string","description":"The saved application deadline, when available.","format":"date-time"},"externalApplicationUrl":{"type":"string","format":"uri","description":"The external application page, if present."}},"required":["id","title","type","status","url","organizations","place","skills","languages","details","quickApply"]},"JobMatchSummaryDto":{"type":"object","properties":{"id":{"type":"string","description":"The opaque job id. Use it to read job details or a match explanation."},"title":{"type":"string","description":"The job title."},"url":{"type":"string","description":"The public Torre job page."}},"required":["id","title","url"]},"JobMatchScoreDto":{"type":"object","properties":{"score":{"type":"number","nullable":true,"description":"Source match score. This is not a hiring probability."},"min":{"type":"number","description":"Lower bound of the reported match score, or null when unavailable.","nullable":true},"max":{"type":"number","description":"Upper bound of the reported match score, or null when unavailable.","nullable":true},"uncertain":{"type":"boolean","description":"Whether the reported match score is uncertain. It is not a hiring probability."}},"required":["score","min","max","uncertain"]},"CandidateJobMatchDto":{"type":"object","properties":{"job":{"description":"The published job summary.","allOf":[{"$ref":"#/components/schemas/JobMatchSummaryDto"}]},"match":{"description":"The candidate-specific match score and uncertainty.","allOf":[{"$ref":"#/components/schemas/JobMatchScoreDto"}]}},"required":["job","match"]},"JobMatchesPaginationDto":{"type":"object","properties":{"next_cursor":{"type":"string","description":"Pass this cursor unchanged to continue with the same filters. Null when no next page is available.","nullable":true},"has_more":{"type":"boolean","description":"Whether another page is available."}},"required":["next_cursor","has_more"]},"JobMatchesDto":{"type":"object","properties":{"data":{"description":"Job matches in search order. An empty array means no results on this page.","maxItems":20,"type":"array","items":{"$ref":"#/components/schemas/CandidateJobMatchDto"}},"pagination":{"description":"Continuation information for this result page.","allOf":[{"$ref":"#/components/schemas/JobMatchesPaginationDto"}]}},"required":["data","pagination"]},"JobSearchDto":{"type":"object","properties":{"limit":{"type":"integer","description":"Maximum number of job summaries to return on this page.","minimum":1,"maximum":20,"default":10},"cursor":{"type":"string","maxLength":4096,"description":"Opaque cursor returned by the previous page. Pass it unchanged."},"onlyRemote":{"type":"boolean","description":"When true, restrict results to remote jobs.","default":false},"torreOnly":{"type":"boolean","description":"When true, restrict results to jobs posted on Torre.","default":false},"includeClosed":{"type":"boolean","description":"When true, include closed jobs in search results.","default":false}},"additionalProperties":false},"JobMatchFactorDto":{"type":"object","properties":{"score":{"type":"number","nullable":true,"description":"Source match score. This is not a hiring probability."},"min":{"type":"number","description":"Lower bound of the reported match score, or null when unavailable.","nullable":true},"max":{"type":"number","description":"Upper bound of the reported match score, or null when unavailable.","nullable":true},"uncertain":{"type":"boolean","description":"Whether the reported match score is uncertain. It is not a hiring probability."},"code":{"type":"string","description":"The scoring factor represented by this entry.","enum":["skills","compensation","languages","company_size","work_type","skills_similarity","responsibilities_similarity","role_similarity","role","skill","experience","interests","timezone","location","remote","compatibility","connections","education","job_titles","external_jobs","job_stability"]},"missingInformation":{"type":"boolean","description":"Whether information needed to evaluate this factor is missing."}},"required":["score","min","max","uncertain","code","missingInformation"]},"JobMatchRequirementDto":{"type":"object","properties":{"code":{"type":"string","description":"The requirement checked by this filter result.","enum":["skills","compensation","languages","company_size","work_type","skills_similarity","responsibilities_similarity","role_similarity","role","skill","experience","interests","timezone","location","remote","compatibility","connections","education","job_titles","external_jobs","job_stability"]},"passed":{"type":"boolean","description":"The individual source filter result. Filters can combine checks with AND, OR and NOT."}},"required":["code","passed"]},"JobMatchExplanationDto":{"type":"object","properties":{"score":{"type":"number","nullable":true,"description":"Source match score. This is not a hiring probability."},"min":{"type":"number","description":"Lower bound of the reported match score, or null when unavailable.","nullable":true},"max":{"type":"number","description":"Upper bound of the reported match score, or null when unavailable.","nullable":true},"uncertain":{"type":"boolean","description":"Whether the reported match score is uncertain. It is not a hiring probability."},"jobId":{"type":"string","description":"The opaque id of the evaluated job."},"passesFilters":{"type":"boolean","nullable":true,"description":"Combined source filter result, when available."},"factors":{"description":"Recognized scoring factors, retaining repeated checks and source order.","type":"array","items":{"$ref":"#/components/schemas/JobMatchFactorDto"}},"requirements":{"description":"Individual requirement checks. Use passesFilters for the combined result.","type":"array","items":{"$ref":"#/components/schemas/JobMatchRequirementDto"}}},"required":["score","min","max","uncertain","jobId","passesFilters","factors","requirements"]},"SkillDto":{"type":"object","properties":{"id":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Skill ID."},"name":{"type":"string","description":"Skill name in the requested language.","minLength":1,"pattern":"\\S"}},"required":["id","name"]},"Account":{"type":"object","properties":{"accountId":{"type":"string","description":"The authenticated Torre account id."},"name":{"type":"string","description":"The account's displayed name."},"email":{"type":"string","description":"The account email, or null when unavailable.","nullable":true,"format":"email"},"organizations":{"type":"array","description":"The organizations associated with this account and its role in each. This list is not the global organization search catalog.","items":{"type":"object","required":["id","name","role"],"properties":{"id":{"type":"string","description":"The organization identifier returned with this membership."},"name":{"type":"string","description":"The organization name."},"role":{"type":"string","enum":["admin","member"],"description":"The account role in this organization."}}}},"subscriptionStatus":{"type":"string","enum":["active","trialing","none"],"description":"Current Torre OS status. Contextual access to person data is still enforced server-side."}},"required":["accountId","name","email","organizations","subscriptionStatus"]},"Subscription":{"type":"object","properties":{"plan":{"type":"string","enum":["torre-os"],"description":"The Torre OS plan identifier."},"interval":{"type":"string","enum":["monthly","annual"],"description":"Billing cadence."},"status":{"type":"string","description":"The account's current Torre OS subscription state.","enum":["active","trialing","past_due","canceled"]},"renewsAt":{"type":"string","nullable":true,"format":"date-time","description":"When the current period ends and the next charge is made."},"trialEndsAt":{"type":"string","nullable":true,"format":"date-time","description":"This is when the free trial ends, if the account has one."}}},"PriceSheetAction":{"type":"object","properties":{"action":{"type":"string","enum":["headhunt","reach"],"description":"The paid public API action represented by this price-sheet row."},"operationIds":{"minItems":1,"description":"The operations that perform the action.","type":"array","items":{"type":"string"}},"pricingModel":{"type":"string","enum":["flat","caller_budget"],"description":"`flat` charges a fixed price per unit. `caller_budget` charges the spend the caller sets per unit."},"price":{"type":"number","nullable":true,"minimum":0,"description":"Flat price per unit in US dollars, or null when the caller sets the spend. For headhunt this is the current Torre Headhunt price per public API pitch."},"unit":{"type":"string","description":"The billing unit for this action: one pitch or one day.","enum":["pitch","day"]}},"required":["action","operationIds","pricingModel","price","unit"],"additionalProperties":false},"PriceSheet":{"type":"object","properties":{"currency":{"type":"string","enum":["USD"],"description":"All prices are in US dollars."},"actions":{"description":"Every paid action. Operations not listed here are free.","type":"array","items":{"$ref":"#/components/schemas/PriceSheetAction"}}},"required":["currency","actions"],"additionalProperties":false},"LocationDto":{"type":"object","properties":{"name":{"type":"string","description":"The location name.","pattern":"^(?=.*\\S)[\\s\\S]+$"},"country":{"type":"string","description":"The country recorded for this location.","pattern":"^(?=.*\\S)[\\s\\S]+$"}}},"OpeningAdditionalCompensation":{"type":"object","properties":{"code":{"type":"string","enum":["commissions","bonuses","equity","health-insurance","overtime"],"description":"`commissions`: amount per pay period in the compensation currency, 1 to 10,000,000,000. `bonuses`: up to this percent of base pay, 1 to 1,000. `equity`: up to this percent of the company, 0.0001 to 100. `health-insurance`: no amount. `overtime`: amount per hour in the compensation currency, 1 to 10,000,000,000."},"amount":{"type":"number","description":"Required for every code except health-insurance."}},"additionalProperties":false,"oneOf":[{"required":["amount"],"properties":{"code":{"enum":["commissions"]},"amount":{"minimum":1,"maximum":10000000000}}},{"required":["amount"],"properties":{"code":{"enum":["bonuses"]},"amount":{"minimum":1,"maximum":1000}}},{"required":["amount"],"properties":{"code":{"enum":["equity"]},"amount":{"minimum":0.0001,"maximum":100}}},{"required":["amount"],"properties":{"code":{"enum":["overtime"]},"amount":{"minimum":1,"maximum":10000000000}}},{"properties":{"code":{"enum":["health-insurance"]}},"not":{"required":["amount"]}}],"required":["code"]},"CompensationRangeDto":{"type":"object","properties":{"code":{"type":"string","enum":["range","fixed","unpaid","get-quotes","to-be-agreed"],"description":"Omit for a range. `fixed` has one amount, `min`. `unpaid`, `get-quotes` and `to-be-agreed` have no amounts."},"min":{"type":"number","description":"The minimum amount per payment period, or the fixed amount. Required for range and fixed.","minimum":0},"max":{"type":"number","description":"The maximum amount per payment period. Required for a range. Must not be below min.","minimum":0},"currency":{"type":"string","description":"The three-letter uppercase currency code for the compensation.","example":"USD","pattern":"^[A-Z]{3}$"},"periodicity":{"type":"string","description":"The payment period used for the compensation amounts.","enum":["yearly","monthly","daily","hourly","project","task"],"default":"yearly"},"negotiable":{"type":"boolean","description":"Whether range or fixed pay is negotiable."},"visibility":{"type":"string","enum":["visible","prescreening-only","hidden"],"description":"`visible` shows it in the job post. `prescreening-only` hides it from the job post and shows it to applicants during pre-screening. `hidden` shows it nowhere."},"additionalCompensation":{"description":"Compensation in addition to base pay.","type":"array","items":{"$ref":"#/components/schemas/OpeningAdditionalCompensation"}}},"oneOf":[{"required":["min","max"],"properties":{"code":{"enum":["range"]}}},{"required":["code","min"],"properties":{"code":{"enum":["fixed"]}},"not":{"required":["max"]}},{"required":["code"],"properties":{"code":{"enum":["unpaid","get-quotes"]}},"not":{"anyOf":[{"required":["min"]},{"required":["max"]},{"required":["currency"]},{"required":["periodicity"]},{"required":["negotiable"]},{"required":["visibility"]}]}},{"required":["code"],"properties":{"code":{"enum":["to-be-agreed"]}},"not":{"anyOf":[{"required":["min"]},{"required":["max"]},{"required":["negotiable"]},{"required":["visibility"]}]}}]},"OpeningInputDto":{"type":"object","properties":{"objective":{"type":"string","description":"The role title.","maxLength":120,"pattern":"^(?!.*[\\u0000-\\u001F\\u007F\\u200B])(?!\\s)(?=.*\\S)[\\s\\S]*\\S$","example":"Senior Backend Engineer"},"tagline":{"type":"string","readOnly":true,"description":"Torre generates this tagline. It is read-only."},"type":{"type":"string","description":"The opening type.","enum":["employee","part-time","flexible-job","intern"]},"remote":{"type":"boolean","description":"Whether the opening allows remote work."},"location":{"description":"Legacy work location. Required for onsite creation without geography. Omit when using geography.","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"skills":{"description":"The opening's skill requirements.","type":"array","items":{"$ref":"#/components/schemas/SkillFilterDto"}},"languages":{"description":"The opening's language requirements.","type":"array","items":{"$ref":"#/components/schemas/LanguageFilterDto"}},"compensation":{"description":"The saved compensation arrangement and amounts.","allOf":[{"$ref":"#/components/schemas/CompensationRangeDto"}]}},"required":["objective"]},"OpeningTimeframe":{"type":"object","properties":{"type":{"type":"string","description":"The duration arrangement. Specific dates require both startDate and endDate.","enum":["ongoing","one-time-project","specific-dates"]},"startDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$","description":"UTC local date-time. Required for specific-dates."},"endDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$","description":"UTC local date-time, not before startDate. Required for specific-dates."}},"required":["type"],"additionalProperties":false},"OpeningStartDate":{"type":"object","properties":{"option":{"type":"string","description":"The start-date arrangement. A date is required unless this is not-defined.","enum":["exactly-on","no-later-than","not-defined"]},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$","description":"Non-past UTC local date-time. Required unless option is not-defined."}},"required":["option"],"additionalProperties":false},"OpeningAgreement":{"type":"object","properties":{"type":{"type":"string","description":"The contract arrangement for the role.","enum":["employment-contract","non-employment-contract","location-dependent","to-be-defined"]},"currencyTaxes":{"type":"string","description":"Who handles currency conversion and taxes. Required for non-employment-contract and location-dependent agreements.","enum":["company","candidate","location-dependent"]}},"required":["type"],"additionalProperties":false},"OpeningEngagementLength":{"type":"object","properties":{"type":{"type":"string","description":"Open-ended, or a defined length. A defined length requires length and unit.","enum":["open-ended","defined-length"]},"length":{"type":"integer","minimum":1,"maximum":120,"description":"How many units the engagement lasts. Required for defined-length."},"unit":{"type":"string","description":"The unit of length. Required for defined-length.","enum":["days","weeks","months","years"]}},"additionalProperties":false,"oneOf":[{"properties":{"type":{"enum":["open-ended"]}},"not":{"anyOf":[{"required":["length"]},{"required":["unit"]}]}},{"properties":{"type":{"enum":["defined-length"]}},"required":["length","unit"]}],"required":["type"]},"OpeningOrganizationInput":{"type":"object","properties":{"name":{"type":"string","description":"The name of the company.","maxLength":100,"pattern":"\\S","example":"Acme"},"website":{"type":"string","format":"uri","example":"https://acme.com","description":"Company website. Helps distinguish companies with similar names."},"links":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":10,"example":["https://www.linkedin.com/company/acme"],"description":"Other pages of the company, such as its LinkedIn page. They help find a company Torre already has."},"picture":{"type":"string","format":"uri","example":"https://acme.com/logo.png","description":"Company logo, used when Torre creates the company."}},"additionalProperties":false,"required":["name"]},"OpeningGeographyLocation":{"type":"object","properties":{"name":{"type":"string","maxLength":250,"pattern":"^(?=.*\\S)[\\s\\S]+$","description":"Country name for remote countries, or workplace address for on-site/hybrid. At least name or country is required."},"country":{"type":"string","maxLength":250,"pattern":"^(?=.*\\S)[\\s\\S]+$","description":"Country name. For remote countries, country alone is accepted. For on-site/hybrid, supply a precise workplace name. At least name or country is required."}},"additionalProperties":false,"anyOf":[{"required":["name"]},{"required":["country"]}]},"OpeningGeography":{"type":"object","properties":{"type":{"type":"string","description":"The working-arrangement mode. The selected mode determines the required location or timezone fields.","enum":["physical_location","hybrid","remote_anywhere","remote_countries","remote_timezones"]},"locations":{"minItems":1,"description":"All allowed countries, or the workplace locations. Regions such as LATAM must be supplied as their intended country list.","type":"array","items":{"$ref":"#/components/schemas/OpeningGeographyLocation"}},"timezones":{"type":"array","minItems":2,"maxItems":2,"items":{"type":"string","pattern":"^GMT(?:-(?:0[0-9]|1[0-2])|\\+(?:0[0-9]|1[0-4])):00$"},"description":"Inclusive range endpoints, using the same GMT offsets as the web. A range can wrap across the date line.","example":["GMT-06:00","GMT-03:00"]}},"additionalProperties":false,"oneOf":[{"properties":{"type":{"enum":["physical_location","hybrid","remote_countries"]}},"required":["locations"],"not":{"required":["timezones"]}},{"properties":{"type":{"enum":["remote_timezones"]}},"required":["timezones"],"not":{"required":["locations"]}},{"properties":{"type":{"enum":["remote_anywhere"]}},"not":{"anyOf":[{"required":["locations"]},{"required":["timezones"]}]}}],"required":["type"]},"CreateOpeningLocation":{"type":"object","properties":{"name":{"type":"string","description":"The work location name. Supply a name or country for legacy onsite input.","maxLength":250,"pattern":"^(?=.*\\S)[\\s\\S]+$"},"country":{"type":"string","description":"The work location's country. Supply a name or country for legacy onsite input.","maxLength":250,"pattern":"^(?=.*\\S)[\\s\\S]+$"}},"additionalProperties":false},"CreateOpeningSkill":{"type":"object","properties":{"name":{"type":"string","description":"The skill name. Supply at least one of proficiency or experience.","maxLength":100,"pattern":"^(?=.*\\S)[\\s\\S]+$"},"proficiency":{"type":"string","description":"The minimum proficiency tier for this skill.","enum":["no-experience-interested","novice","proficient","expert"]},"experience":{"type":"string","description":"The minimum experience tier for this skill.","enum":["unknown","potential-to-develop","1-plus-year","2-plus-years","3-plus-years","4-plus-years","5-plus-years","6-plus-years","7-plus-years","8-plus-years","9-plus-years","10-plus-years"]}},"additionalProperties":false,"anyOf":[{"required":["proficiency"]},{"required":["experience"]}],"required":["name"]},"CreateOpeningLanguage":{"type":"object","properties":{"code":{"type":"string","description":"ISO 639-1 language code.","pattern":"^[a-z]{2}$"},"fluency":{"type":"string","enum":["reading","conversational","fully-fluent"],"description":"Minimum fluency."}},"additionalProperties":false,"required":["code"]},"CreateOpeningCompensation":{"type":"object","properties":{"code":{"type":"string","enum":["range","fixed","unpaid","get-quotes","to-be-agreed"],"description":"Base compensation. Omit for a range. `fixed` is one amount. `unpaid`, `get-quotes` (get price quotes from freelancers) and `to-be-agreed` have no amounts."},"min":{"type":"number","description":"The minimum amount per payment period, or the fixed amount. Required for range and fixed.","minimum":0},"max":{"type":"number","description":"The maximum amount per payment period. Required for a range. Must not be below min.","minimum":0},"currency":{"type":"string","description":"The three-letter uppercase currency code for the compensation.","example":"USD","pattern":"^[A-Z]{3}$"},"periodicity":{"type":"string","description":"The payment period used for the compensation amounts.","enum":["yearly","monthly","daily","hourly","project","task"],"default":"yearly"},"negotiable":{"type":"boolean","description":"Whether range or fixed pay is negotiable.","default":true},"visibility":{"type":"string","enum":["visible","prescreening-only","hidden"],"default":"visible","description":"`visible` shows it in the job post. `prescreening-only` hides it from the job post and shows it to applicants during pre-screening. `hidden` shows it nowhere."},"additionalCompensation":{"description":"Compensation in addition to base pay, each code at most once.","type":"array","items":{"$ref":"#/components/schemas/OpeningAdditionalCompensation"}}},"additionalProperties":false,"description":"The pay, as the job post form offers it. Omitted code means range. `fixed` takes `min` only. `unpaid` and `get-quotes` take no amounts, currency, period, negotiable or visibility. `to-be-agreed` takes no amounts, negotiable or visibility, and ignores a currency or period.","oneOf":[{"required":["min","max"],"properties":{"code":{"enum":["range"]}}},{"required":["code","min"],"properties":{"code":{"enum":["fixed"]}},"not":{"required":["max"]}},{"required":["code"],"properties":{"code":{"enum":["unpaid","get-quotes"]}},"not":{"anyOf":[{"required":["min"]},{"required":["max"]},{"required":["currency"]},{"required":["periodicity"]},{"required":["negotiable"]},{"required":["visibility"]}]}},{"required":["code"],"properties":{"code":{"enum":["to-be-agreed"]}},"not":{"anyOf":[{"required":["min"]},{"required":["max"]},{"required":["negotiable"]},{"required":["visibility"]}]}}]},"OpeningCommitment":{"type":"object","properties":{"code":{"type":"string","description":"The time commitment for the role. See `hours`.","enum":["full-time","part-time"]},"hours":{"type":"integer","description":"Weekly hours. Required when you send `code: part-time`. If the source states no exact hours, omit `commitment` instead. A part-time job needs 1–30 hours to publish, except an import, which can publish without hours. Reads omit `hours` when none is saved."}},"additionalProperties":false,"required":["code"]},"CreateOpeningInput":{"type":"object","properties":{"responsibilities":{"type":"string","minLength":100,"maxLength":10000,"pattern":"^\\s*\\S[\\s\\S]{98,}\\S\\s*$","description":"Responsibilities & more, preserved verbatim. When supplied, requires at least 100 characters after trimming."},"timeframe":{"description":"The role's duration, not the application deadline.","allOf":[{"$ref":"#/components/schemas/OpeningTimeframe"}]},"startDate":{"description":"The expected start-date arrangement, not the application deadline.","allOf":[{"$ref":"#/components/schemas/OpeningStartDate"}]},"agreement":{"description":"The contract arrangement and responsibility for currency conversion and taxes.","allOf":[{"$ref":"#/components/schemas/OpeningAgreement"}]},"engagementLength":{"description":"Engagement length: open-ended, or a defined length. Only for employee (full-time) and part-time openings, except for imported jobs.","allOf":[{"$ref":"#/components/schemas/OpeningEngagementLength"}]},"visaSponsorship":{"type":"string","description":"Visa sponsorship: whether you are willing to sponsor visas. Use to-be-discussed when it is to be discussed or negotiated.","enum":["yes","no","to-be-discussed"]},"locale":{"type":"string","description":"The language the job post is written in. Omission saves English.","enum":["en","es"],"default":"en"},"organization_id":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The id returned by organization search or creation. Select organization_id, organization_ids or organization, except for flexible-job (freelance), which can omit the company."},"organization_ids":{"type":"array","items":{"type":"integer","minimum":1,"maximum":2147483647},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Existing company IDs from organization search or creation. Lists all companies on one opening, with one opening ID and application flow. Do not combine with organization_id or organization. This does not define a corporate hierarchy or grant company roles.","example":[123,456]},"organization":{"description":"The company, instead of organization_id or organization_ids. Torre finds the company it already has, using the job's title, locations and responsibilities, or creates it. Do not combine company selectors.","allOf":[{"$ref":"#/components/schemas/OpeningOrganizationInput"}]},"objective":{"type":"string","maxLength":120,"pattern":"^(?!.*[\\u0000-\\u001F\\u007F\\u200B])(?!\\s)(?=.*\\S)[\\s\\S]*\\S$","description":"The role title."},"type":{"type":"string","description":"The opening type. Omission defaults to flexible-job (freelance).","enum":["employee","part-time","flexible-job","intern"],"default":"flexible-job"},"remote":{"type":"boolean","description":"Required unless geography is supplied. With geography, omit it or match the selected mode."},"geography":{"description":"Complete web-compatible working arrangement. Do not combine with location.","allOf":[{"$ref":"#/components/schemas/OpeningGeography"}]},"location":{"description":"Legacy onsite location. Required when remote is false without geography. Do not combine with geography.","allOf":[{"$ref":"#/components/schemas/CreateOpeningLocation"}]},"skills":{"description":"The role's skill requirements. Each item needs proficiency, experience, or both.","type":"array","items":{"$ref":"#/components/schemas/CreateOpeningSkill"}},"languages":{"description":"The role's language requirements.","type":"array","items":{"$ref":"#/components/schemas/CreateOpeningLanguage"}},"compensation":{"description":"The pay. Normal openings accept only the pay the job post form offers for the type. Every type takes range and fixed. Only intern takes `unpaid`, only flexible-job takes `get-quotes`, and only employee and part-time take `to-be-agreed`. Periods are yearly, monthly and hourly. Flexible-job takes monthly, daily, hourly, and `task` for an ongoing or omitted timeframe or `project` otherwise. `additionalCompensation` goes with range, fixed and `to-be-agreed`. Flexible-job takes commissions and equity, employee and part-time take every code, and intern takes none. Draft acceptance does not imply publication readiness.","allOf":[{"$ref":"#/components/schemas/CreateOpeningCompensation"}]},"commitment":{"description":"The time commitment. When omitted, Torre derives it from the opening type.","allOf":[{"$ref":"#/components/schemas/OpeningCommitment"}]},"externalApplicationUrl":{"type":"string","format":"uri","maxLength":2048,"pattern":"^[Hh][Tt][Tt][Pp][Ss]?://[^/@\\s?#]+(?:[/?#][^\\s]*)?$","description":"The URL candidates open when they click Apply. Normal openings keep their owner and existing permissions. Imported jobs belong to Torre. Active sharers can read, edit, close and unpublish eligible imports, but cannot manage applicants or spend credits."},"crawled":{"type":"boolean","default":false,"description":"Defaults to false: create a normal opening you own, even with externalApplicationUrl. Send true explicitly for the Torre-owned import/share flow. True requires externalApplicationUrl. Cannot change an existing opening’s origin."},"deadline":{"oneOf":[{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"string","format":"date-time","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$"}],"description":"Application deadline as a non-past YYYY-MM-DD date or future RFC 3339 timestamp with timezone, no later than 2038-01-19T03:14:07Z. LinkedIn imports default to three days when omitted.","example":"2030-08-01"},"crawledSources":{"type":"array","items":{"type":"string","format":"uri","maxLength":2048,"pattern":"^[Hh][Tt][Tt][Pp][Ss]?://[^/@\\s?#]+(?:[/?#][^\\s]*)?$"},"maxItems":20,"uniqueItems":true,"description":"Original HTTP(S) pages where this imported job was found, independent of externalApplicationUrl. Available only for explicitly selected imports. They require externalApplicationUrl."},"action":{"type":"string","enum":["post",null],"nullable":true,"description":"Send `post` to also post the opening. Omit it or send `null` to only create it."},"skipAlignment":{"type":"boolean","description":"With `action: \"post\"`, posts without alignment, as on `publishOpening`."}},"additionalProperties":false,"allOf":[{"anyOf":[{"required":["remote"]},{"required":["geography"]}]},{"not":{"required":["geography","location"]}},{"anyOf":[{"not":{"required":["geography","remote"]}},{"properties":{"remote":{"enum":[false]},"geography":{"properties":{"type":{"enum":["physical_location"]}}}}},{"properties":{"remote":{"enum":[true]},"geography":{"properties":{"type":{"enum":["hybrid","remote_anywhere","remote_countries","remote_timezones"]}}}}}]},{"anyOf":[{"required":["organization_id"]},{"required":["organization_ids"]},{"required":["organization"]},{"properties":{"type":{"enum":["flexible-job"]}}}]},{"not":{"anyOf":[{"required":["organization_id","organization"]},{"required":["organization_ids","organization"]},{"required":["organization_id","organization_ids"]}]}},{"anyOf":[{"not":{"required":["crawledSources"]}},{"required":["externalApplicationUrl"]}]},{"anyOf":[{"properties":{"crawled":{"enum":[false]}}},{"required":["crawled","externalApplicationUrl"],"properties":{"crawled":{"enum":[true]}}}]},{"anyOf":[{"not":{"required":["crawledSources"]}},{"required":["crawled"],"properties":{"crawled":{"enum":[true]}}}]},{"anyOf":[{"not":{"required":["engagementLength"]}},{"required":["crawled","externalApplicationUrl"],"properties":{"crawled":{"enum":[true]}}},{"required":["type"],"properties":{"type":{"enum":["employee","part-time"]}}}]}],"required":["objective"],"anyOf":[{"required":["geography"]},{"required":["remote"],"properties":{"remote":{"enum":[true]}}},{"required":["location"],"properties":{"remote":{"enum":[false]},"location":{"anyOf":[{"required":["name"]},{"required":["country"]}]}}}]},"CreateOpeningFromTextDto":{"type":"object","properties":{"organization_id":{"type":"integer","minimum":1,"maximum":2147483647,"description":"The id returned by organization search or creation. Select organization_id, organization_ids or organization unless the extracted type is flexible-job (freelance). Never inferred from sourceText."},"organization_ids":{"type":"array","items":{"type":"integer","minimum":1,"maximum":2147483647},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Existing company IDs from organization search or creation. Lists all companies on one opening, with one opening ID and application flow. Do not combine with organization_id or organization. This does not define a corporate hierarchy or grant company roles.","example":[123,456]},"organization":{"description":"The company, instead of organization_id or organization_ids. Torre finds the company it already has, using the job's title, locations and responsibilities, or creates it. Do not combine company selectors.","allOf":[{"$ref":"#/components/schemas/OpeningOrganizationInput"}]},"sourceText":{"type":"string","description":"Torre extracts the job type from this role description before checking company requirements. A flexible-job (freelance) brief can omit the company. Other extracted types require organization_id, organization_ids or organization and otherwise return 422 invalid_field with those fields in error.details.fields.","example":"Hiring a senior Go engineer, remote in LATAM, to build the payments platform."}},"required":["sourceText"],"additionalProperties":false},"AttractionSelection":{"type":"object","properties":{"services":{"items":{"type":"string","enum":["torre-network","torre-reach-internal","torre-reach-external"]},"minItems":1,"uniqueItems":true,"type":"array"},"revision":{"type":"number","enum":[0]}},"additionalProperties":false,"required":["services","revision"]},"InitializeOpening":{"type":"object","properties":{"attractionInitializationKey":{"type":"string","format":"uuid","description":"Use a stable UUID for the same attraction setup. Reusing it returns the saved opening."},"attractionPreferences":{"$ref":"#/components/schemas/AttractionSelection"},"locale":{"type":"string","enum":["en","es"]}},"additionalProperties":false,"required":["attractionInitializationKey","attractionPreferences"]},"AttractionPreferences":{"type":"object","properties":{"services":{"type":"array","items":{"type":"string","enum":["torre-network","torre-reach-internal","torre-reach-external","torre-sourcing","torre-headhunt"]}},"applicationDestination":{"type":"string","enum":["torre","website"]},"revision":{"type":"number","minimum":0,"description":"Current saved revision. Supply it when changing choices. Read again after a conflict."}},"required":["revision"]},"OpeningAttraction":{"type":"object","properties":{"creationSource":{"type":"string","enum":["api","emma","web","crawler"],"nullable":true,"readOnly":true,"description":"Where the opening was originally created: api (including MCP), emma, web, or crawler. Imported jobs use crawler even when submitted through the API. This read-only value does not change when the opening is edited or shared. Null means the original channel is unknown. The field is omitted when not reported by the source."},"setupPending":{"type":"boolean","description":"True while the opening still needs setup. This minimal response can omit full job fields."},"id":{"type":"string"},"published":{"type":"boolean"},"attractionPreferences":{"$ref":"#/components/schemas/AttractionPreferences"},"externalApplicationUrl":{"type":"string"}},"additionalProperties":false,"required":["id","published"]},"UpdateOpeningSkillDto":{"type":"object","properties":{"name":{"type":"string","description":"The skill name.","example":"Node.js"},"experience":{"type":"string","enum":["unknown","potential-to-develop","1-plus-year","2-plus-years","3-plus-years","4-plus-years","5-plus-years","6-plus-years","7-plus-years","8-plus-years","9-plus-years","10-plus-years"],"description":"Minimum native experience tier. Required when `proficiency` is omitted.","example":"3-plus-years"},"proficiency":{"type":"string","enum":["no-experience-interested","novice","proficient","expert"],"description":"Minimum native proficiency. Required when `experience` is omitted."}},"required":["name"],"additionalProperties":false,"anyOf":[{"required":["experience"]},{"required":["proficiency"]}]},"UpdateOpeningLanguageDto":{"type":"object","properties":{"code":{"type":"string","description":"ISO 639-1 language code.","example":"en"},"fluency":{"type":"string","enum":["reading","conversational","fully-fluent"],"description":"Minimum fluency."}},"required":["code","fluency"],"additionalProperties":false},"UpdateOpeningCompensationDto":{"type":"object","properties":{"code":{"type":"string","enum":["range","to-be-agreed"],"description":"Omit for a range. Use to-be-agreed for compensation to be agreed upon, without amounts."},"min":{"type":"number","description":"Minimum compensation. Required for a range."},"max":{"type":"number","description":"Maximum compensation. Required for a range. Must be greater than or equal to `min`."},"currency":{"type":"string","description":"Currency code.","example":"USD"},"periodicity":{"type":"string","enum":["hourly","monthly","yearly"],"default":"yearly","description":"Compensation periodicity. Defaults to `yearly`."}},"oneOf":[{"required":["min","max"],"properties":{"code":{"enum":["range"]}}},{"required":["code"],"properties":{"code":{"enum":["to-be-agreed"]}},"not":{"anyOf":[{"required":["min"]},{"required":["max"]}]}}],"additionalProperties":false},"UpdateOpeningInputDto":{"type":"object","properties":{"type":{"type":"string","enum":["employee","part-time","flexible-job","intern"]},"organization_id":{"type":"number","minimum":1,"maximum":2147483647},"organization_ids":{"type":"array","items":{"type":"integer","minimum":1,"maximum":2147483647},"minItems":1,"maxItems":100,"uniqueItems":true,"description":"Existing company IDs from organization search or creation. Lists all companies on one opening, with one opening ID and application flow. Do not combine with organization_id or organization. This does not define a corporate hierarchy or grant company roles. PATCH replaces the complete list. Omission preserves it.","example":[123,456]},"agreement":{"$ref":"#/components/schemas/OpeningAgreement"},"commitment":{"$ref":"#/components/schemas/OpeningCommitment"},"timeframe":{"$ref":"#/components/schemas/OpeningTimeframe"},"startDate":{"$ref":"#/components/schemas/OpeningStartDate"},"externalApplicationUrl":{"type":"string","format":"uri","maxLength":2048,"pattern":"^[Hh][Tt][Tt][Pp][Ss]?://[^/@\\s?#]+(?:[/?#][^\\s]*)?$","description":"Add or replace the main application destination on an opening you own or manage. Send alone. Preserves ownership, import status, sources, alignment and publication. Use a nonempty HTTP(S) URL without embedded credentials or whitespace. Omit to keep the current link. Null and empty values are not supported.","example":"https://careers.example.com/jobs/backend-engineer?source=torre"},"crawledSources":{"type":"array","items":{"type":"string","format":"uri","maxLength":2048,"pattern":"^[Hh][Tt][Tt][Pp][Ss]?://[^/@\\s?#]+(?:[/?#][^\\s]*)?$"},"maxItems":20,"uniqueItems":true,"description":"Replace the complete list of original crawl-source URLs. Send alone. This does not change the application URL."},"geography":{"description":"Replace the complete working arrangement. Submit geography alone. Countries and timezone ranges from the previous mode are cleared.","allOf":[{"$ref":"#/components/schemas/OpeningGeography"}]},"responsibilities":{"type":"string","minLength":100,"maxLength":10000,"pattern":"^\\s*\\S[\\s\\S]{98,}\\S\\s*$","description":"Replace Responsibilities & more verbatim, preserving other detail sections. Requires at least 100 characters after trimming."},"objective":{"type":"string","description":"The role title. Must contain at least one non-whitespace character.","maxLength":120,"pattern":"\\S","example":"Senior Backend Engineer"},"skills":{"description":"Every skill requires at least one native experience or proficiency requirement.","type":"array","items":{"$ref":"#/components/schemas/UpdateOpeningSkillDto"}},"languages":{"description":"Required/preferred languages.","type":"array","items":{"$ref":"#/components/schemas/UpdateOpeningLanguageDto"}},"compensation":{"description":"A range with both min and max (min must not exceed max), or code to-be-agreed without amounts.","allOf":[{"$ref":"#/components/schemas/UpdateOpeningCompensationDto"}]},"deadline":{"type":"string","format":"date","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"A non-past ISO 8601 calendar date. A deadline update must be submitted alone.","example":"2099-08-01"}},"additionalProperties":false,"minProperties":1,"not":{"required":["organization_id","organization_ids"]},"oneOf":[{"required":["externalApplicationUrl"],"maxProperties":1},{"required":["crawledSources"],"maxProperties":1},{"required":["geography"],"maxProperties":1},{"required":["deadline"],"properties":{"deadline":{}},"maxProperties":1},{"not":{"anyOf":[{"required":["externalApplicationUrl"]},{"required":["deadline"]},{"required":["geography"]},{"required":["crawledSources"]}]}}]},"OpeningSummary":{"type":"object","properties":{"creationSource":{"type":"string","enum":["api","emma","web","crawler"],"nullable":true,"readOnly":true,"description":"Where the opening was originally created: api (including MCP), emma, web, or crawler. Imported jobs use crawler even when submitted through the API. This read-only value does not change when the opening is edited or shared. Null means the original channel is unknown. The field is omitted when not reported by the source."},"id":{"type":"string","description":"The opaque opening id.","example":"8gQK2bWa"},"objective":{"type":"string","description":"The role title."},"status":{"type":"string","description":"The current hiring status, separate from publication state.","enum":["open","closed","opening-soon"]},"published":{"type":"boolean","description":"Whether the opening is published as a job post."},"aligned":{"type":"string","nullable":true,"format":"date-time","description":"Omitted means the source did not report alignment state. Null means it explicitly reported not aligned."},"applicantCount":{"type":"integer","description":"The applicant count reported for this opening."},"updatedAt":{"type":"string","description":"When the opening was last updated.","format":"date-time"}},"required":["id","objective","status","published","applicantCount","updatedAt"]},"Pagination":{"type":"object","properties":{"next_cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` to fetch the next page. Null when there are no more."},"has_more":{"type":"boolean","description":"Whether another page is available."}},"required":["next_cursor","has_more"]},"OpeningList":{"type":"object","properties":{"data":{"description":"The openings returned on this page.","type":"array","items":{"$ref":"#/components/schemas/OpeningSummary"}},"pagination":{"description":"Continuation information for this page.","allOf":[{"$ref":"#/components/schemas/Pagination"}]}},"required":["data","pagination"]},"ResolvedOrganization":{"type":"object","properties":{"id":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Use this numeric id as organization_id when creating an opening.","example":123},"name":{"type":"string","description":"The organization's displayed name.","minLength":1,"example":"Acme"},"matched":{"type":"boolean","description":"True when Torre matched a company it already had, as a 200 from createOrganization does."}},"additionalProperties":false,"required":["id","name","matched"]},"SharedOpening":{"type":"object","properties":{"id":{"type":"string","description":"The id of the job Torre already has."},"url":{"type":"string","format":"uri","description":"The job's post on Torre."},"status":{"type":"string","enum":["open","closed","opening-soon"],"description":"The job's status."},"shared":{"type":"boolean","description":"False when you already manage the job and nothing changed."},"organization":{"description":"Only when createOpening received organization: the company the opening was created under.","allOf":[{"$ref":"#/components/schemas/ResolvedOrganization"}]}},"additionalProperties":false,"required":["id","url","status","shared"]},"OpeningStatsDto":{"type":"object","properties":{"applicants":{"type":"integer","description":"The applicant count reported for the opening."}},"required":["applicants"]},"OpeningDto":{"type":"object","properties":{"objective":{"type":"string","description":"The role title.","maxLength":120,"pattern":"^(?!.*[\\u0000-\\u001F\\u007F\\u200B])(?!\\s)(?=.*\\S)[\\s\\S]*\\S$","example":"Senior Backend Engineer"},"tagline":{"type":"string","readOnly":true,"description":"Torre generates this tagline. It is read-only."},"type":{"type":"string","description":"The opening type.","enum":["employee","part-time","flexible-job","intern"]},"remote":{"type":"boolean","description":"Whether the opening allows remote work."},"location":{"description":"Legacy work location. Required for onsite creation without geography. Omit when using geography.","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"skills":{"description":"The opening's skill requirements.","type":"array","items":{"$ref":"#/components/schemas/SkillFilterDto"}},"languages":{"description":"The opening's language requirements.","type":"array","items":{"$ref":"#/components/schemas/LanguageFilterDto"}},"compensation":{"description":"The saved compensation arrangement and amounts.","allOf":[{"$ref":"#/components/schemas/CompensationRangeDto"}]},"creationSource":{"type":"string","enum":["api","emma","web","crawler"],"nullable":true,"readOnly":true,"description":"Where the opening was originally created: api (including MCP), emma, web, or crawler. Imported jobs use crawler even when submitted through the API. This read-only value does not change when the opening is edited or shared. Null means the original channel is unknown. The field is omitted when not reported by the source."},"crawledSources":{"maxItems":20,"uniqueItems":true,"description":"Original pages where this imported job was found, separate from the application URL.","type":"array","items":{"type":"string"}},"externalApplicationUrl":{"type":"string","format":"uri","description":"The main external application URL."},"deadlineAt":{"type":"string","format":"date-time","description":"The exact saved application deadline in UTC."},"geography":{"description":"The saved working arrangement, including every location or timezone restriction.","allOf":[{"$ref":"#/components/schemas/OpeningGeography"}]},"responsibilities":{"type":"string","description":"The Responsibilities & more text saved on the opening."},"commitment":{"description":"The saved time commitment.","allOf":[{"$ref":"#/components/schemas/OpeningCommitment"}]},"visaSponsorship":{"type":"string","description":"The saved visa sponsorship option.","enum":["yes","no","to-be-discussed"]},"engagementLength":{"description":"The saved engagement length.","allOf":[{"$ref":"#/components/schemas/OpeningEngagementLength"}]},"locale":{"type":"string","description":"The job post's language. Torre replaces the saved value with the language it detects in the job's text.","enum":["en","es"]},"timeframe":{"description":"The saved role duration. Freelance and internship openings without one read as ongoing.","allOf":[{"$ref":"#/components/schemas/OpeningTimeframe"}]},"startDate":{"description":"The saved start-date arrangement.","allOf":[{"$ref":"#/components/schemas/OpeningStartDate"}]},"agreement":{"description":"The saved contract arrangement.","allOf":[{"$ref":"#/components/schemas/OpeningAgreement"}]},"deadline":{"type":"string","description":"The date-only application deadline. Use deadlineAt for the exact timestamp.","format":"date","readOnly":true},"organizationId":{"type":"string","description":"The read-only company slug. This is not the numeric organization_id accepted during creation.","readOnly":true},"organizationIds":{"type":"array","items":{"type":"integer","minimum":1},"description":"All associated numeric company IDs. Use organization_ids in create or PATCH to select these companies. This is a flat association, not a corporate hierarchy. The opening and application flow remain the same."},"organization":{"description":"Only when createOpening received organization: the company the opening was created under.","allOf":[{"$ref":"#/components/schemas/ResolvedOrganization"}]},"id":{"type":"string","description":"The opaque opening id used in opening-management routes.","example":"8gQK2bWa"},"slug":{"type":"string","description":"The opening's public URL slug."},"status":{"type":"string","description":"The current hiring status, separate from publication state.","enum":["open","closed","opening-soon"]},"published":{"type":"boolean","description":"Whether the opening is published as a job post."},"aligned":{"type":"string","nullable":true,"format":"date-time","description":"When the opening was aligned. Null if not aligned. Editing the opening's search criteria resets this to null."},"url":{"type":"string","description":"The public Torre page for this opening."},"stats":{"description":"The opening's applicant statistics.","allOf":[{"$ref":"#/components/schemas/OpeningStatsDto"}]},"createdAt":{"type":"string","description":"When the opening was created.","format":"date-time"},"updatedAt":{"type":"string","description":"When the opening was last updated.","format":"date-time"}},"required":["objective","organizationIds","id","slug","status","published","aligned","url","stats","createdAt","updatedAt"]},"PublishOpeningRequestDto":{"type":"object","properties":{"published":{"type":"boolean","description":"Publication control. Omission publishes the opening."},"skipAlignment":{"type":"boolean","description":"Omission omits the source query parameter. False enforces alignment. True bypasses only alignment. Source access checks still apply."}},"additionalProperties":false},"UpdateAttractionPreferences":{"type":"object","properties":{"revision":{"type":"number","minimum":0,"maximum":9007199254740991},"services":{"items":{"type":"string","enum":["torre-network","torre-reach-internal","torre-reach-external"]},"uniqueItems":true,"type":"array"},"applicationDestination":{"type":"string","enum":["torre","website"]},"externalApplicationUrl":{"type":"string","format":"uri","maxLength":2048}},"additionalProperties":false,"required":["revision"]},"ApplicantDisqualification":{"type":"object","properties":{"reason":{"type":"string","description":"The saved rule-out reason.","enum":["no_match","not_enough_experience","missing_required_skills","language","location","compensation_outside_budget","no_cultural_fit","incomplete_information","screening_answers","samples_dont_match","unresponsive","hired_another_candidate","offer_rejected","other"]},"feedback":{"type":"string","description":"The saved rule-out feedback, or null when none was recorded.","nullable":true,"maxLength":500}},"required":["reason","feedback"],"additionalProperties":false},"ApplicantContactInfo":{"type":"object","properties":{"email":{"type":"string","description":"The email visible to this account for this opening, or null when unavailable.","nullable":true,"format":"email","maxLength":120},"phone":{"type":"string","description":"The phone visible to this account for this opening, or null when unavailable.","nullable":true,"maxLength":30},"socialMedia":{"description":"Social profile addresses visible to the authenticated account for this opening. Empty when unavailable or not authorized.","type":"array","items":{"type":"string"}}},"description":"Contact information visible to this account for this opening. Reading does not purchase additional data.","required":["email","phone","socialMedia"],"additionalProperties":false},"Applicant":{"type":"object","properties":{"candidateId":{"type":"string","description":"The candidate's canonical Torre `ggId`."},"name":{"type":"string","description":"The applicant's displayed name.","maxLength":255},"professionalHeadline":{"type":"string","description":"The applicant's professional headline.","maxLength":240},"stageId":{"type":"string","description":"The applicant stage's opaque id, or `applicants` for the Applicants column."},"status":{"type":"string","description":"The application lifecycle status. It is separate from the pipeline stage and match decision.","enum":["invited","started","pre_screening","completed","pending_delivery","delivered","retracted","disqualified","in_touch","unset"]},"matchStatus":{"type":"string","description":"The saved match decision, separate from application status.","enum":["match","no_match","unknown"]},"matchScore":{"type":"number","description":"The match model’s numeric score, or null when unavailable. It is not a percentage or hiring probability.","nullable":true},"reviewedAt":{"type":"string","description":"When a review was recorded, or null when not reviewed.","nullable":true,"format":"date-time"},"stageEnteredAt":{"type":"string","description":"When the applicant last entered their current stage, in UTC. Null when no matching stage-transition history is available. Returning to a stage starts a new clock. Reordering an applicant within the same stage does not reset that clock. This is not the application or review date.","nullable":true,"format":"date-time","example":"2026-11-12T15:30:00Z"},"disqualification":{"type":"object","description":"The saved rule-out details, or null when none are present.","nullable":true,"additionalProperties":false,"properties":{"reason":{"type":"string","enum":["no_match","not_enough_experience","missing_required_skills","language","location","compensation_outside_budget","no_cultural_fit","incomplete_information","screening_answers","samples_dont_match","unresponsive","hired_another_candidate","offer_rejected","other"],"description":"The saved rule-out reason."},"feedback":{"type":"string","nullable":true,"maxLength":500,"description":"The saved rule-out feedback, or null when none was recorded."}},"required":["reason","feedback"]},"contactInfo":{"$ref":"#/components/schemas/ApplicantContactInfo"},"appliedAt":{"type":"string","description":"When the application was recorded, or null when unavailable.","nullable":true,"format":"date-time"}},"required":["candidateId","name","professionalHeadline","stageId","status","matchStatus","matchScore","reviewedAt","stageEnteredAt","disqualification","contactInfo","appliedAt"],"additionalProperties":false},"ApplicantList":{"type":"object","properties":{"data":{"description":"Applicants returned on this page.","type":"array","items":{"$ref":"#/components/schemas/Applicant"}},"pagination":{"description":"Continuation information for this page.","allOf":[{"$ref":"#/components/schemas/Pagination"}]}}},"ReviewApplicantRequest":{"type":"object","properties":{"verdict":{"type":"string","enum":["match","ruled_out"],"description":"`match` marks the applicant as a fit. `ruled_out` removes them from the process."},"reason":{"type":"string","description":"The rule-out reason. Required for a ruled_out verdict.","enum":["no_match","not_enough_experience","missing_required_skills","language","location","compensation_outside_budget","no_cultural_fit","incomplete_information","screening_answers","samples_dont_match","unresponsive","hired_another_candidate","offer_rejected","other"]},"feedback":{"type":"string","maxLength":500,"pattern":"^[\\s\\S]{0,500}$","description":"Optional feedback preserved exactly, without trimming."},"notifyApplicant":{"type":"boolean","default":false,"description":"Whether to notify the applicant when ruled out."}},"required":["verdict"],"additionalProperties":false},"UpdateApplicantRequest":{"type":"object","properties":{"stageId":{"type":"string","description":"The opaque id returned by the stages endpoint for the destination pipeline stage, including custom stages, or `applicants` to move the applicant back to Applicants.","minLength":1,"maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"},"status":{"type":"string","enum":["started","pre_screening","completed","delivered","retracted"],"description":"The new application status. This does not select a pipeline column. Supported values are `started`, `pre_screening`, `completed`, `delivered`, and `retracted`."}},"additionalProperties":false,"minProperties":1,"maxProperties":1},"AlignmentDto":{"type":"object","properties":{"aligned":{"type":"string","nullable":true,"format":"date-time","description":"When the opening was last confirmed aligned. Null if never aligned or cleared by a criteria change."},"status":{"type":"string","description":"The current alignment workflow state.","enum":["aligned","not_aligned"]}},"required":["aligned","status"]},"AlignmentFeedbackRequestDto":{"type":"object","properties":{"feedback":{"type":"string","description":"Natural-language guidance on what to change.","example":"Needs payments experience, not just backend.","maxLength":4000,"pattern":"^(?!.*[\\u0000-\\u001F\\u007F\\u200B])(?=.*\\S)[\\s\\S]+$"},"candidateId":{"type":"string","description":"The candidate you are reacting to is optional and is passed to the AI as context.","example":"c_a1B2c3D4"},"presentationToken":{"type":"string","description":"Required with a synthetic candidateId to persist that presented candidate as a no-match.","example":"v1.<opaque-presentation>.<signature>","maxLength":2048}},"required":["feedback"],"additionalProperties":false},"ScreeningQuestionOption":{"type":"object","properties":{"title":{"type":"string","description":"The option shown to applicants."},"purposeType":{"type":"string","enum":["qualifies","disqualifies"],"nullable":true,"description":"With `filter`, `qualifies` lets the applicant through and `disqualifies` rules them out. Null on some older options."}},"required":["title","purposeType"],"additionalProperties":false},"ScreeningQuestion":{"type":"object","properties":{"id":{"type":"string","description":"The opaque screening question id."},"type":{"type":"string","enum":["written","audio","video","yes-no","multiple-choice","checkboxes"],"description":"Open answers are `written`, `audio`, or `video`. `yes-no`, `multiple-choice` (one answer) and `checkboxes` (several answers) offer options."},"prompt":{"type":"string","description":"The screening question shown to applicants."},"purpose":{"type":"string","enum":["rank","filter","learn"],"description":"`rank` uses the answer as a ranking factor, `filter` automatically filters applicants with the options, and `learn` only learns more about applicants. Returned by the screening-question operations."},"options":{"description":"The answer options in their saved order, empty for open answers. Returned by the screening-question operations.","type":"array","items":{"$ref":"#/components/schemas/ScreeningQuestionOption"}}},"required":["id","type","prompt"],"additionalProperties":false},"RefineSearchResult":{"type":"object","properties":{"type":{"type":"string","description":"The refinement outcome. Read this before taking the next action.","enum":["changes","screening_question","changes_and_screening_question","discriminatory","unsupported"]},"opening":{"description":"The opening after this refinement step.","allOf":[{"$ref":"#/components/schemas/OpeningDto"}]},"screeningQuestions":{"description":"Questions that the source already created. Each question includes its saved id.","type":"array","items":{"$ref":"#/components/schemas/ScreeningQuestion"}},"message":{"type":"string","description":"The explanation or clarification returned for this refinement."}},"required":["type","screeningQuestions"]},"PersonSkill":{"type":"object","properties":{"name":{"type":"string","description":"The skill name."},"weight":{"type":"integer","description":"The skill weight recorded on the profile, not a proficiency tier."},"proficiency":{"type":"string","description":"The proficiency recorded for this skill, when available."}},"required":["name","weight"]},"PersonExperience":{"type":"object","properties":{"category":{"type":"string","description":"The type of profile experience.","enum":["jobs","education","projects","awards"]},"name":{"type":"string","description":"The title or name of this experience."},"organizationName":{"type":"string","description":"The organization associated with this experience."},"fromYear":{"type":"string","description":"The recorded start year."},"toYear":{"type":"string","description":"The recorded end year, when available."}},"required":["category","name"]},"PersonLanguage":{"type":"object","properties":{"code":{"type":"string","description":"The recorded language code."},"fluency":{"type":"string","description":"The recorded language fluency, when available."}},"required":["code"]},"AlignmentCandidate":{"type":"object","properties":{"candidateId":{"type":"string","description":"The identifier of this synthetic reference candidate."},"synthetic":{"type":"boolean","enum":[true],"description":"Always true for alignment candidates."},"professionalHeadline":{"type":"string","description":"The candidate's professional headline, when available.","nullable":true},"summary":{"type":"string","description":"The candidate's professional summary, when available.","nullable":true},"location":{"description":"The candidate's recorded location.","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"skills":{"description":"The candidate's skills presented for alignment.","type":"array","items":{"$ref":"#/components/schemas/PersonSkill"}},"experiences":{"description":"The candidate's profile experiences presented for alignment.","type":"array","items":{"$ref":"#/components/schemas/PersonExperience"}},"languages":{"description":"The candidate's recorded languages.","type":"array","items":{"$ref":"#/components/schemas/PersonLanguage"}}},"required":["candidateId","synthetic"]},"AlignmentCandidatePresentation":{"type":"object","properties":{"candidate":{"description":"The candidate presented for this alignment step.","allOf":[{"$ref":"#/components/schemas/AlignmentCandidate"}]},"presentationToken":{"type":"string","description":"Short-lived opaque proof that this candidate was generated for the current opening criteria."},"expiresAt":{"type":"string","description":"When this presentation expires and a new presentation must be requested.","format":"date-time"}},"required":["candidate","presentationToken","expiresAt"]},"ConfirmPresentedAlignmentRequest":{"type":"object","properties":{"candidateId":{"type":"string","description":"The synthetic candidate id returned by the presentation."},"presentationToken":{"type":"string","description":"The unmodified presentation token returned with the synthetic candidate.","maxLength":2048}},"required":["candidateId","presentationToken"],"additionalProperties":false},"ScreeningQuestionOptionInput":{"type":"object","properties":{"title":{"type":"string","maxLength":1024,"pattern":"^(?=[\\s\\S]*\\S)[\\s\\S]{1,1024}$","description":"A nonblank option limited to 1024 UTF-16 code units."},"purposeType":{"type":"string","enum":["qualifies","disqualifies"],"description":"With `filter`, `qualifies` lets the applicant through and `disqualifies` rules them out."}},"required":["title","purposeType"],"additionalProperties":false},"ScreeningQuestionInput":{"type":"object","properties":{"type":{"type":"string","enum":["written","audio","video","yes-no","multiple-choice","checkboxes"],"description":"Open answers are `written`, `audio`, or `video`. `yes-no`, `multiple-choice` (one answer) and `checkboxes` (several answers) offer options."},"prompt":{"type":"string","maxLength":1024,"pattern":"^(?=[\\s\\S]*\\S)[\\s\\S]{1,1024}$","description":"A nonblank prompt preserved exactly and limited to 1024 UTF-16 code units."},"purpose":{"type":"string","enum":["rank","filter","learn"],"description":"`rank` uses the answer as a ranking factor, `filter` automatically filters applicants with the options, and `learn` only learns more about applicants. Defaults to `learn`. Open answers accept `rank` or `learn`, `yes-no` and `multiple-choice` accept `filter` or `learn`, and `checkboxes` accept only `learn`."},"options":{"minItems":2,"description":"The answer options in order. Required for `multiple-choice` and `checkboxes`. `yes-no` takes exactly two and defaults to Yes (`qualifies`) and No (`disqualifies`). Open answers take none. With `filter`, include at least one `qualifies` and one `disqualifies` option.","type":"array","items":{"$ref":"#/components/schemas/ScreeningQuestionOptionInput"}}},"required":["type","prompt"],"additionalProperties":false},"ScreeningQuestionList":{"type":"object","properties":{"data":{"description":"The screening questions in their saved order.","type":"array","items":{"$ref":"#/components/schemas/ScreeningQuestion"}}},"required":["data"],"additionalProperties":false},"ReorderStagesRequest":{"type":"object","properties":{"stageIds":{"minItems":1,"uniqueItems":true,"description":"All of the opening's active stage ids, in the desired order.","example":["58W34nwN","oVroGMry","pVWY8erN","MVdLBJWe"],"type":"array","items":{"type":"string"}}},"required":["stageIds"],"additionalProperties":false},"Stage":{"type":"object","properties":{"id":{"type":"string","description":"The stage's opaque id.","example":"stage-interview"},"name":{"type":"string","description":"The stage name.","example":"Interview"},"order":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Position in the source pipeline.","example":20},"editable":{"type":"boolean","description":"Whether the stage can be modified."},"description":{"type":"string","nullable":true,"description":"The stage description, or null when none is configured."},"applicantCount":{"type":"integer","minimum":0,"maximum":2147483647,"description":"Number of applicants currently in the stage.","example":3}},"required":["id","name","order","editable","description","applicantCount"],"additionalProperties":false},"StageList":{"type":"object","properties":{"data":{"description":"Pipeline stages in source order.","type":"array","items":{"$ref":"#/components/schemas/Stage"}}},"required":["data"],"additionalProperties":false},"StageUpdateInput":{"type":"object","properties":{"name":{"type":"string","description":"Updated stage name. Omitted values preserve the current name.","maxLength":120,"pattern":"^[\\s\\S]{0,120}$"},"description":{"type":"string","description":"Updated stage description. Omitted values preserve the current description.","maxLength":1000,"pattern":"^[\\s\\S]{0,1000}$"}},"additionalProperties":false},"StageInput":{"type":"object","properties":{"name":{"type":"string","description":"The stage name.","minLength":1,"maxLength":120,"pattern":"^(?=[\\s\\S]*[^\\u0000-\\u0020])[\\s\\S]{1,120}$","example":"Technical interview"},"description":{"type":"string","description":"Optional stage description.","maxLength":1000,"pattern":"^[\\s\\S]{0,1000}$"}},"required":["name"],"additionalProperties":false},"Organization":{"type":"object","properties":{"id":{"type":"integer","minimum":1,"maximum":2147483647,"description":"Use this numeric id as organization_id when creating an opening.","example":123},"name":{"type":"string","description":"The organization's displayed name.","minLength":1,"example":"Acme"}},"additionalProperties":false,"required":["id","name"]},"OrganizationContext":{"type":"object","properties":{"title":{"type":"string","maxLength":120,"example":"Backend Engineer","description":"The job title."},"locations":{"type":"array","items":{"type":"string","maxLength":250},"maxItems":10,"example":["Bogotá, Colombia"],"description":"Where the job is based."},"description":{"type":"string","maxLength":10000,"description":"The job description."}},"additionalProperties":false},"CreateOrganizationInput":{"type":"object","properties":{"name":{"type":"string","description":"The name of the company.","maxLength":100,"pattern":"\\S","example":"Acme"},"website":{"type":"string","format":"uri","example":"https://acme.com","description":"Company website. Helps distinguish companies with similar names."},"links":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":10,"example":["https://www.linkedin.com/company/acme"],"description":"Other pages of the company, such as its LinkedIn page. They help find a company Torre already has."},"picture":{"type":"string","format":"uri","example":"https://acme.com/logo.png","description":"Company logo, used when Torre creates the company."},"context":{"description":"The job you are hiring for at this company. Torre uses it only to tell apart companies with similar names.","allOf":[{"$ref":"#/components/schemas/OrganizationContext"}]}},"additionalProperties":false,"required":["name"]},"MatchOrganizationInput":{"type":"object","properties":{"name":{"type":"string","description":"The name of the company.","maxLength":100,"pattern":"\\S","example":"Acme"},"website":{"type":"string","format":"uri","example":"https://acme.com","description":"Company website. Helps distinguish companies with similar names."},"links":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":10,"example":["https://www.linkedin.com/company/acme"],"description":"Other pages of the company, such as its LinkedIn page. They help find a company Torre already has."},"context":{"description":"The job you are hiring for at this company. Torre uses it only to tell apart companies with similar names.","allOf":[{"$ref":"#/components/schemas/OrganizationContext"}]}},"additionalProperties":false,"required":["name"]},"OrganizationMatch":{"type":"object","properties":{"organization":{"nullable":true,"description":"The company Torre already has, or null when Torre does not have it.","type":"object","allOf":[{"$ref":"#/components/schemas/Organization"}]}},"additionalProperties":false,"required":["organization"]},"CandidateSkill":{"type":"object","properties":{"name":{"type":"string","description":"The skill name."},"weight":{"type":"number","description":"The skill weight reported for this candidate, without rounding. A zero weight is valid and is not a proficiency tier."}},"required":["name","weight"]},"CandidatePreview":{"type":"object","properties":{"candidateId":{"type":"string","description":"The candidate's canonical Torre `ggId`."},"torrePro":{"type":"boolean","description":"Whether this person is a Torre Pro member."},"name":{"type":"string","description":"The candidate's displayed name, or null when unavailable.","nullable":true},"pictureThumbnail":{"type":"string","description":"The candidate's profile thumbnail URL, or null when unavailable.","nullable":true},"professionalHeadline":{"type":"string","description":"The candidate's professional headline, or null when unavailable.","nullable":true},"skills":{"description":"The skills included in this candidate preview.","type":"array","items":{"$ref":"#/components/schemas/CandidateSkill"}},"openTo":{"description":"The opportunities this candidate is open to.","type":"array","items":{"type":"string"}},"location":{"description":"The candidate's recorded location.","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"compensationBand":{"type":"string","description":"The reported compensation band, or null when unavailable.","nullable":true},"matchScore":{"type":"number","description":"The reported match score from 0 to 100, or null when no exact score is available. It is not a hiring probability.","nullable":true,"minimum":0,"maximum":100},"inYourDb":{"type":"boolean","description":"True when the opening has an application, invitation, or another known candidate state."}},"required":["candidateId","torrePro","name","pictureThumbnail","professionalHeadline","skills","openTo","location","compensationBand","matchScore","inYourDb"]},"ExternalSearchStatus":{"type":"object","properties":{"included":{"type":"boolean","description":"Whether this response includes external sourcing."},"status":{"type":"string","enum":["disabled","pending","in_progress","complete","failed"],"description":"Current status of the automatically selected external candidate search."}},"required":["included","status"]},"CandidateSearch":{"type":"object","properties":{"searchId":{"type":"string","description":"Opaque id minted for this search."},"data":{"description":"Candidate previews returned on this page.","type":"array","items":{"$ref":"#/components/schemas/CandidatePreview"}},"total":{"type":"integer","description":"The total reported for this search result."},"external":{"description":"The state of external sourcing for this search.","allOf":[{"$ref":"#/components/schemas/ExternalSearchStatus"}]},"page":{"type":"integer","description":"The current one-based page number.","minimum":1},"pageSize":{"type":"integer","description":"The requested page size.","minimum":1,"maximum":100},"hasMore":{"type":"boolean","description":"Whether more candidate results are available."},"nextCursor":{"type":"string","nullable":true,"description":"Opaque cursor for the next page of Torre candidates, or null when no further page is available."}},"required":["searchId","data","total","external","page","pageSize","hasMore"]},"CandidateSearchInput":{"type":"object","properties":{"openingId":{"type":"string","description":"The aligned opening whose requirements candidates are ranked against.","example":"8gQK2bWa","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$"},"skipAlignment":{"type":"boolean","deprecated":true,"default":false,"description":"Deprecated compatibility field. Alignment is always required and this value is ignored."},"includeExternal":{"type":"boolean","deprecated":true,"default":false,"description":"Deprecated compatibility field. Torre automatically uses external sources only for the first search after alignment."},"size":{"type":"integer","minimum":1,"maximum":100,"default":25,"description":"Requested first-page size."}},"required":["openingId"],"additionalProperties":false},"Person":{"type":"object","properties":{"candidateId":{"type":"string","description":"The candidate's canonical Torre `ggId`."},"name":{"type":"string","description":"The person's displayed name, or null when unavailable.","nullable":true},"pictureThumbnail":{"type":"string","description":"The profile thumbnail URL, when available.","nullable":true},"professionalHeadline":{"type":"string","description":"The person's professional headline, when available.","nullable":true},"verified":{"type":"boolean","description":"Whether the profile is marked verified."},"torrePro":{"type":"boolean","description":"Whether this person is a Torre Pro member."},"summary":{"type":"string","description":"The profile's professional summary, when available.","nullable":true},"location":{"description":"The location recorded on the profile.","allOf":[{"$ref":"#/components/schemas/LocationDto"}]},"skills":{"description":"The skills visible in this profile response.","type":"array","items":{"$ref":"#/components/schemas/PersonSkill"}},"experiences":{"description":"The visible job, education, project, and award entries.","type":"array","items":{"$ref":"#/components/schemas/PersonExperience"}},"languages":{"description":"The languages recorded on the profile.","type":"array","items":{"$ref":"#/components/schemas/PersonLanguage"}},"openTo":{"description":"The opportunities this person is open to.","type":"array","items":{"type":"string"}}},"required":["candidateId","name","verified","torrePro"]},"CommunityGenomeCreatedDto":{"type":"object","properties":{"candidateId":{"type":"string","description":"The candidate id for subsequent person and candidate requests.","example":"candidate_alex"}},"required":["candidateId"]},"CreateCommunityGenomeRequestDto":{"type":"object","properties":{"name":{"type":"string","description":"The person's name.","example":"Alex Morgan","maxLength":255,"pattern":"\\S"},"email":{"type":"string","description":"An email address is required when phone is absent.","example":"alex@example.com","format":"email","maxLength":150},"phone":{"type":"string","description":"A phone number in international E.164 format is required when email is absent.","example":"+573001234567","pattern":"^\\+[1-9][0-9]{4,14}$"}},"required":["name"],"anyOf":[{"required":["email"]},{"required":["phone"]}],"additionalProperties":false},"Outreach":{"type":"object","properties":{"id":{"type":"string","description":"The outreach's opaque id."},"candidateId":{"type":"string","description":"The candidate's canonical Torre `ggId`."},"openingId":{"type":"string","description":"The opening used for the Torre Headhunt pitch."},"status":{"type":"string","description":"The current outreach delivery state. A request acknowledgement is not a reply.","enum":["requested","contacted","replied","no_contact_found","failed"]},"charged":{"type":"number","description":"Amount charged in US dollars."},"refunded":{"type":"boolean","description":"Whether the charge was returned."},"balance":{"type":"number","description":"Remaining prepaid balance in US dollars."}},"additionalProperties":false,"required":["id","candidateId","openingId","status","charged","refunded","balance"]},"RequestOutreach":{"type":"object","properties":{"openingId":{"type":"string","description":"The opening Torre Headhunt uses for the pitch. It supplies the role's requirements.","example":"8gQK2bWa"},"instructions":{"type":"string","description":"Optional guidance for the outreach message."},"outcome":{"type":"string","description":"Choose an introduction or an invitation to apply. Omission defaults to invite_to_apply.","enum":["introduce","invite_to_apply"],"default":"invite_to_apply"},"maxPrice":{"type":"number","minimum":0,"default":0.4,"description":"Maximum pitch price in US dollars. If omitted, Torre uses a US$0.40 limit. A higher quote returns 409."}},"required":["openingId"],"additionalProperties":false},"Message":{"type":"object","properties":{"id":{"type":"string","description":"The message's opaque id."},"conversationId":{"type":"string","description":"The exact thread identifier, including its job context when present. Reuse as conversationId to reply, read history or change read status."},"candidateId":{"type":"string","description":"The candidate's canonical Torre `ggId`."},"openingId":{"type":"string","nullable":true,"description":"The opening this conversation is about."},"status":{"type":"string","description":"The current message delivery state. Sending a message does not guarantee a reply.","enum":["sent"]}},"required":["id","conversationId","candidateId","openingId","status"]},"MessageInput":{"type":"object","properties":{"openingId":{"type":"string","description":"Select the job conversation by opening ID. Do not combine with conversationId.","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$(?![\\s\\S])"},"conversationId":{"type":"string","description":"Copy conversationId from a reply webhook or message history to select that exact thread. Do not combine with openingId.","maxLength":115,"pattern":"^(?!\\.{1,2}(?:;|$))[A-Za-z0-9._~-]{1,50}(?:;opportunities=(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50})?(?![\\s\\S])"},"body":{"type":"string","minLength":1,"maxLength":4000,"pattern":"\\S","description":"The nonblank message body."}},"required":["body"],"additionalProperties":false,"oneOf":[{"required":["openingId"],"not":{"required":["conversationId"]}},{"required":["conversationId"],"not":{"required":["openingId"]}}]},"ConversationTopicDto":{"type":"object","properties":{"id":{"type":"string","description":"Topic identifier, as supplied by the reply webhook."},"name":{"type":"string","description":"Topic kind. Job conversations use opportunities."}},"required":["id","name"],"additionalProperties":false},"ConversationAttachmentDto":{"type":"object","properties":{"id":{"type":"string","description":"Attachment identifier."},"name":{"type":"string","description":"Original file name."},"url":{"type":"string","description":"Authorized attachment URL returned by Torre.","format":"uri"},"type":{"type":"string","description":"Attachment media type."},"size":{"type":"number","description":"File size in bytes.","minimum":0}},"required":["id","name","url","type","size"],"additionalProperties":false},"ConversationMessageDto":{"type":"object","properties":{"id":{"type":"string","description":"Message identifier. Matches messageId in a reply webhook."},"type":{"type":"string","description":"Message kind. Use type together with id as the stable identity.","enum":["message","external_message"]},"conversationId":{"type":"string","description":"Conversation identifier."},"senderId":{"type":"string","description":"Sender canonical Torre ggId."},"recipientIds":{"description":"Recipient canonical Torre ggIds.","type":"array","items":{"type":"string"}},"body":{"type":"string","description":"Message text. Null for an attachment-only or deleted message.","nullable":true},"createdAt":{"type":"string","description":"Creation time in UTC. Precision is preserved.","format":"date-time"},"deletedAt":{"type":"string","description":"Deletion time, when deleted. Deleted text is never returned.","nullable":true,"format":"date-time"},"source":{"type":"string","description":"Delivery channel reported by Torre."},"topic":{"description":"Conversation context, matching the webhook topic.","allOf":[{"$ref":"#/components/schemas/ConversationTopicDto"}]},"attachment":{"description":"Attachment metadata, when present. Deleted messages do not expose attachments.","allOf":[{"$ref":"#/components/schemas/ConversationAttachmentDto"}]}},"required":["id","type","conversationId","senderId","recipientIds","body","createdAt","deletedAt"],"additionalProperties":false},"ConversationPaginationDto":{"type":"object","properties":{"next_cursor":{"type":"string","description":"Pass this value as cursor to read older messages. Null means there are no more accessible messages.","nullable":true},"has_more":{"type":"boolean","description":"True when an older page remains."}},"required":["next_cursor","has_more"],"additionalProperties":false},"ConversationMessagesDto":{"type":"object","properties":{"data":{"description":"Sent and received messages, newest first.","type":"array","items":{"$ref":"#/components/schemas/ConversationMessageDto"}},"pagination":{"description":"Continue until next_cursor is null to read the complete accessible history.","allOf":[{"$ref":"#/components/schemas/ConversationPaginationDto"}]}},"required":["data","pagination"],"additionalProperties":false},"ConversationReadStatusInput":{"type":"object","properties":{"openingId":{"type":"string","description":"Select the job conversation by opening ID. Do not combine with conversationId.","maxLength":50,"pattern":"^(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50}$(?![\\s\\S])"},"conversationId":{"type":"string","description":"Copy conversationId from a reply webhook or message history to select that exact thread. Do not combine with openingId.","maxLength":115,"pattern":"^(?!\\.{1,2}(?:;|$))[A-Za-z0-9._~-]{1,50}(?:;opportunities=(?!\\.{1,2}$)[A-Za-z0-9._~-]{1,50})?(?![\\s\\S])"},"read":{"type":"boolean","description":"Send true to mark the conversation as read, or false to mark it as unread."}},"required":["read"],"additionalProperties":false,"not":{"required":["openingId","conversationId"]}},"PrepareOutreach":{"type":"object","properties":{"openingId":{"type":"string","description":"The opening Torre Headhunt uses for the pitch. It supplies the role's requirements.","example":"8gQK2bWa"},"instructions":{"type":"string","description":"Optional guidance for the outreach message."},"outcome":{"type":"string","description":"Choose an introduction or an invitation to apply. Omission defaults to invite_to_apply.","enum":["introduce","invite_to_apply"],"default":"invite_to_apply"}},"required":["openingId"],"additionalProperties":false},"OutreachQuote":{"type":"object","properties":{"costState":{"type":"string","enum":["free","charged","balance-too-low"],"description":"Current pricing decision. A saved outreach quote is candidate-specific. The charged state means delivery has a price. A quote never charges."},"price":{"type":"number","minimum":0,"description":"Current effective price in USD."},"unitPrice":{"type":"number","minimum":0,"description":"Price in USD when no free allowance applies."},"balance":{"type":"number","minimum":0,"description":"Current prepaid balance in USD."},"freeAllowance":{"type":"integer","description":"The number of free outreaches allowed by the current pricing policy.","minimum":0},"freeRemaining":{"type":"integer","description":"The number of free outreaches still available.","minimum":0}},"required":["costState","price","unitPrice","balance","freeAllowance","freeRemaining"]},"PreparedOutreach":{"type":"object","properties":{"id":{"type":"string","description":"Saved outreach id used for quoting, confirmation, and status polling."},"candidateId":{"type":"string","description":"The candidate's canonical Torre ggId."},"openingId":{"type":"string","description":"The opening used for this outreach."},"message":{"type":"string","description":"Saved message to review before confirming delivery."},"outcome":{"type":"string","description":"The intended outreach outcome.","enum":["introduce","invite_to_apply"]},"status":{"type":"string","description":"The saved outreach state. A draft has not been sent.","enum":["draft","requested","contacted","replied","no_contact_found","failed"]},"quote":{"description":"The current quote. Reading a quote does not send or charge for outreach.","allOf":[{"$ref":"#/components/schemas/OutreachQuote"}]}},"required":["id","candidateId","openingId","message","outcome","status","quote"]},"ConfirmOutreach":{"type":"object","properties":{"maxPrice":{"type":"number","minimum":0,"example":0.4,"description":"Maximum approved price in USD. Use 0 to approve only free outreach."}},"required":["maxPrice"],"additionalProperties":false},"TopUp":{"type":"object","properties":{"checkoutUrl":{"type":"string","description":"Open this URL to complete payment. Receiving a checkout URL does not add credits."}},"additionalProperties":false,"required":["checkoutUrl"]},"UsageRecord":{"type":"object","properties":{"id":{"type":"string","description":"The opaque ledger entry id."},"type":{"type":"string","description":"The ledger entry category.","enum":["spend","top_up","refund"]},"amount":{"type":"number","description":"Amount in US dollars."},"action":{"type":"string","description":"The action associated with this ledger entry.","enum":["emma_outreach","reach","top_up","refund"]},"candidateId":{"type":"string","description":"The related candidate's canonical Torre ggId, or null when not applicable.","nullable":true},"openingId":{"type":"string","description":"The related opening id, or null when not applicable.","nullable":true},"createdAt":{"type":"string","description":"When the ledger entry was recorded.","format":"date-time"}}},"UsageList":{"type":"object","properties":{"data":{"description":"Ledger entries returned on this page.","type":"array","items":{"$ref":"#/components/schemas/UsageRecord"}},"pagination":{"description":"Continuation information for this page.","allOf":[{"$ref":"#/components/schemas/Pagination"}]}}},"Balance":{"type":"object","properties":{"balance":{"type":"number","minimum":0,"description":"Your prepaid balance, in US dollars."},"currency":{"type":"string","enum":["USD"],"description":"Currency of the balance. Always USD."}},"required":["balance","currency"]},"AutoReload":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Whether automatic credit reload is enabled."},"threshold":{"type":"number","nullable":true,"description":"Top up when the balance falls below this (US dollars)."},"reloadAmount":{"type":"number","nullable":true,"description":"How much to add on each reload (US dollars)."},"monthlyCap":{"type":"number","nullable":true,"description":"Maximum auto-reload spend per month (US dollars)."},"enableUrl":{"type":"string","description":"Where the account owner can enable/configure auto-reload."}}},"TopUpInput":{"type":"object","properties":{"amountCents":{"type":"integer","description":"The prepaid balance amount to add, in US cents.","minimum":500,"maximum":500000,"example":2500}},"additionalProperties":false,"required":["amountCents"]},"WebhookEndpointInput":{"type":"object","properties":{"url":{"type":"string","description":"The public HTTPS URL that receives signed event deliveries.","format":"uri"},"events":{"type":"array","description":"The business event types to deliver to this endpoint. API request history is not a webhook subscription.","items":{"$ref":"#/components/schemas/EventType"}}},"description":"Public HTTPS destination and the business events it subscribes to.","required":["url","events"]},"WebhookEndpoint":{"description":"Account-owned webhook destination. The signing secret is returned only at creation.","allOf":[{"$ref":"#/components/schemas/WebhookEndpointInput"},{"type":"object","required":["id","secret","createdAt"],"properties":{"id":{"type":"string","description":"The opaque webhook endpoint id."},"secret":{"type":"string","nullable":true,"description":"Signing secret, returned only at creation. Verify the Torre-Signature header with it."},"createdAt":{"type":"string","format":"date-time","description":"When the webhook endpoint was created."}}}]},"Reach":{"type":"object","properties":{"services":{"items":{"type":"string","enum":["torre-reach-internal","torre-reach-external"]},"type":"array"},"serviceEndDates":{"type":"object","additionalProperties":false,"properties":{"torre-reach-internal":{"type":"string","format":"date","nullable":true},"torre-reach-external":{"type":"string","format":"date","nullable":true}}},"openingId":{"type":"string","description":"The id of the sponsored opening."},"status":{"type":"string","description":"The current Torre Reach sponsorship state.","enum":["active","stopped"]},"dailyBudget":{"type":"number","minimum":0,"description":"Total configured daily amount in US dollars, including internal sponsorship when selected. Explicit activation requests use dailyBudget for the external portion only. Public active status can represent unified prepaid or external billing."},"endsAt":{"type":"string","description":"The sponsorship end date, or null when no end date is set.","nullable":true,"format":"date"},"spentToDate":{"type":"number","minimum":0,"description":"Total (US dollars) spent on this sponsorship so far."},"startedAt":{"type":"string","description":"When this sponsorship started.","format":"date-time"}},"required":["openingId","status","dailyBudget","endsAt","spentToDate","startedAt"],"additionalProperties":false},"ReachInput":{"type":"object","properties":{"dailyBudget":{"type":"number","minimum":1,"maximum":9999999.99,"multipleOf":0.01,"description":"Amount (US dollars) to spend per day from your prepaid balance, with at most two decimal places."},"endsAt":{"type":"string","format":"date","description":"Last day Torre Reach is active."}},"required":["dailyBudget"],"additionalProperties":false},"ReachSelectionInput":{"type":"object","properties":{"endsAt":{"type":"string","format":"date","description":"Last day Torre Reach is active."},"services":{"items":{"type":"string","enum":["torre-reach-internal","torre-reach-external"]},"minItems":1,"uniqueItems":true,"type":"array"},"dailyBudget":{"type":"number","minimum":0,"maximum":9999999.99,"multipleOf":0.01,"description":"External distribution budget in US dollars. Required for external distribution. Omit or use zero for internal sponsorship alone."}},"additionalProperties":false,"anyOf":[{"properties":{"services":{"enum":[["torre-reach-internal"]]},"dailyBudget":{"enum":[0]}}},{"required":["dailyBudget"],"properties":{"services":{"enum":[["torre-reach-external"],["torre-reach-internal","torre-reach-external"],["torre-reach-external","torre-reach-internal"]]},"dailyBudget":{"minimum":1}}}],"required":["services"]},"ReachQuote":{"type":"object","properties":{"services":{"items":{"type":"string","enum":["torre-reach-internal","torre-reach-external"]},"type":"array"},"dailyBudget":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."},"internalDailyPrice":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."},"dailyTotal":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."},"amountDueNow":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."},"balance":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."},"decision":{"type":"string","enum":["ready","insufficient_balance","restart_required"]},"endsAt":{"type":"string","format":"date","nullable":true}},"required":["services","dailyBudget","internalDailyPrice","dailyTotal","amountDueNow","balance","decision"]},"StopReachResponse":{"type":"object","properties":{"openingId":{"type":"string","description":"The id of the opening whose sponsorship was stopped."},"status":{"type":"string","description":"The sponsorship stop acknowledgement.","enum":["stopped"]}},"required":["openingId","status"],"additionalProperties":false},"AttractionOption":{"type":"object","properties":{"id":{"type":"string","enum":["torre-network","torre-reach-internal","torre-reach-external","torre-sourcing","torre-headhunt"]},"group":{"type":"string","enum":["active","passive"]},"available":{"type":"boolean"},"pricingModel":{"type":"string","enum":["free","daily","daily_budget","unavailable"]},"dailyPrice":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."},"minimumDailyBudget":{"type":"number","minimum":0,"multipleOf":0.01,"description":"Amount in USD, with at most two decimal places. Billing calculates amounts in cents. This response does not round them."}},"required":["id","group","available","pricingModel"]},"AttractionOptions":{"type":"object","properties":{"options":{"type":"array","items":{"$ref":"#/components/schemas/AttractionOption"}}},"required":["options"]},"EventHistoryType":{"type":"string","description":"Account event type. API request entries are history-only, not webhook subscriptions.","enum":["message.replied","candidate.applied","candidate.search.completed","candidate.search.failed","api.request"]},"Event":{"type":"object","description":"Immutable account event. Business events can be delivered to subscribed webhook endpoints. API request entries are history-only.","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string","description":"The opaque event id. Use it to deduplicate webhook deliveries."},"type":{"$ref":"#/components/schemas/EventHistoryType"},"createdAt":{"type":"string","format":"date-time","description":"When the event was recorded."},"data":{"type":"object","additionalProperties":true,"description":"The event payload. Its fields depend on the event type. New message.replied events include candidateId, messageId and conversationId. Copy the complete conversationId to read or reply in the same thread. Job replies also include openingId and topic. Older events can lack conversationId.","properties":{"conversationId":{"type":"string","description":"The complete thread ID for a message.replied event. Copy it unchanged when reading or replying. Older events can omit it.","example":"room_a1B2c3D4;opportunities=8gQK2bWa"}}}}},"EventPagination":{"type":"object","required":["next_cursor","has_more"],"properties":{"next_cursor":{"type":"string","nullable":true,"description":"Pass as `cursor` to fetch the next page. Null when there are no more."},"has_more":{"type":"boolean","description":"Whether another event-history page is available."}}},"EventList":{"type":"object","description":"Newest-first page of events owned by the authenticated Torre account.","required":["data","pagination"],"properties":{"data":{"type":"array","description":"Events in newest-first order.","items":{"$ref":"#/components/schemas/Event"}},"pagination":{"$ref":"#/components/schemas/EventPagination"}}},"EventType":{"type":"string","description":"Business event that can be stored in event history and delivered to subscribed webhook endpoints.","enum":["message.replied","candidate.applied","candidate.search.completed","candidate.search.failed"]},"WebhookEvent":{"type":"object","description":"Immutable business event delivered to a subscribed webhook endpoint.","required":["id","type","createdAt","data"],"properties":{"id":{"type":"string","description":"The opaque event id. Use it to deduplicate webhook deliveries."},"type":{"$ref":"#/components/schemas/EventType"},"createdAt":{"type":"string","format":"date-time","description":"When the event was recorded."},"data":{"type":"object","additionalProperties":true,"description":"The event payload. Its fields depend on the event type. New message.replied events include candidateId, messageId and conversationId. Copy the complete conversationId to read or reply in the same thread. Job replies also include openingId and topic. Older events can lack conversationId.","properties":{"conversationId":{"type":"string","description":"The complete thread ID for a message.replied event. Copy it unchanged when reading or replying. Older events can omit it.","example":"room_a1B2c3D4;opportunities=8gQK2bWa"}}}}}}},"webhooks":{"message.replied":{"post":{"operationId":"onMessageReplied","summary":"Receive message.replied","parameters":[{"name":"Torre-Event-Id","in":"header","required":true,"description":"The event id in the request body. Use it to deduplicate deliveries.","schema":{"type":"string"}},{"name":"Torre-Signature","in":"header","required":true,"description":"The value is `t=<unix-seconds>,v1=<hex-digest>`. The digest is HMAC-SHA-256 over `<t>.<raw-body>` with the endpoint secret.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"event_a1B2c3D4","type":"message.replied","createdAt":"2026-09-14T16:30:00.000Z","data":{"openingId":"8gQK2bWa","candidateId":"c_a1B2c3D4","messageId":"message_a1B2c3D4","conversationId":"room_a1B2c3D4;opportunities=8gQK2bWa","topic":{"id":"8gQK2bWa","name":"opportunities"}}}}}},"responses":{"2XX":{"description":"Acknowledge the event."}},"description":"Torre sends this callback after an account-owned `message.replied` event is persisted.\n\n### Use cases\n\nRead or reply in the same thread using `data.candidateId` and the complete `data.conversationId`, including any job context. Send `POST /v1/candidates/{candidateId}/messages` with `{\"body\":\"Your reply\",\"conversationId\":\"CONVERSATION_ID\"}`. Do not also send `openingId`. Job replies also include `data.openingId` and `data.topic`. Older events can lack `conversationId`. Use their `openingId` or select the exact thread from message history before replying.\n\n### State and side effects\n\nThe event is immutable. Return any `2xx` status only after accepting it. Use `Torre-Event-Id` for deduplication and verify `Torre-Signature` against the raw body.\n\n### Example delivery\n\n```bash\ncurl --request POST \\\n  --url 'https://example.com/torre-webhooks' \\\n  --header 'Torre-Event-Id: event_a1B2c3D4' \\\n  --header 'Torre-Signature: t=1789403400,v1=<hex-digest>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"id\":\"event_a1B2c3D4\",\"type\":\"message.replied\",\"createdAt\":\"2026-09-14T16:30:00.000Z\",\"data\":{\"openingId\":\"8gQK2bWa\",\"candidateId\":\"c_a1B2c3D4\",\"messageId\":\"message_a1B2c3D4\",\"conversationId\":\"room_a1B2c3D4;opportunities=8gQK2bWa\",\"topic\":{\"id\":\"8gQK2bWa\",\"name\":\"opportunities\"}}}'\n```\n\n### Expected response\n\nReturn `2xx` with no required response body. Non-`2xx` responses are retried by the delivery worker."}},"candidate.applied":{"post":{"operationId":"onCandidateApplied","summary":"Receive candidate.applied","parameters":[{"name":"Torre-Event-Id","in":"header","required":true,"description":"The event id in the request body. Use it to deduplicate deliveries.","schema":{"type":"string"}},{"name":"Torre-Signature","in":"header","required":true,"description":"The value is `t=<unix-seconds>,v1=<hex-digest>`. The digest is HMAC-SHA-256 over `<t>.<raw-body>` with the endpoint secret.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"event_candidate_a1B2c3D4","type":"candidate.applied","createdAt":"2026-09-14T16:30:00.000Z","data":{"openingId":"8gQK2bWa","candidateId":"c_a1B2c3D4"}}}}},"responses":{"2XX":{"description":"Acknowledge the event."}},"description":"Torre sends this callback after an account-owned `candidate.applied` event is persisted.\n\n### Use cases\n\nSynchronize an external applicant tracking system when a candidate submits an application to an owned opening. For new events, `createdAt` is the submission time, even when the application is still pending delivery. Contact details can remain hidden until delivery.\n\n### State and side effects\n\nThe event is immutable. Return any `2xx` status only after accepting it. Use `Torre-Event-Id` for deduplication and verify `Torre-Signature` against the raw body.\n\n### Example delivery\n\n```bash\ncurl --request POST \\\n  --url 'https://example.com/torre-webhooks' \\\n  --header 'Torre-Event-Id: event_candidate_a1B2c3D4' \\\n  --header 'Torre-Signature: t=1789403400,v1=<hex-digest>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"id\":\"event_candidate_a1B2c3D4\",\"type\":\"candidate.applied\",\"createdAt\":\"2026-09-14T16:30:00.000Z\",\"data\":{\"openingId\":\"8gQK2bWa\",\"candidateId\":\"c_a1B2c3D4\"}}'\n```\n\n### Expected response\n\nReturn `2xx` with no required response body. Non-`2xx` responses are retried by the delivery worker."}},"candidate.search.completed":{"post":{"operationId":"onCandidateSearchCompleted","summary":"Receive candidate.search.completed","parameters":[{"name":"Torre-Event-Id","in":"header","required":true,"description":"The event id in the request body. Use it to deduplicate deliveries.","schema":{"type":"string"}},{"name":"Torre-Signature","in":"header","required":true,"description":"The value is `t=<unix-seconds>,v1=<hex-digest>`. The digest is HMAC-SHA-256 over `<t>.<raw-body>` with the endpoint secret.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"event_search_a1B2c3D4","type":"candidate.search.completed","createdAt":"2026-09-14T16:30:00.000Z","data":{"openingId":"8gQK2bWa","searchId":"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9"}}}}},"responses":{"2XX":{"description":"Acknowledge the event."}},"description":"Torre sends this callback after an account-owned `candidate.search.completed` event is persisted.\n\n### Use cases\n\nFetch the final candidate page when an external candidate search completes.\n\n### State and side effects\n\nThe event is immutable. Return any `2xx` status only after accepting it. Use `Torre-Event-Id` for deduplication and verify `Torre-Signature` against the raw body.\n\n### Example delivery\n\n```bash\ncurl --request POST \\\n  --url 'https://example.com/torre-webhooks' \\\n  --header 'Torre-Event-Id: event_search_a1B2c3D4' \\\n  --header 'Torre-Signature: t=1789403400,v1=<hex-digest>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"id\":\"event_search_a1B2c3D4\",\"type\":\"candidate.search.completed\",\"createdAt\":\"2026-09-14T16:30:00.000Z\",\"data\":{\"openingId\":\"8gQK2bWa\",\"searchId\":\"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9\"}}'\n```\n\n### Expected response\n\nReturn `2xx` with no required response body. Non-`2xx` responses are retried by the delivery worker."}},"candidate.search.failed":{"post":{"operationId":"onCandidateSearchFailed","summary":"Receive candidate.search.failed","parameters":[{"name":"Torre-Event-Id","in":"header","required":true,"description":"The event id in the request body. Use it to deduplicate deliveries.","schema":{"type":"string"}},{"name":"Torre-Signature","in":"header","required":true,"description":"The value is `t=<unix-seconds>,v1=<hex-digest>`. The digest is HMAC-SHA-256 over `<t>.<raw-body>` with the endpoint secret.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"},"example":{"id":"event_search_failure_a1B2c3D4","type":"candidate.search.failed","createdAt":"2026-09-14T16:30:00.000Z","data":{"openingId":"8gQK2bWa","searchId":"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9"}}}}},"responses":{"2XX":{"description":"Acknowledge the event."}},"description":"Torre sends this callback after an account-owned `candidate.search.failed` event is persisted.\n\n### Use cases\n\nStop polling and surface a recoverable search failure when external sourcing cannot complete.\n\n### State and side effects\n\nThe event is immutable. Return any `2xx` status only after accepting it. Use `Torre-Event-Id` for deduplication and verify `Torre-Signature` against the raw body.\n\n### Example delivery\n\n```bash\ncurl --request POST \\\n  --url 'https://example.com/torre-webhooks' \\\n  --header 'Torre-Event-Id: event_search_failure_a1B2c3D4' \\\n  --header 'Torre-Signature: t=1789403400,v1=<hex-digest>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"id\":\"event_search_failure_a1B2c3D4\",\"type\":\"candidate.search.failed\",\"createdAt\":\"2026-09-14T16:30:00.000Z\",\"data\":{\"openingId\":\"8gQK2bWa\",\"searchId\":\"cs_eyJvIjoiOGdRSzJiV2EiLCJ3IjoxMjN9\"}}'\n```\n\n### Expected response\n\nReturn `2xx` with no required response body. Non-`2xx` responses are retried by the delivery worker."}}}}