{
 "openapi": "3.1.0",
 "info": {
  "title": "Candidate Summaries (Talent & Contingent Workforce)",
  "version": "20261030b",
  "description": "Forty words a recruiter could read aloud to a client, the fit against a specific requirement, and the concerns named. Every one is attributed — which model, which prompt version, when — because a summary is a claim about a person."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "candidate-summaries": {
    "type": "object",
    "required": [
     "summary"
    ],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "candidate_id": {
      "type": "string",
      "format": "uuid",
      "description": "Candidate id",
      "readOnly": true
     },
     "job_order_id": {
      "type": "string",
      "format": "uuid",
      "description": "Job order id",
      "readOnly": true
     },
     "document_id": {
      "type": "string",
      "format": "uuid",
      "description": "Document id",
      "readOnly": true
     },
     "headline": {
      "type": "string",
      "description": "Headline"
     },
     "headline_local": {
      "type": "string",
      "description": "Local headline"
     },
     "summary": {
      "type": "string",
      "description": "Summary"
     },
     "summary_local": {
      "type": "string",
      "description": "Local summary"
     },
     "years_experience": {
      "type": "string",
      "format": "decimal",
      "description": "Years experience",
      "readOnly": true
     },
     "current_title": {
      "type": "string",
      "description": "Current title",
      "readOnly": true
     },
     "current_employer": {
      "type": "string",
      "description": "Current employer",
      "readOnly": true
     },
     "top_skills": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Top skills",
      "readOnly": true
     },
     "certifications": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Certifications",
      "readOnly": true
     },
     "education": {
      "type": "string",
      "description": "Education",
      "readOnly": true
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Languages",
      "readOnly": true
     },
     "fit_score": {
      "type": "string",
      "format": "decimal",
      "description": "Fit score",
      "readOnly": true
     },
     "fit_reasoning": {
      "type": "string",
      "description": "Why that score"
     },
     "fit_reasoning_local": {
      "type": "string",
      "description": "Local reasoning"
     },
     "strengths": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Strengths"
     },
     "concerns": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Concerns"
     },
     "concerns_local": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "Local concerns"
     },
     "work_authorization_note": {
      "type": "string",
      "description": "Right to work"
     },
     "cannot_start_reason": {
      "type": "string",
      "description": "Cannot start reason",
      "readOnly": true
     },
     "source": {
      "type": "string",
      "description": "Source",
      "readOnly": true
     },
     "provider": {
      "type": "string",
      "description": "Provider",
      "readOnly": true
     },
     "model": {
      "type": "string",
      "description": "Model",
      "readOnly": true
     },
     "prompt_version": {
      "type": "integer",
      "description": "Prompt version",
      "readOnly": true
     },
     "agent_run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Agent run id",
      "readOnly": true
     },
     "tokens": {
      "type": "integer",
      "description": "Tokens",
      "readOnly": true
     },
     "cost": {
      "type": "string",
      "format": "decimal",
      "description": "Cost",
      "readOnly": true
     },
     "edited_by": {
      "type": "string",
      "format": "uuid",
      "description": "Edited by",
      "readOnly": true
     },
     "edited_at": {
      "type": "string",
      "format": "date-time",
      "description": "Edited at",
      "readOnly": true
     },
     "is_current": {
      "type": "boolean",
      "description": "Is current",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/ats/candidate-summaries": {
   "get": {
    "summary": "list candidate-summaries",
    "operationId": "list_candidate_summaries_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create candidate-summaries",
    "operationId": "create_candidate_summaries_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/candidate-summaries/{id}": {
   "get": {
    "summary": "get candidate-summaries",
    "operationId": "get_candidate_summaries_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change candidate-summaries",
    "operationId": "change_candidate_summaries_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete candidate-summaries",
    "operationId": "delete_candidate_summaries_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/ats/candidate-summaries/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_candidate_summaries_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}