Skip to Content
Error Handling

Error Handling

All API responses follow a consistent format:

{ "jobId": null, "error": { "message": "Description of what went wrong" } }

HTTP Status Codes

CodeMeaningWhen
200SuccessOperation completed
201CreatedJob created via upsert (PUT when job didn’t exist)
400Bad RequestMissing required fields or invalid data
401UnauthorizedMissing x-api-key header
403ForbiddenInvalid API key or not authorized for this resource
404Not FoundJob with the given external ID not found
409ConflictJob with this ID already exists (use PUT to update)
500Server ErrorInternal error — contact Jobzyn support

Common Errors

Missing API Key

{ "error": { "message": "Please provide an API key" } }

Fix: Add the x-api-key header to your request.

Invalid API Key

{ "error": { "message": "Invalid API key" } }

Fix: Check that your API key is correct and has not been revoked.

Missing Job ID

{ "error": { "message": "Job ID is required" } }

Fix: Include an id field in your job payload.

Duplicate Job

{ "error": { "message": "Job with external id REQ-2024-001 already exists" } }

Fix: Use PUT /api/integrations/job/REQ-2024-001 to update the existing job.

Job Not Found (for update/delete/candidates)

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

Fix: Verify the job ID is correct and was created with your API key.

Last updated on