Companies

List job drivers

GET job drivers

Endpoint

GET /api/v1/companies/: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"]
by_name Filter by driver name

Request

Route

GET /api/v1/companies/20/job_drivers

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI3OSIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU1MSwiZXhwIjoxNzQwMTQzNTUxLCJqdGkiOiJlMmQ4YTkxYy1mZjliLTQ0YzAtYTM4NS01MWQ2YTI5YzE0OWYifQ.ZZ0M77GCZkl7BPqm1aQuT97Cr3EzSfiUJ4ow8NtQlDw
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: 8
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"76f02fe508d5231ca18eca2adbadba80"
cache-control: max-age=0, private, must-revalidate
x-request-id: afe0e683-c847-4ba6-8676-75487765adb8
x-runtime: 0.052678
content-length: 1921

Body

{
  "job_drivers": [
    {
      "id": 18,
      "chat_id": 44,
      "driver": {
        "id": 80,
        "first_name": "Christian",
        "last_name": "Walker",
        "profile_id": 10,
        "referral_code": "559371"
      },
      "favourite_id": null,
      "job_name": "IT Analyst",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.589Z"
    },
    {
      "id": 19,
      "chat_id": 45,
      "driver": {
        "id": 81,
        "first_name": "Lera",
        "last_name": "Bashirian",
        "profile_id": 11,
        "referral_code": "118585"
      },
      "favourite_id": null,
      "job_name": "IT Analyst",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.605Z"
    },
    {
      "id": 20,
      "chat_id": 47,
      "driver": {
        "id": 82,
        "first_name": "Maile",
        "last_name": "Larkin",
        "profile_id": 12,
        "referral_code": "429878"
      },
      "favourite_id": null,
      "job_name": "Product Sales Strategist",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.645Z"
    },
    {
      "id": 21,
      "chat_id": 48,
      "driver": {
        "id": 83,
        "first_name": "Eura",
        "last_name": "Ortiz",
        "profile_id": 13,
        "referral_code": "864114"
      },
      "favourite_id": null,
      "job_name": "Product Sales Strategist",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.664Z"
    },
    {
      "id": 22,
      "chat_id": 49,
      "driver": {
        "id": 84,
        "first_name": "Ethel",
        "last_name": "Bartell",
        "profile_id": 14,
        "referral_code": "287857"
      },
      "favourite_id": null,
      "job_name": "Product Sales Strategist",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.681Z"
    },
    {
      "id": 23,
      "chat_id": 50,
      "driver": {
        "id": 85,
        "first_name": "Edgar",
        "last_name": "Jaskolski",
        "profile_id": 15,
        "referral_code": "209883"
      },
      "favourite_id": 3,
      "job_name": "Product Sales Strategist",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.706Z"
    },
    {
      "id": 24,
      "chat_id": 51,
      "driver": {
        "id": 86,
        "first_name": "Lashonda",
        "last_name": "Green",
        "profile_id": 16,
        "referral_code": "724392"
      },
      "favourite_id": null,
      "job_name": "Product Sales Strategist",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.724Z"
    },
    {
      "id": 25,
      "chat_id": 52,
      "driver": {
        "id": 87,
        "first_name": "Nichol",
        "last_name": "Runte",
        "profile_id": 17,
        "referral_code": "500606"
      },
      "favourite_id": 2,
      "job_name": "Product Sales Strategist",
      "kind": "accepted",
      "updated_at": "2025-01-22T13:12:31.741Z"
    }
  ]
}