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.eyJzdWIiOiIxNDk0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQzLCJleHAiOjE3NDUwNTY5NDMsImp0aSI6IjNhNDI4ZmFlLTRmOTgtNDU4NC04OTljLWU4ZDE4ODk1MDg1MSJ9.fC0sag0-wI0987Ld8_EyYfPyJBTLmR-1H2jBwjx9NOA
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/"fbafe867385f1e724ad062aeebf96232"
cache-control: max-age=0, private, must-revalidate
x-request-id: f6c20f04-ce12-4129-aae5-46b07571240e
x-runtime: 0.009034
content-length: 280
Body
{
"drivers": [
{
"id": 1492,
"admin": false,
"image": null,
"referral_code": "433675",
"title": "Gustavo Schneider"
},
{
"id": 1493,
"admin": false,
"image": null,
"referral_code": "330103",
"title": "Korey Mayert"
},
{
"id": 1491,
"admin": false,
"image": null,
"referral_code": "711974",
"title": "Marianne Huel"
}
]
}