> ## Documentation Index
> Fetch the complete documentation index at: https://docs.harmonyforstaffing.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Jobs

> Retrieve a list of jobs or a specific job

Retrieve a list of all jobs or get details for a specific job.

### Query Parameters

<ParamField query="id" type="number">
  Optional job ID to get a specific job
</ParamField>

<ParamField query="facilityId" type="number">
  Filter jobs by facility ID
</ParamField>

<ParamField query="professionId" type="number">
  Filter jobs by profession/nurse type
</ParamField>

<ParamField query="isOpen" type="boolean">
  Filter by job status (open/closed)
</ParamField>

### Response

<ResponseField name="jobs" type="array">
  List of job objects
</ResponseField>

<RequestExample>
  ```bash theme={null}
  # Get all jobs
  curl --request GET \
    --url https://api.harmonyforstaffing.com/api/jobs \
    --header 'Authorization: Bearer <token>'

  # Get specific job
  curl --request GET \
    --url https://api.harmonyforstaffing.com/api/jobs?id=123 \
    --header 'Authorization: Bearer <token>'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "jobs": [
      {
        "id": 123,
        "title": "ICU Nurse - 13 Week Contract",
        "description": "Seeking experienced ICU nurse...",
        "facilityId": 1,
        "professionId": 1,
        "startDate": "2024-04-01",
        "endDate": "2024-06-30",
        "weeklyPay": 2500,
        "hoursPerWeek": 36,
        "isOpen": true,
        "createdAt": "2024-03-19T18:30:00Z"
      }
    ]
  }
  ```
</ResponseExample>
