Skip to Content
InvyteDocs

Open an email thread

The email thread with a candidate about a Job (jobId + personKey) or with one of a Client's contacts (clientId + clientContactId), opened on first use: its state, its latest messages and whether a message can be sent now. A candidate thread opens only for an applicant or someone whose request for the Job is still open; nobody is cold-emailed. Replies arrive on the thread.

POST
/operations/correspondence.thread

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/correspondence.thread' \  -H 'Content-Type: application/json' \  -d '{  "input": {}}'
Example Response
{  "status": "done",  "output": {    "threadId": "string",    "jobId": "string",    "personKey": "string",    "clientId": "string",    "clientContactId": "string",    "memberUserId": "string",    "subject": "string",    "state": "new",    "lastOutboundAt": "2019-08-24T14:15:22Z",    "lastInboundAt": "2019-08-24T14:15:22Z",    "contact": {      "kind": "application",      "reason": "opted_out"    },    "messages": [      {        "id": "string",        "direction": "outbound",        "subject": "string",        "body": "string",        "authorUserId": "string",        "sentAt": "2019-08-24T14:15:22Z",        "receivedAt": "2019-08-24T14:15:22Z",        "autoReply": true,        "fromRecipient": true,        "createdAt": "2019-08-24T14:15:22Z"      }    ]  },  "actionId": "string"}