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.eyJzdWIiOiIxNTMyIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDAxLCJleHAiOjE3NjYyMTg0MDEsImp0aSI6IjI2YzM5NTZjLWY3ODUtNDA5OS1iM2UwLTFiOTU3N2ZlNTE2ZCJ9.QC6jJCLyLXasQVHv8pNuBQYSJKDOYwUg4SoZF42lcj0
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/"46e31ec4033421cc1514b146fab1b7ec"
cache-control: max-age=0, private, must-revalidate
x-request-id: 01a2a729-26e7-48a9-ba9c-482f7d470122
x-runtime: 0.014135
content-length: 276
Body
{
"drivers": [
{
"id": 1531,
"admin": false,
"image": null,
"referral_code": "265906",
"title": "Alfonso Boyle"
},
{
"id": 1530,
"admin": false,
"image": null,
"referral_code": "567843",
"title": "Dario Paucek"
},
{
"id": 1529,
"admin": false,
"image": null,
"referral_code": "481408",
"title": "Wilmer Maggio"
}
]
}