Contacting candidates
Messaging an applicant is free. Use an accessible application to contact the person; a public profile alone does not grant permission to send an applicant message.
Applicant messages
Use POST /candidates/{candidateId}/messages only for an applicant that you can access.
Send exactly one of openingId or conversationId. Use openingId to keep the message in that job conversation. To reply to a webhook, copy its complete conversationId, including any job suffix. Torre never guesses the destination. Missing or conflicting selectors return 422 before sending.
After you approve the message, send it using IDs from an opening and applicant you can access:
curl -X POST "https://api.torre.ai/v1/candidates/$CANDIDATE_ID/messages" \
-H "Authorization: Bearer $TORRE_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"openingId\":\"$OPENING_ID\",\"body\":\"Hi, are you available for an interview next week?\"}"
Store the returned message and conversation IDs. Sending this request contacts a real person; do not use it to test connectivity.
To reply in the exact conversation from a message.replied webhook, set CONVERSATION_ID to its data.conversationId and send:
curl -X POST "https://api.torre.ai/v1/candidates/$CANDIDATE_ID/messages" \
-H "Authorization: Bearer $TORRE_API_KEY" \
-H "Content-Type: application/json" \
-d "{\"conversationId\":\"$CONVERSATION_ID\",\"body\":\"Thanks for your reply. Does Tuesday work for you?\"}"
An ID with a job suffix selects that job thread. A bare room ID selects the direct conversation. Use the same selector when reading history or changing your read status. See Webhooks.
An ambiguous response can mean that the message was sent. Do not retry automatically; check the conversation first.
Contact information
Reading a public profile does not reveal private contact information.
Applicant responses can include contact information delivered with the application. The presence of a candidateId alone does not grant that information.