GET
/
v2
/
fleets
curl --request GET \
  --url https://api.app.fleetit.com/v2/fleets/ \
  --header 'Authorization: Bearer <token>'
{
  "count": 15,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 109,
      "title": "Fleet XYZ",
      "is_active": true,
      "regions": [
        "Region1",
        "Region2"
      ],
      "customer_info": {
        "ext_client_id": "123456",
        "ext_billing_id": "654321",
        "service_types": [
          "Tolls",
          "Violations"
        ],
        "email": "email@example.com",
        "notes": "Detailed notes here"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

Search across fields including title, customer_info.ext_client_id, customer_info.ext_billing_id, and customer_info.email.

title
string

Case-insensitive search for fleet title.

regions
integer

Filter by region ID.

is_active
boolean

Filter fleets based on their active status.

service_types
string[]

Filter fleets by service type.

ext_client_id
string

Filter fleets by external client ID.

ext_billing_id
string

Filter fleets by external billing ID.

email
string

Filter fleets by customer email.

ordering
string

Specify the ordering of the results. Can order by title, is_active, etc.

limit
integer

Limit the number of results returned.

offset
integer

The offset for pagination.

Response

200 - application/json
Successful response
count
integer
Example:

15

next
string
Example:

null

previous
string
Example:

null

results
object[]