Skip to Content
EndpointsGet Candidates

Get Candidates

Retrieve all candidates who applied to a specific job.

GET /api/integrations/job/{externalJobId}/candidates

Path Parameters

ParameterDescription
externalJobIdThe job ID you provided when creating the job

Headers

HeaderRequiredDescription
x-api-keyYesYour API key

Query Parameters

ParameterTypeDefaultDescription
sincestringISO 8601 date. Only return applications created after this date. Alias for from.
fromstringISO 8601 date. Only return applications created on or after this date. If both since and from are provided, since takes priority.
tostringISO 8601 date. Only return applications created on or before this date. Combine with since/from for a date range.
pageinteger1Page number (1-based).
pageSizeinteger50Number of results per page. Maximum 100.

Response

Success — 200

{ "candidates": [ { "id": "456", "jobBoardId": "1", "status": "PENDING", "companyId": "100", "firstName": "Ahmed", "lastName": "Bennani", "email": "ahmed@example.com", "phone": "+212600000000", "cv": "https://storage.jobzyn.com/resumes/abc123.pdf", "linkedinUrl": "https://linkedin.com/in/ahmed-bennani", "offerId": "REQ-2024-001", "date": "2024-06-15T10:30:00.000Z", "message": "I am very interested in this position..." } ], "total": 1, "error": null }

Candidate Fields

FieldTypeDescription
idstringApplication ID in Jobzyn
firstNamestringCandidate’s first name
lastNamestringCandidate’s last name
emailstringCandidate’s email address
phonestringCandidate’s phone number
cvstringURL to the candidate’s resume (PDF)
linkedinUrlstringCandidate’s LinkedIn profile URL
offerIdstringYour original job ID
datestringApplication date (ISO 8601)
messagestringCover message from the candidate
statusstringApplication status
jobBoardIdstringJob board reference
companyIdstringYour company ID in Jobzyn
totalintegerTotal number of matching candidates (use with page/pageSize for pagination)

Invalid Date — 400

{ "candidates": null, "error": { "message": "Invalid date format. Use ISO 8601 (e.g. 2024-06-15T00:00:00Z)" } }

Job Not Found — 403

{ "candidates": null, "error": { "message": "External id REQ-2024-001 is not associated with any job within company 100" } }

Examples

All candidates:

curl https://www.jobzyn.com/api/integrations/job/REQ-2024-001/candidates \ -H "x-api-key: jz_your_api_key_here"

Poll for new candidates since a given date:

curl "https://www.jobzyn.com/api/integrations/job/REQ-2024-001/candidates?since=2024-06-14T00:00:00Z" \ -H "x-api-key: jz_your_api_key_here"

Date range with pagination:

curl "https://www.jobzyn.com/api/integrations/job/REQ-2024-001/candidates?from=2024-06-01T00:00:00Z&to=2024-06-30T23:59:59Z&page=1&pageSize=25" \ -H "x-api-key: jz_your_api_key_here"
Last updated on