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.eyJzdWIiOiIxNTEyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTMwLCJleHAiOjE3NTExMDg1MzAsImp0aSI6ImRhY2QzZWFiLWY2ZDktNDgyYi04MDljLTljOGIyYWNlZjAyNSJ9.q1dVVmO6UXbQ_cU94YsPONw3cqPbP_t4-5Crn81kBMk
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/"cc22abf1463980507e3ae0af62af80b4"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7d187b3a-91dc-4916-a34f-91af8fb8a9ec
x-runtime: 0.007615
content-length: 279
Body
{
"drivers": [
{
"id": 1511,
"admin": false,
"image": null,
"referral_code": "015300",
"title": "Antoine Yundt"
},
{
"id": 1510,
"admin": false,
"image": null,
"referral_code": "210895",
"title": "Chia Rodriguez"
},
{
"id": 1509,
"admin": false,
"image": null,
"referral_code": "510770",
"title": "Lazaro Smitham"
}
]
}