# Get all files for a candidate
curl --request GET \
--url https://api.harmonyforstaffing.com/api/file?candidateId=456 \
--header 'Authorization: Bearer <token>'
# Get specific file
curl --request GET \
--url https://api.harmonyforstaffing.com/api/file?id=999 \
--header 'Authorization: Bearer <token>'
{
"files": [
{
"id": 999,
"url": "https://storage.harmonyforstaffing.com/files/resume-123.pdf",
"fileName": "resume-123.pdf",
"contentType": "application/pdf",
"size": 1048576,
"candidateId": 456,
"type": "resume",
"description": "Updated resume March 2024",
"createdAt": "2024-03-19T18:30:00Z"
}
]
}
Retrieve files
# Get all files for a candidate
curl --request GET \
--url https://api.harmonyforstaffing.com/api/file?candidateId=456 \
--header 'Authorization: Bearer <token>'
# Get specific file
curl --request GET \
--url https://api.harmonyforstaffing.com/api/file?id=999 \
--header 'Authorization: Bearer <token>'
{
"files": [
{
"id": 999,
"url": "https://storage.harmonyforstaffing.com/files/resume-123.pdf",
"fileName": "resume-123.pdf",
"contentType": "application/pdf",
"size": 1048576,
"candidateId": 456,
"type": "resume",
"description": "Updated resume March 2024",
"createdAt": "2024-03-19T18:30:00Z"
}
]
}
# Get all files for a candidate
curl --request GET \
--url https://api.harmonyforstaffing.com/api/file?candidateId=456 \
--header 'Authorization: Bearer <token>'
# Get specific file
curl --request GET \
--url https://api.harmonyforstaffing.com/api/file?id=999 \
--header 'Authorization: Bearer <token>'
{
"files": [
{
"id": 999,
"url": "https://storage.harmonyforstaffing.com/files/resume-123.pdf",
"fileName": "resume-123.pdf",
"contentType": "application/pdf",
"size": 1048576,
"candidateId": 456,
"type": "resume",
"description": "Updated resume March 2024",
"createdAt": "2024-03-19T18:30:00Z"
}
]
}