Jobs > Drivers

List job drivers

GET job drivers

Endpoint

GET /api/v1/jobs/:id/job_drivers

Parameters

Name Description In
page Page number
per_page Number of items per page
by_state Filter by state. All if empty ["current", "former"]

Request

Route

GET /api/v1/jobs/321/job_drivers

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTM2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTc2LCJleHAiOjE3NDAxNDM1NzYsImp0aSI6IjE5NmQ0YTUwLTg2MGQtNGUxYi1hM2U0LWUzNzJlMjgyMDdlYiJ9.NQC3HHDd5AB_HCfZRUzpcAjGsWggXzBzpc2p-SuaO0g
Host: example.org
Cookie: 

Query Parameters

{}=

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 6
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"183e276eecaf1f2140a52cf56be07399"
cache-control: max-age=0, private, must-revalidate
x-request-id: e8aa34b0-7c30-403f-a920-cae5537dbf80
x-runtime: 0.092892
content-length: 2537

Body

{
  "job_drivers": [
    {
      "id": 320,
      "chat_id": 570,
      "contract": {
        "id": 248,
        "days_to_expire": 31,
        "end_date": "2025-02-22",
        "job_driver_id": 320,
        "policy_schema": {
          "markable_as_ended": true
        },
        "start_date": "2025-01-21",
        "state": "active"
      },
      "driver": {
        "id": 1137,
        "first_name": "Damion",
        "last_name": "Russel",
        "profile_id": 526,
        "referral_code": "008861"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-01-22T13:12:56.429Z",
      "wage": {
        "amount": "54.31",
        "type": "fixed"
      }
    },
    {
      "id": 321,
      "chat_id": 571,
      "contract": {
        "id": 249,
        "days_to_expire": 31,
        "end_date": "2025-02-22",
        "job_driver_id": 321,
        "policy_schema": {
          "markable_as_ended": true
        },
        "start_date": "2025-01-21",
        "state": "active"
      },
      "driver": {
        "id": 1138,
        "first_name": "Milo",
        "last_name": "Volkman",
        "profile_id": 527,
        "referral_code": "359693"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-01-22T13:12:56.445Z",
      "wage": {
        "amount": "36.01",
        "type": "fixed"
      }
    },
    {
      "id": 322,
      "chat_id": 572,
      "contract": {
        "id": 250,
        "days_to_expire": 31,
        "end_date": "2025-02-22",
        "job_driver_id": 322,
        "policy_schema": {
          "markable_as_ended": true
        },
        "start_date": "2025-01-21",
        "state": "active"
      },
      "driver": {
        "id": 1139,
        "first_name": "Tommy",
        "last_name": "Volkman",
        "profile_id": 528,
        "referral_code": "232135"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-01-22T13:12:56.461Z",
      "wage": {
        "amount": "72.22",
        "type": "fixed"
      }
    },
    {
      "id": 323,
      "chat_id": 573,
      "contract": {
        "id": 251,
        "days_to_expire": 31,
        "end_date": "2025-02-22",
        "job_driver_id": 323,
        "policy_schema": {
          "markable_as_ended": true
        },
        "start_date": "2025-01-21",
        "state": "active"
      },
      "driver": {
        "id": 1140,
        "first_name": "Waldo",
        "last_name": "Schoen",
        "profile_id": 529,
        "referral_code": "939112"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-01-22T13:12:56.477Z",
      "wage": {
        "amount": "67.36",
        "type": "fixed"
      }
    },
    {
      "id": 324,
      "chat_id": 574,
      "contract": {
        "id": 252,
        "days_to_expire": -1,
        "end_date": "2025-01-21",
        "job_driver_id": 324,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2024-12-22",
        "state": "expired"
      },
      "driver": {
        "id": 1141,
        "first_name": "Margaret",
        "last_name": "Mraz",
        "profile_id": 530,
        "referral_code": "442276"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-01-22T13:12:56.491Z",
      "wage": {
        "amount": "58.18",
        "type": "fixed"
      }
    },
    {
      "id": 325,
      "chat_id": 575,
      "contract": {
        "id": 253,
        "days_to_expire": -1,
        "end_date": "2025-01-21",
        "job_driver_id": 325,
        "policy_schema": {
          "markable_as_ended": false
        },
        "start_date": "2024-12-22",
        "state": "expired"
      },
      "driver": {
        "id": 1142,
        "first_name": "Nolan",
        "last_name": "Yundt",
        "profile_id": 531,
        "referral_code": "129521"
      },
      "kind": "accepted",
      "started_at": null,
      "updated_at": "2025-01-22T13:12:56.507Z",
      "wage": {
        "amount": "14.27",
        "type": "fixed"
      }
    }
  ]
}