Get Multiple Trips API
Explore how to get multiple trips with our Trip API
Get Multiple Trips
GET
https://api.roam.ai/v2/trips
Returns a list of your trips.
Query Parameters
Name | Type | Description |
---|---|---|
starting_after | String | A cursor for use in pagination. starting_after is a trip id that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list. |
ending_before | String | A cursor for use in pagination. ending_before is a trip id that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list. |
created_at | Condition | A filter on the list based on the object created_at field. |
description | Condition | A filter on the list based on the object description field. |
trip_state | Condition | A filter on the list based on the object trip_status field. |
is_local | Condition | A filter on the list based on the object is_local field. |
user_id | Conditon | A filter on the list based on the object user_id field. |
limit | Number | A limit on the number of objects to be returned, between 1 and 100. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | Bearer <API-KEY> |
The following logical operators are generally supported for filters.
Operator type | Operator |
---|---|
Equality operators | Equals Not equals Negation In |
Relational operators | Less than Greater than Less than or equal to Greater than or equal to |
Conditional operators | And Or |
Functions | Starts with Ends with Contains Like |
Example
Last updated