Skip to main content

List Watchers

GET 

https://secure.fleetio.com/api/v1/watchers/:watchable_type/:id

Returns a list of Watchers as an array of Contact objects for a given Watchable type and ID. The ID should be that of the Watchable type being queried.

Request

Path Parameters

    watchable_type stringrequired

    Possible values: [charging_entry, contact_renewal_reminder, equipment, expense_entry, fuel_entry, issue, purchase_order, service_entry, service_reminder, vehicle, vehicle_assignment, vehicle_renewal_reminder, vendor, work_order]

    The Watchable type

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Query Parameters

    start_cursor string

    The start cursor for Keyset pagination.

    per_page integer

    Possible values: >= 2 and <= 100

    The number of records per page to return

    Default value: 50
    filter object

    The fields, operations, and values to filter the records by.

    email object
    oneOf
    likestringrequired
    name object
    oneOf
    likestringrequired
    group_id object
    eqstringrequired
    created_at object
    oneOf
    ltstringrequired
    updated_at object
    oneOf
    ltstringrequired
    sort object

    The fields and direction to sort the results by.

    group_idSortAscDesc (string)

    Possible values: [asc, desc]

    created_atSortAscDesc (string)

    Possible values: [asc, desc]

    updated_atSortAscDesc (string)

    Possible values: [asc, desc]

    idSortAscDescDefaultDesc (string)

    Possible values: [asc, desc]

    Default value: desc

Responses

OK

Schema
    start_cursorstringnullable

    The current start cursor of the records returned.

    next_cursorstringnullable

    The next cursor to retrieve the next page of records.

    per_pageinteger

    The maxumum number of records returned.

    estimated_remaining_countinteger

    The number of remaining records including the returned records, up to a maximum of 500.

    filtered_by object[]

    The filters applied to the returned record set.

  • Array [
  • anyOf
    email object
    oneOf
    likestringrequired
  • ]
  • sorted_by object[]

    The sorts applied to the returned record set.

  • Array [
  • anyOf
    group_idSortAscDesc (string)

    Possible values: [asc, desc]

  • ]
  • records object[]
  • Array [
  • idinteger
    emailstringnullable

    The Contact's email address.

    namestringnullable

    The Contact's full name.

    group_idintegernullable

    If this Contact belongs to a Group, this will be the Fleetio ID of that Group.

    employeebooleannullable

    Whether or not the Contact is an employee.

    employee_numberstringnullable

    The employee number of the Contact.

    default_image_urlstringnullable

    The URL of the Contact's default image/profile photo, if any.

  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)

Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
— pathrequired
— query
— query
— query
email
name
group_ideq
created_at
updated_at
— query
group_id
created_at
updated_at
id
ResponseClear

Click the Send API Request button above and see the response here!