Skip to Content
InvyteDocs

View a Job draft

See a Job that is still being written: everything it says so far, its revision for `jobs.saveDraft`, the step of Job creation its author reached, and the workflow being prepared for it.

POST
/operations/jobs.getDraft

Authorization

bearer
headerAuthorizationBearer <API key or OAuth token>

An organization API key (ink_live_…, ADR-0124), or the OAuth access token a person's AI client gets from the Recruiter MCP sign-in. Only the Authorization header is accepted.

Header Parameters

Idempotency-Key?string

Makes a write safe to repeat: the same key and input return the first result. Required for agents' writes and for anything a person confirms.

Match^[A-Za-z0-9._:-]+$
Length8 <= length <= 128

Request Body

application/json
  1. body
input*
confirmation?string

The id from a confirm or awaiting_approval Outcome, sent with the same input and key to go ahead.

Response Body

Done. A replay of the same key and input omits output.

application/json
  1. response
status*unknown
output?
actionId*string
Example Request
curl -X POST 'https://www.invyte.ai/api/recruiter/v1/operations/jobs.getDraft' \  -H 'Content-Type: application/json' \  -d '{  "input": {    "jobId": "string"  }}'
Example Response
{  "status": "done",  "output": {    "job": {      "id": "string",      "title": "string",      "department": "string",      "location": "string",      "status": "string",      "client": {        "id": "string",        "name": "string"      },      "applicationCount": 0,      "agentModes": {        "write": "string",        "outside": "string"      },      "description": "string",      "clientConfidential": true,      "employmentType": "string",      "workMode": "string",      "locations": [        "string"      ],      "skillsRequired": [        "string"      ],      "criteria": [        {          "kind": "RESPONSIBILITY",          "text": "string",          "dealbreaker": true        }      ],      "experienceRequired": "string",      "experienceMinYears": -9007199254740991,      "experienceMaxYears": -9007199254740991,      "educationRequired": "string",      "companyName": "string",      "companyDescription": "string",      "companyWebsite": "string",      "salaryMin": -9007199254740991,      "salaryMax": -9007199254740991,      "salaryCurrency": "string",      "salaryPeriod": "string",      "hideSalary": true,      "jobAiPersona": "ai_builder",      "featured": true,      "urgent": true,      "createdAt": "2019-08-24T14:15:22Z",      "publishedAt": "2019-08-24T14:15:22Z",      "applicationDeadline": "2019-08-24T14:15:22Z",      "publication": {        "publishedAt": "2019-08-24T14:15:22Z",        "expiresAt": "2019-08-24T14:15:22Z",        "applicationDeadline": "2019-08-24T14:15:22Z",        "acceptingApplications": true,        "listOnGoogle": true      },      "sourcing": {        "revision": -9007199254740991,        "externalDiscoveryEnabled": true,        "yourTalentHubEnabled": true,        "globalTalentHubEnabled": true,        "invitationMode": "string",        "criteria": [          {            "text": "string",            "required": true          }        ],        "enrichments": [          "EMAIL"        ]      }    },    "draftRevision": 0,    "progress": {      "lastActiveStep": "string",      "furthestReachedStep": "string",      "updatedAt": "2019-08-24T14:15:22Z"    },    "workflowDraft": {      "id": "string",      "name": "string",      "description": "string",      "revision": -9007199254740991,      "sourceTemplateId": "string",      "sourceTemplateName": "string",      "updatedAt": "2019-08-24T14:15:22Z"    }  },  "actionId": "string"}