This endpoint is only available for admins or operators
Metadata
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.eyJzdWIiOiIxNTEyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjE1LCJleHAiOjE3NTU4NTgyMTUsImp0aSI6ImE3ZTBhZjFhLTU5ODktNDAyZC05ZTEzLWVmZDNjYjhlNTBhNyJ9.9P5LFa_2WrKVVlRqzJwtmmlnaZHMox0qroD4uFSkLnU
Host: example.org
Cookie:
Body
{
}
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/"ccb41c53829c188b8ffd698048d71e5c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 81c5a325-2b63-4a25-bd9c-3fada7bb53a5
x-runtime: 0.009775
content-length: 283
Body
{
"drivers": [
{
"id": 1511,
"admin": false,
"image": null,
"referral_code": "242897",
"title": "Elton Vandervort"
},
{
"id": 1510,
"admin": false,
"image": null,
"referral_code": "727481",
"title": "Gilberte Pouros"
},
{
"id": 1509,
"admin": false,
"image": null,
"referral_code": "706629",
"title": "Guadalupe Wolf"
}
]
}