Initiate Driver/Recipient Phone Call
POSThttps://api.uber.com/v1/health/trips/call
¶ Authorization
OAuth 2.0 Bearer token with the health
scope.
¶ Description
Calls driver of an active or completed trip.
¶ Request Parameters
Name | Type | Description |
---|---|---|
request_id |
string |
A unique identifier of a trip’s request returned when creating a trip (required) |
phone_number |
string |
The phone number of the recipient being connected with the driver (required) |
¶ Example Request
Try It Replace the token and request id from an active or completed trip in the below request to use it in a terminal to see the details.
curl -X POST \
-H 'authorization: Bearer $UBER_TOKEN' \
-H 'content-type: application/json' \
-d '{
"request_id": "REPLACEREQUESTID",
"phone_number": "+11234567890"
}' \
'https://sandbox-api.uber.com/v1/health/trips/call'
¶ Example Response
HTTP 200 OK
¶ Endpoint Possible Errors
HTTP Status | Code | Description |
---|---|---|
400 | validation_failed | This error occurs when an incorrect or invalid request_id/phone_number is provided in the request path. Please use a valid request_id/phone_number to avoid this error. |
401 | unauthorized | Authorization failed. The client lacks valid auth credentials for the requested resource. |
403 | forbidden | The client does not have permission to access the requested resource. |
404 | not_found | The requested resource or entity could not be found on the server. |
500 | internal_server_error | An unexpected error occurred on the server while processing the request. |