Skip to main content
POST
https://api.hirempire.com
/
v1
/
add-job
curl --location --request POST 'https://api.hirempire.com/v1/add-job' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "company_id": "12345",
    "job_title": "Software Engineer",
    "department": "Engineering",
    "job_country": "USA",
    "city": "San Francisco",
    "salary": 100000,
    "currency": "USD",
    "salary_period": "Per year",
    "hide_salary": false,
    "job_type": "Full-time",
    "workplace": "Remote",
    "career_level": "Mid-level",
    "job_description": "Develop and maintain software applications, collaborate with cross-functional teams, and ensure high-quality code through testing and code reviews.",
    "job_sources": ["LinkedIn", "Facebook"],
    "status": "Active"
}'
{
  "success": true,
  "job_id": "xyz456abc123",
  "job_status": "Active",
  "total_applications": 2,
  "applications": [
    {
      "id": "xyz456abc123",
      "created_at": "2025-02-25T03:23:32.000Z",
      "source": "Facebook",
      "application_url": "https://www.hirempire.com/job-application?recordid=xyz456abc123"
    },
    {
      "id": "xyz456abc123",
      "created_at": "2025-02-25T03:23:32.000Z",
      "source": "LinkedIn",
      "application_url": "https://www.hirempire.com/job-application?recordid=xyz456abc123"
    }
  ]
}

Request Body

company_id
string
required
Unique identifier for the company
job_title
string
required
Title of the job position
department
string
required
Department where the job belongs. Allowed departments: Accounting/Auditing Administrative Advertising Analyst Art/Creative Business Development Consulting Customer Service Design Distribution Education Engineering Finance Health Care Provider Human Resources Information Technology Legal Management Manufacturing Marketing Product Management Project Management Production Public Relations Purchasing Quality Assurance Research Sales Science Strategy/Planning Supply Chain Training Operations Other
job_country
string
required
Country where the job is located
city
string
City where the job is located
salary
number
required
Salary information for the position
currency
string
required
Currency of the salary. Valid currency is in three-letter alphabetic codes. Examples: USD EUR GBP
salary_period
string
required
Period of the salary. Options: Per hour Per day Per week Bi-weekly Per month Per year
hide_salary
boolean
Hide salary in job application. Default is false
job_type
string
required
Employment type. Options: Full-time Part-time Contract Freelance Internship Temporary Project-based
workplace
string
required
Workplace type. Options: On-site Remote Hybrid
career_level
string
required
Career Level. Options: Junior Mid-level Senior Team Leader Manager Director VP C-level
job_description
string
required
Full description of the job requirements and responsibilities
job_sources
string[]
required
Array of job posting sources. Options: LinkedIn Referral Alien Talents Facebook WhatsApp Pinterest Reddit Snapchat TikTok X Instagram Xing WeChat YouTube Indeed My Website Other Hirempire
status
string
Job posting status. Options: Pending Active Paused Hired Closed Delete. Default is Pending

Authentication

Authorization
string
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
curl --location --request POST 'https://api.hirempire.com/v1/add-job' \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "company_id": "12345",
    "job_title": "Software Engineer",
    "department": "Engineering",
    "job_country": "USA",
    "city": "San Francisco",
    "salary": 100000,
    "currency": "USD",
    "salary_period": "Per year",
    "hide_salary": false,
    "job_type": "Full-time",
    "workplace": "Remote",
    "career_level": "Mid-level",
    "job_description": "Develop and maintain software applications, collaborate with cross-functional teams, and ensure high-quality code through testing and code reviews.",
    "job_sources": ["LinkedIn", "Facebook"],
    "status": "Active"
}'

Response

success
boolean
Indicates if the job was created successfully
job_id
string
Unique identifier for the newly created job
job_status
string
Current status of the job posting
total_applications
integer
Number of applications received for this job
applications
array
Array of application objects
{
  "success": true,
  "job_id": "xyz456abc123",
  "job_status": "Active",
  "total_applications": 2,
  "applications": [
    {
      "id": "xyz456abc123",
      "created_at": "2025-02-25T03:23:32.000Z",
      "source": "Facebook",
      "application_url": "https://www.hirempire.com/job-application?recordid=xyz456abc123"
    },
    {
      "id": "xyz456abc123",
      "created_at": "2025-02-25T03:23:32.000Z",
      "source": "LinkedIn",
      "application_url": "https://www.hirempire.com/job-application?recordid=xyz456abc123"
    }
  ]
}

Error Responses

Authorization Errors

400 - Bad Request
{
    "success": false,
    "error": "Missing 'Authorization' header."
}
400 - Bad Request
{
    "success": false,
    "error": "Authorization header must start with 'Bearer '."
}

Request Format Errors

400 - Bad Request
{
    "success": false,
    "error": "Query parameters or URL params are not allowed."
}

Missing Required Fields

400 - Bad Request
{
    "success": false,
    "error": "Missing required field: company_id"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: job_title"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: department"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: job_country"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: salary"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: currency"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: salary_period"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: job_type"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: workplace"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: career_level"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: job_description"
}
400 - Bad Request
{
    "success": false,
    "error": "Missing required field: job_sources"
}

Field Validation Errors

400 - Bad Request
{
    "success": false,
    "error": "Field 'salary' must be a number."
}
400 - Bad Request
{
    "success": false,
    "error": "Invalid salary_period. Allowed values: Per hour, Per day, Per week, Bi-weekly, Per month, Per year"
}
400 - Bad Request
{
    "success": false,
    "error": "Invalid job_type. Allowed values: Full-time, Part-time, Contract, Freelance, Internship, Temporary, Project-based"
}
400 - Bad Request
{
    "success": false,
    "error": "Invalid workplace. Allowed values: On-site, Remote, Hybrid"
}
400 - Bad Request
{
    "success": false,
    "error": "Invalid career_level. Allowed values: Junior, Mid-level, Senior, Team Leader, Manager, Director, VP, C-level"
}
400 - Bad Request
{
    "success": false,
    "error": "Field 'job_sources' must be an array."
}
400 - Bad Request
{
    "success": false,
    "error": "Invalid job_source: [source_name]. Allowed: LinkedIn, Referral, Alien Talents, Facebook, WhatsApp, Pinterest, Reddit, Snapchat, TikTok, X, Instagram, Xing, WeChat, YouTube, Indeed, My Website, Other, Hirempire"
}
400 - Bad Request
{
    "success": false,
    "error": "Field 'status' must be a string if provided."
}

Company Authorization Errors

401 - Unauthorized
{
    "success": false,
    "error": "Invalid company id"
}
401 - Unauthorized
{
    "success": false,
    "error": "Unauthorized. You don't have the permission post a job in this company."
}

Limit Reached Error

402 - Payment Required
{
    "success": false,
    "error": "Active jobs limit reached. Upgrade to add more, or close one of your jobs."
}

Token Validation Errors

400 - Bad Request
{
    "success": false,
    "error": "Invalid token"
}
401 - Unauthorized
{
    "success": false,
    "error": "Token is expired"
}
403 - Forbidden
{
    "success": false,
    "error": "Token has been deleted"
}
401 - Unauthorized
{
    "success": false,
    "error": "Token is missing required scope 'Jobs'"
}