---
updatedAt: 2026-07-01T09:31:21.000Z
agentTools:
  projectIndex: https://developers.getknit.dev/llms.txt
---

# PassThrough Requests for getting the Job related fields

Sample PassThrough requeats for getting the list of possible values of `officeId`, `hiringManagerId`, `recruiterId`, and `departmentId` fields in `create job` Api for Greenhouse.

## List Departments

Use the `id` field, in the response, as `departmentId`  in `create job` api.

A cURL request could look like this:

```curl
curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
    "method": "GET",
    "path": "departments"
}' 
```

and the response could look like the following:

```json
{
    "success": true,
    "data": {
        "response": {
            "body": "[{\"id\":4012056007,\"name\":\"People\",\"parent_id\":null,\"parent_department_external_id\":null,\"child_ids\":[],\"child_department_external_ids\":[],\"external_id\":null}]",
            "headers": {
                "Content-Type": "application/json;charset=utf-8",
                "Connection": "keep-alive",
                "Date": "Wed, 03 Sep 2025 13:34:02 GMT",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Vary": "Accept-Encoding",
                "link": "<https://harvest.greenhouse.io/v1/departments?page=1&per_page=100>; rel=\"last\"",
                "x-ratelimit-limit": "50",
                "x-ratelimit-remaining": "49",
                "x-content-type-options": "nosniff",
                "cross-origin-opener-policy": "same-origin",
                "x-request-id": "7f11d340dc3275103cc45522b56f0053",
                "X-Cache": "Miss from cloudfront",
                "Via": "1.1 8c63e5cafd0d30b723e10da0d044059e.cloudfront.net (CloudFront)",
                "X-Amz-Cf-Pop": "BOM78-P11",
                "X-Amz-Cf-Id": "05870T_ZX6FTLxOAWMkD6KLzm7ngRQOKew_QHdgufOWaw_s6dTpMaw==",
                "content-length": "1111"
            }
        }
    }
}
```

<br />

## List Offices

Use the `id` field, in the response, as the `officeId` in `create job` api.

A cURL request could look like this:

```curl
curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
    "method": "GET",
    "path": "offices"
}'
```

and the response could look like the following:

```json
{
    "success": true,
    "data": {
        "response": {
            "body": "[{\"id\":4010805007,\"name\":\"Berlin\",\"location\":{\"name\":null},\"primary_contact_user_id\":null,\"parent_id\":null,\"parent_office_external_id\":null,\"child_ids\":[],\"child_office_external_ids\":[],\"external_id\":null}]",
            "headers": {
                "Content-Type": "application/json;charset=utf-8",
                "Connection": "keep-alive",
                "Date": "Wed, 03 Sep 2025 13:37:48 GMT",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Vary": "Accept-Encoding",
                "link": "<https://harvest.greenhouse.io/v1/offices?page=1&per_page=100>; rel=\"last\"",
                "x-ratelimit-limit": "50",
                "x-ratelimit-remaining": "49",
                "x-content-type-options": "nosniff",
                "cross-origin-opener-policy": "same-origin",
                "x-request-id": "9fd580683140ee16499bfe370ed01576",
                "X-Cache": "Miss from cloudfront",
                "Via": "1.1 09c898c8a33d01a016155da981c1c9d6.cloudfront.net (CloudFront)",
                "X-Amz-Cf-Pop": "BOM78-P11",
                "X-Amz-Cf-Id": "vVPDxaO5q4nv2Ndz3gpfpgZGAjJPYDJOQVX0zOZINqFb3K94X1wUCQ==",
                "content-length": "2113"
            }
        }
    }
}
```

<br />

<br />

## List Job

Use the `id` field, in the response, as the `jobTemplateId` in `create job` api.

A cURL request could look like this:

```curl
curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
    "method": "GET",
    "path": "jobs"
}'
```

and the response could look like the following:

```json
{
    "success": true,
    "data": {
        "response": {
            "body": "[{\"id\":4023043007,\"name\":\"Sample Job Backend Devlpper\",\"requisition_id\":\"M39\",\"notes\":null,\"confidential\":false,\"is_template\":null,\"copied_from_id\":null,\"status\":\"draft\",\"created_at\":\"2023-06-15T13:47:52.337Z\",\"opened_at\":\"2023-06-15T13:47:52.337Z\",\"closed_at\":null,\"updated_at\":\"2025-04-08T05:10:05.926Z\",\"departments\":[{\"id\":4012058007,\"name\":\"Marketing\",\"parent_id\":null,\"parent_department_external_id\":null,\"child_ids\":[],\"child_department_external_ids\":[],\"external_id\":null}],\"offices\":[{\"id\":4010807007,\"name\":\"Ireland\",\"location\":{\"name\":null},\"primary_contact_user_id\":null,\"parent_id\":null,\"parent_office_external_id\":null,\"child_ids\":[],\"child_office_external_ids\":[],\"external_id\":null}]",
            "headers": {
                "Content-Type": "application/json;charset=utf-8",
                "Connection": "keep-alive",
                "Date": "Wed, 03 Sep 2025 13:42:32 GMT",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Vary": "Accept-Encoding",
                "link": "<https://harvest.greenhouse.io/v1/jobs?page=1&per_page=100>; rel=\"last\"",
                "x-ratelimit-limit": "50",
                "x-ratelimit-remaining": "49",
                "x-content-type-options": "nosniff",
                "cross-origin-opener-policy": "same-origin",
                "x-request-id": "1a8b131a08ac9614479172b39eab0787",
                "X-Cache": "Miss from cloudfront",
                "Via": "1.1 8a4ad7a380f44490867006729a8f8656.cloudfront.net (CloudFront)",
                "X-Amz-Cf-Pop": "BOM78-P11",
                "X-Amz-Cf-Id": "B_KAqgjxzJJcKlA-d9ZfCZyQMYaWtBwybS0l-nOyixmASDqjHaskgg==",
                "content-length": "39997"
            }
        }
    }
}
```

<br />

<br />

## List Users

Use the `id` field, in the response, as `hiringManagerId` and `recruiterId` in `create job` api.

A cURL request could look like this:

```curl
curl --location 'https://api.getknit.dev/v1.0/passthrough' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'X-Knit-Integration-Id: <YOUR_INTEGRATION_ID>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
    "method": "GET",
    "path": "users"
}'
```

and the response could look like the following:

```json
{
    "success": true,
    "data": {
        "response": {
            "body": "[{\"id\":4033008007,\"name\":\"Greenhouse Admin\",\"first_name\":\"Greenhouse\",\"last_name\":\"Admin\",\"primary_email_address\":\"scrubbed_email_o-xhlvxgaux_1jnz3zr8og@example.com\",\"updated_at\":\"2025-06-13T16:12:40.473Z\",\"created_at\":\"2023-06-15T13:47:49.391Z\",\"disabled\":false,\"site_admin\":true,\"emails\":[\"scrubbed_email_o-xhlvxgaux_1jnz3zr8og@example.com\"],\"employee_id\":null,\"linked_candidate_ids\":[],\"offices\":[],\"departments\":[]}]",
            "headers": {
                "Content-Type": "application/json;charset=utf-8",
                "Connection": "keep-alive",
                "Date": "Wed, 03 Sep 2025 13:46:57 GMT",
                "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
                "Vary": "Accept-Encoding",
                "link": "<https://harvest.greenhouse.io/v1/users?page=1&per_page=100>; rel=\"last\"",
                "x-ratelimit-limit": "50",
                "x-ratelimit-remaining": "49",
                "x-content-type-options": "nosniff",
                "cross-origin-opener-policy": "same-origin",
                "x-request-id": "b8cd3a2e1d4c27beb6caef2464095cd5",
                "X-Cache": "Miss from cloudfront",
                "Via": "1.1 8c63e5cafd0d30b723e10da0d044059e.cloudfront.net (CloudFront)",
                "X-Amz-Cf-Pop": "BOM78-P11",
                "X-Amz-Cf-Id": "zJJSGDAwVi3Z7RdBcpDD2qMkJXYUPXaEE_t35nApglnNoXbEpaWpiw==",
                "content-length": "8866"
            }
        }
    }
}
```