---
updatedAt: 2026-08-17T12:55:06.000Z
agentTools:
  projectIndex: https://cabify-api.readme.io/llms.txt
---

# Get a Flexible Ride

Returns a flexible ride.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "Rider": {
        "description": "Input data defining the rider of a journey. If your platform books journeys on behalf of your own end customers (e.g. the customers of a marketplace or app built on top of Cabify) and those customers never need to log into Cabify's own apps, we recommend leaving `id` empty and providing `name`/`mobile` instead, rather than creating a User per customer. This avoids having to manage account activation for people who never interact with Cabify directly, and still lets the rider follow their journey and contact the driver through the journey's `public_url`.\n",
        "example": {
          "email": "riderEmail@example.com",
          "locale": "ES",
          "mobile": {
            "mobile_cc": "34",
            "mobile_num": "123456789"
          },
          "name": "John Doe"
        },
        "properties": {
          "email": {
            "description": "Rider's email.",
            "format": "email",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "Id of the Rider that will travel, if the Rider is a User of your company this will be the User's id (can be same as requester_id to request a journey for yourself). Leave empty when the Rider is external to your company, providing `name` and `mobile` instead. Requesting a journey for a Rider does not require that User to be activated (they don't need to have set a password or logged into Cabify's apps).",
            "pattern": "^[a-f0-9]{32}$",
            "type": "string"
          },
          "locale": {
            "description": "Rider's Locale. Syntax consists of language two-letter tag which then will be suffixed with Client's country.",
            "nullable": true,
            "type": "string"
          },
          "mobile": {
            "$ref": "#/components/schemas/Mobile"
          },
          "name": {
            "description": "Rider's name. Required when the rider is external.",
            "type": "string"
          }
        },
        "title": "Rider",
        "type": "object"
      },
      "NotFound": {
        "description": "The server did not find a current representation for the target resource",
        "example": {
          "error": "user with provided ID does not exist"
        },
        "properties": {
          "message": {
            "nullable": true,
            "type": "string"
          }
        },
        "title": "NotFound",
        "type": "object"
      },
      "MeetingPoint": {
        "description": "A specific meeting point within a hub location (e.g. a terminal at an airport). Obtained from the hub data returned in the estimates response.",
        "example": {
          "id": "mp_001",
          "loc": [
            40.4722,
            -3.5608
          ],
          "name": "Terminal 1 - Puerta de llegadas"
        },
        "properties": {
          "id": {
            "description": "Unique identifier of the meeting point.",
            "type": "string"
          },
          "loc": {
            "description": "Coordinates of the meeting point as [latitude, longitude].",
            "items": {
              "format": "float",
              "type": "number"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          },
          "name": {
            "description": "Display name of the meeting point.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "loc",
          "name"
        ],
        "title": "MeetingPoint",
        "type": "object"
      },
      "StopResponse": {
        "description": "Stop of a journey. A journey needs to have at least 2 stops: the first one is considered the pickup point the last one the destination.",
        "example": {
          "addr": "Calle de la cruz",
          "city": "Madrid",
          "contact": {
            "mobile_cc": "34",
            "mobile_num": "123456789",
            "name": "Jhon Doe",
            "stop_action": "pickup"
          },
          "country": "ES",
          "id": "123",
          "loc": [
            40.4169335,
            -3.7061872
          ],
          "name": "Work",
          "num": "1428",
          "postal_code": "28002"
        },
        "properties": {
          "addr": {
            "description": "If an address was provided when creating the journey this field will have its value.",
            "type": "string"
          },
          "city": {
            "description": "City name where the address is located, e.g. Madrid.",
            "type": "string"
          },
          "contact": {
            "$ref": "#/components/schemas/Contact"
          },
          "contacts": {
            "default": [],
            "description": "List of contacts for the stop, in case of multiple contacts.",
            "items": {
              "$ref": "#/components/schemas/Contact"
            },
            "type": "array"
          },
          "country": {
            "description": "Country name where the address is located, e.g. España.",
            "type": "string"
          },
          "hit_at": {
            "description": "DateTime when the driver arrived at the indicated point.",
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "description": "Id of the stop.",
            "type": "string"
          },
          "instr": {
            "description": "Set of instructions for the Driver.",
            "type": "string"
          },
          "loc": {
            "default": [],
            "description": "The actual coordinates of the address. Required floats per location latitude and longitude.",
            "items": {
              "format": "float",
              "type": "number"
            },
            "type": "array"
          },
          "meeting_point": {
            "$ref": "#/components/schemas/MeetingPoint"
          },
          "name": {
            "description": "A short name for previously stored addresses. These can be viewed in places.",
            "type": "string"
          },
          "num": {
            "description": "Street number.",
            "type": "string"
          },
          "postal_code": {
            "description": "Postal code of the address.",
            "type": "string"
          }
        },
        "required": [
          "loc"
        ],
        "title": "StopResponse",
        "type": "object"
      },
      "UnauthorizedRequest": {
        "description": "The token used is invalid either because it is expired or because it is incorrect.",
        "example": {
          "error": "Unauthorized"
        },
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "title": "UnauthorizedRequest",
        "type": "object"
      },
      "FlexibleRide": {
        "description": "Details of a Flexible Ride.",
        "example": {
          "claimable_since": "2022-08-04T19:28:18.375Z",
          "expires_at": "2022-08-04T19:28:18.375Z",
          "id": "0dfc7c0bbbd300e6f9212827106e8911",
          "inserted_at": "2022-02-17T09:30:34.831Z",
          "journey_id": "96fc6f24-142b-11ed-bba7-56a6f40ef0bf",
          "label_slug": "apiV4",
          "max_price": {
            "amount": 100,
            "currency": "EUR"
          },
          "message": "driver message",
          "product_id": "75dd566797369d1f0927102e5356ce59",
          "public_url": "/fr/5ceg7v77qm8x28c9",
          "reason": "reservation",
          "requester_id": "0dfc7c0bbbd300e6f9212827106e8911",
          "rider": {
            "email": "riderEmail@example.com",
            "locale": "es",
            "mobile": {
              "mobile_cc": "34",
              "mobile_num": "123456789"
            },
            "name": "Jhon Doe"
          },
          "rider_metadata": {},
          "sender_name": "sender",
          "status": "pending",
          "stops": [
            {
              "addr": "Calle de la cruz",
              "city": "Madrid",
              "contact": {
                "mobile_cc": "34",
                "mobile_num": "123456789",
                "name": "Jhon Doe",
                "stop_action": "pickup"
              },
              "country": "ES",
              "id": "123",
              "loc": [
                40.4169335,
                -3.7061872
              ],
              "name": "Work",
              "num": "1428"
            }
          ],
          "updated_at": "2022-08-04T19:28:18.375Z"
        },
        "properties": {
          "claimable_since": {
            "description": "UTC ISO 8601 timestamp since when the flexible ride can be claimed.",
            "nullable": true,
            "type": "string"
          },
          "expires_at": {
            "description": "ISO 8601 datetime when the flexible ride will expire.",
            "nullable": true,
            "type": "string"
          },
          "id": {
            "description": "ID of the flexible ride.",
            "type": "string"
          },
          "inserted_at": {
            "description": "UTC ISO 8601 creation timestamp.",
            "type": "string"
          },
          "journey_id": {
            "description": "ID of the journey associated to the flexible ride, once claimed.",
            "nullable": true,
            "type": "string"
          },
          "label_slug": {
            "description": "Cost-center / project code.",
            "nullable": true,
            "type": "string"
          },
          "max_price": {
            "description": "Max price defined as budget ceiling on journey creation.",
            "properties": {
              "amount": {
                "description": "Amount in cents. *For CLP this field is in currency units.",
                "type": "integer"
              },
              "currency": {
                "description": "Currency Code in ISO_4217 format.",
                "type": "string"
              }
            },
            "type": "object"
          },
          "message": {
            "description": "Driver-visible message to be set on create journey.",
            "nullable": true,
            "type": "string"
          },
          "product_id": {
            "description": "ID of the vehicle category/product used for this flexible ride, as returned by the estimates endpoint.",
            "type": "string"
          },
          "public_url": {
            "description": "URL Path that links to the page to claim the flexible ride.",
            "type": "string"
          },
          "reason": {
            "description": "Journey reason to be set once created.",
            "nullable": true,
            "type": "string"
          },
          "requester_id": {
            "description": "ID of the user who requested the flexible ride.",
            "type": "string"
          },
          "rider": {
            "$ref": "#/components/schemas/Rider"
          },
          "rider_metadata": {
            "description": "Client metadata.",
            "nullable": true,
            "type": "object"
          },
          "sender_name": {
            "description": "Name shown to the rider as the sender, in the message sent when the ride is created and on the claim page. Defaults to the client's name.",
            "nullable": true,
            "type": "string"
          },
          "status": {
            "description": "Status of the flexible ride (can be one of: pending, claimed, failed, expired, cancelled).",
            "type": "string"
          },
          "stops": {
            "items": {
              "$ref": "#/components/schemas/StopResponse"
            },
            "type": "array"
          },
          "updated_at": {
            "description": "UTC ISO 8601 last-update timestamp.",
            "type": "string"
          }
        },
        "title": "FlexibleRide",
        "type": "object"
      },
      "Contact": {
        "description": "Contact details on each Stop. Include this object if you want the Driver to see additional Contact details on each Stop.",
        "example": {
          "mobile_cc": "34",
          "mobile_num": "123456789",
          "name": "Jhon Doe",
          "stop_action": "pickup"
        },
        "properties": {
          "mobile_cc": {
            "description": "Mobile Country Code of the Contact of the Stop passed when creating the Journey.",
            "type": "string"
          },
          "mobile_num": {
            "description": "Mobile Number of the Contact of the Stop passed when creating the Journey.",
            "type": "string"
          },
          "name": {
            "description": "Name of the Contact of the Stop passed when creating the Journey.",
            "type": "string"
          },
          "stop_action": {
            "description": "Action to be performed on the Stop. Possible values: 'pickup', 'dropoff'. Ignored when it is included in the `contact` field (`stop/contact`), i.e. only taken into account when specific for the contacts within `stop/contacts`.",
            "enum": [
              "pickup",
              "dropoff"
            ],
            "nullable": false,
            "type": "string"
          }
        },
        "title": "Contact",
        "type": "object"
      },
      "Mobile": {
        "description": "Input Mobile Number. Required when the rider is external. Journey's SMS state updates will arrive to this mobile.",
        "example": {
          "mobile_cc": "34",
          "mobile_num": "123456789"
        },
        "properties": {
          "mobile_cc": {
            "description": "Mobile Country Code. Required if mobileNum is provided.",
            "nullable": false,
            "pattern": "^\\+?\\d+$",
            "type": "string"
          },
          "mobile_num": {
            "description": "Rider's phone number.",
            "nullable": false,
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "mobile_cc",
          "mobile_num"
        ],
        "title": "Mobile",
        "type": "object"
      },
      "InternalServerError": {
        "description": "indicates that an internal server error occurred",
        "example": {
          "error": "Something went wrong"
        },
        "properties": {
          "error": {
            "type": "string"
          }
        },
        "title": "InternalServerError",
        "type": "object"
      }
    },
    "securitySchemes": {
      "access_token": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "contact": {
      "email": "ridehailing.api@cabify.support"
    },
    "license": {
      "name": "Cabify Api support",
      "url": "https://cabify.com"
    },
    "title": "Ride-hailing API",
    "version": "4.0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/api/v4/flexible_rides/{flexible_ride_id}": {
      "get": {
        "callbacks": {},
        "description": "Returns a flexible ride.\n",
        "operationId": "getFlexibleRide",
        "parameters": [
          {
            "description": "UUID of the flexible ride",
            "example": "f0397896-19aa-11ed-b6fe-7aaea8067492",
            "in": "path",
            "name": "flexible_ride_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlexibleRide"
                }
              }
            },
            "description": "Success"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedRequest"
                }
              }
            },
            "description": "Unauthorized"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFound"
                }
              }
            },
            "description": "Not found"
          },
          "500": {
            "content": {
              "application/text": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError"
                }
              }
            },
            "description": "Internal server error"
          }
        },
        "summary": "Get a Flexible Ride",
        "tags": [
          "Flexible Rides"
        ]
      }
    }
  },
  "security": [
    {
      "access_token": []
    }
  ],
  "servers": [
    {
      "description": "Sandbox",
      "url": "https://cabify-sandbox.com",
      "variables": {}
    },
    {
      "description": "Production",
      "url": "https://cabify.com",
      "variables": {}
    }
  ],
  "tags": [
    {
      "description": "This section covers operations regarding Flexible Rides, which are a pre-defined, company-funded journey where origin and destination are fixed in advance and the rider claims the ride on demand, with no fixed pickup time, no app requirement, and no Cabify account needed",
      "name": "Flexible Rides"
    }
  ]
}
```