Lyft
  1. User
Lyft
  • Public
    • Cost estimates
      GET
    • Available drivers nearby
      GET
    • Pickup ETAs
      GET
    • Types of rides
      GET
  • User
    • The user's general info
      GET
    • List rides
      GET
    • Request a Lyft
      POST
    • Get the ride detail of a given ride ID
      GET
    • Cancel a ongoing requested ride
      POST
    • Update the destination of the ride
      PUT
    • Add the passenger's rating, feedback, and tip
      PUT
    • Get the receipt of the rides.
      GET
  • Sandbox
    • Preset Prime Time percentage
      PUT
    • Propagate ride through ride status
      PUT
    • Preset types of rides for sandbox
      PUT
    • Driver availability for processing ride request
      PUT
  1. User

Request a Lyft

POST
/rides
User
Request a Lyft come pick you up at the given location.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.lyft.com/v1/rides' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
201 - Example 1
{
  "destination": {
    "address": "123 Main St, Anytown, CA",
    "lat": 36.9442175,
    "lng": -123.8679133
  },
  "origin": {
    "address": "123 Main St, Anytown, CA",
    "lat": 36.9442175,
    "lng": -123.8679133
  },
  "passenger": {
    "first_name": "Jane",
    "image_url": "https://public-api.lyft.com/static/images/user.png",
    "rating": 4.9,
    "user_id": "776630198662493392"
  },
  "ride_id": 123456789,
  "status": "pending"
}

Request

Body Params application/json
Represents a requested, ongoing, or finished Lyft ride
cost_token
string 
optional
A token that confirms the user has accepted current Prime Time and/or fixed price charges
destination
object  | allOf {1} 
optional
The requested location for passenger drop off
#/components/schemas/Location
optional
Could not resolve '#/components/schemas/Location'
origin
object  | allOf {1} 
required
The requested location for passenger pickup
#/components/schemas/Location
optional
Could not resolve '#/components/schemas/Location'
primetime_confirmation_token
string 
optional
A token that confirms the user has accepted current primetime charges (Deprecated)
ride_type
enum<string> 
required
The ID of the ride type
Allowed values:
lyftlyft_linelyft_pluslyft_premierlyft_luxlyft_luxsuv
Examples

Responses

🟢201An object with high level ride information. Use `GET /v1/rides/{id}` for more details.
application/json
Body
Minimal set of ride details
destination
object  | allOf {1} 
optional
The requested location for passenger drop off
#/components/schemas/Location
optional
Could not resolve '#/components/schemas/Location'
origin
object  | allOf {1} 
optional
The requested location for passenger pickup
#/components/schemas/Location
optional
Could not resolve '#/components/schemas/Location'
passenger
object (PassengerDetail) 
optional
Example:
null
first_name
string 
required
The passenger's first name
image_url
string 
required
The passenger's profile image
rating
string 
required
The passenger's rating
last_name
string 
optional
The passenger's last name
user_id
string 
optional
The passenger's lyft user id
ride_id
string 
optional
The ID of the requested ride
status
enum<string> 
optional
The status of the ride
Allowed values:
pendingacceptedarrivedpickedUpdroppedOffcanceledscheduledunknown
🟠400The 'error' field can be one of the following: * `bad_parameter`: A validation error occurred * `no_service_in_area`: origin is not within a Lyft service area * `ridetype_unavailable_in_region`: ridetype not supported at origin * `primetime_confirmati
🟠403User or client does not have permission to complete this request. Specific errors include: * `user_payment_required`: The user does not have a valid payment method on file. They must use the Lyft app to add or update one. * `account_disabled`: The user
🟠409The 'error' field will be one of the following: * `no_drivers_available`: No drivers are available right now * `user_already_in_ride`: User cannot request a ride while in a ride
Modified at 2023-08-15 05:38:33
Previous
List rides
Next
Get the ride detail of a given ride ID
Built with