Description
Lists attachments for a candidate with a given id.
Request
GET https://api.smartrecruiters.com/candidates/{candidateId}/attachments
Path Parameters
name | type | description |
---|---|---|
candidateId | string | Identifier of a candidate for which we want to retrieve a list of attachments |
Query Parameters
n/a
Request Body
n/a
Response Body
ListResult containing list of a candidate’s attachment objects. To download a file use ‘download’ property.
Example request
curl -i -H "X-SmartToken: abc123" -X GET https://api.smartrecruiters.com/candidates/f7dab600-bb7f-44a8-a38a-d43a4876c565/attachments
Example response
{ "totalFound": 2, "content": [ { "id": "92fc3ebe-e204-492c-8c80-1ab7a6eb6777", "name": "generated-avatar.jpg", "type": "AVATAR", "contentType": "image/jpeg", "actions": { "download": { "url": "https://api.smartrecruiters.com/candidates/f7dab600-bb7f-44a8-a38a-d43a4876c565/attachments/92fc3ebe-e204-492c-8c80-1ab7a6eb6777", "method": "GET" } } }, { "id": "efab3632-1cc4-4abb-993b-cc0a5d2f3b21", "name": "CV_John_Doe.pdf", "type": "RESUME", "contentType": "application/pdf", "actions": { "download": { "url": "https://api.smartrecruiters.com/candidates/f7dab600-bb7f-44a8-a38a-d43a4876c565/attachments/efab3632-1cc4-4abb-993b-cc0a5d2f3b21", "method": "GET" } } } ] } |