Create Trip API v1
The Create Trip API helps you to create a new trip with an origin, destination, and user.
Create Trip API
POST
https://api.roam.ai/v1/api/trips/
Headers
Name
Type
Description
Api-key
string
Auth-key E.g.- 33223kjhdcscijhb5sdbsdmjsdcbj5f
Request Body
Name
Type
Description
user_id
string
User-id for which the trip needs to be assigned E.g.- 5d9450ace47bae6d70064a9b
origins
array
Single or multiple origin locations in [long, lat] format. E.g.- [[77.677270, 12.914131]]
destinations
array
Single or multiple destination locations in [long, lat] format. E.g.- [[77.700475, 12.957005]]
Last updated