Query with Metadata
The metadata parameter can be used in the Get users/geofence/trips API to query on top of the metadata field.
Example :
You can query the trips and users via the API and use metadata values as filters to get the respective results.
You need to make sure the external_id or metadata values are not duplicated since this might end up in multiple results. So that's something that needs to be handled from your side.
Get user list
GET
/v1/api/user
Query Parameters
start_date
String
Date from when the data is to be returned.
E.g.:- 2021-12-27
end_date
String
Date till when the data is to be returned.
E.g:- 2021-12-29
metadata
JSON
The metadata
will be in a format key1:value1,key2:value2,..
to support query on multiple keys (key1 and key2 in this case).
E.g.:- key1:value1,key2:value2,..
page_number
Integer
This field is used for getting 10 entries at a time. If the response returns an empty list in the data field, it is safe to assume the pages are exhausted.
E.g.:- 1
Headers
Api-key*
String
Auth-key
E.g.:- 099923kjhdcscijhb5sdbsdmjsdc77
Sample Request
Get Trip list
GET
/v1/api/trips
Query Parameters
start_date
String
Date from when the data is to be returned.
E.g.:- 2021-12-27
end_date
String
Date till when the data is to be returned.
E.g.:- 2021-12-29
metadata
JSON
The metadata
will be in a format key1:value1,key2:value2,..
to support query on multiple keys (key1 and key2 in this case).
E.g.:- key1:value1,key2:value2,..
page_number
Integer
This field is used for getting 10 entries at a time. If the response returns an empty list in the data field, it is safe to assume the pages are exhausted.
E.g:- 1
Headers
Api-key*
String
Auth-key
E.g.:- 099923kjhdcscijhb5sdbsdmjsdc77
Sample Request
Get Geofence list
GET
/v1/api/geofence
Query Parameters
start_date
String
Date from when the data is to be returned.
E.g.:- 2021-12-27
end_date
String
Date till when the data is to be returned.
E.g.:- 2021-12-29
metadata
JSON
The metadata
will be in a format key1:value1,key2:value2,..
to support query on multiple keys (key1 and key2 in this case).
E.g.:- key1:value1,key2:value2,..
page_number
Integer
This field is used for getting 10 entries at a time. If the response returns an empty list in the data field, it is safe to assume the pages are exhausted.
E.g.:- 1
Headers
Api-key*
String
Auth-key
E.g.:- 099923kjhdcscijhb5sdbsdmjsdc77
Sample Request
Last updated