Search candidates
Find professional profiles that match a job's requirements. Start with an opening you manage and have aligned. Searching does not contact candidates or charge credits.
Start a search
Set OPENING_ID to your saved opening's ID, then start the search:
curl -X POST https://api.torre.ai/v1/candidate-searches \
-H "Authorization: Bearer $TORRE_API_KEY" -H "Content-Type: application/json" \
-d "{\"openingId\":\"$OPENING_ID\",\"size\":25}"
The first search after each alignment uses external sources automatically. Later searches use Torre candidates. Legacy includeExternal and skipAlignment fields are accepted for compatibility but ignored; an unaligned opening cannot be searched.
The response contains the first page and an opaque searchId. Each result uses candidateId for the person's canonical Torre ggId.
Read more results
For a Torre candidate search (external.included: false), pass the returned nextCursor unchanged:
GET https://api.torre.ai/v1/candidate-searches/{searchId}?cursor={nextCursor}
Continue while hasMore is true. nextCursor: null means no further page. An empty page can still have a cursor. The size supplied when starting the search stays fixed; omit page and pageSize. Without a cursor, GET reads the first page again.
For an external search (external.included: true), keep numbered pagination:
GET https://api.torre.ai/v1/candidate-searches/{searchId}?page=2&pageSize=25
Here page is 1-based and pageSize accepts 1 through 100. Do not supply cursor.
Both flows require access to the job. With a connected agent, simply ask it to find candidates for the job or show more results; you do not need to name the underlying tools. Cursors are opaque and bound to the search's job, alignment and size. Mixed pagination and invalid query fields return 422 invalid_field. Once query fields pass validation, a malformed, foreign or source-rejected cursor returns 400 invalid_cursor.
Pages reflect the current index and candidate exclusions; they are not a snapshot. If exclusions invalidate a cursor, repeat GET without a cursor and discard previously collected pages. Realignment returns 409 search_alignment_changed: start a new search. A cleared alignment returns 409 opening_not_aligned: align the job before starting again. Older Torre-only IDs issued before cursor support must be replaced by starting a new search.
Read a profile
curl "https://api.torre.ai/v1/people/$CANDIDATE_ID" \
-H "Authorization: Bearer $TORRE_API_KEY"
Use a returned candidateId as CANDIDATE_ID. The response includes the accessible public profile, not private contact details. Your own API key is enough; you do not need the candidate's personal key. Reading the profile does not grant messaging or applicant access.
Message an applicant
You can ask your agent to draft a free message to an existing applicant, then approve it before sending. Finding someone in search alone does not make them eligible for applicant messaging.
Choose which job the message is about, or ask your agent to reply in the same conversation. Torre will not choose a job for you.
curl -X POST "https://api.torre.ai/v1/candidates/$CANDIDATE_ID/messages" \
-H "Authorization: Bearer $TORRE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body":"Are you available to discuss the role?","openingId":"OPENING_ID"}'
For a reply, replace openingId with conversationId copied exactly from the reply webhook or message history. Send exactly one selector, never both. Missing or conflicting selectors return 422 without sending. The response's conversationId identifies the actual thread used, including its job context. A conversation without a job topic stays direct; applicant permissions still apply. Do not automatically repeat a send after an uncertain response.