Metadata

This endpoint is only available for admins or operators

GET drivers

Endpoint

GET /api/v1/metadata/drivers

Parameters

Name Description
by_name Filter drivers by name
by_company Filter drivers by company
by_job_number Filter drivers by job number
by_job Filter drivers by job ID
from_date Filter by registration date
to_date Filter by registration date

Request

Route

GET /api/v1/metadata/drivers

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDY2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg0LCJleHAiOjE3NDAxNDM1ODQsImp0aSI6IjMyYmJmZjlkLWM3ZTMtNDAwZi1hMGNhLWY0ZmE2ZTQ4MmQxMyJ9.90Gz4D01AGXS9331A3Cs_kCV3xSJVc8SRflDpmGoZUk
Host: example.org
Cookie: 

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
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"d22737c0d2008c592d107ad7cc6ec105"
cache-control: max-age=0, private, must-revalidate
x-request-id: 143da177-871a-4d81-b989-072e20d31aaa
x-runtime: 0.007852
content-length: 273

Body

{
  "drivers": [
    {
      "id": 1465,
      "admin": false,
      "image": null,
      "referral_code": "017511",
      "title": "Andre Heaney"
    },
    {
      "id": 1464,
      "admin": false,
      "image": null,
      "referral_code": "069160",
      "title": "Shela Barton"
    },
    {
      "id": 1463,
      "admin": false,
      "image": null,
      "referral_code": "673297",
      "title": "Taneka Hahn"
    }
  ]
}