Reputation: 3
I have tried using the /requests endpoint with my Uber developer account's owner and developer accounts, but I get this error: 401 unauthorized, { "message": "This endpoint requires at least one of the following scopes: request.delegate.tos_accept, request, request.delegate", "code": "unauthorized" }
My HTTP call is as follows:
POST https://sandbox-api.uber.com/v1.2/requests
Headers:
Authorization: Bearer ACCESS_TOKEN_OF_MY_DEVELOPER_ACCOUNT Accept-Language: en_US Content-Type: application/json
Parameters: {"start_latitude":"21.1741125","start_longitude":"72.8121804","end_latitude":"21.2048986","end_longitude":"72.8386455"}
Whereas I get proper response from /requests/estimate endpoint with the same access token, for the same location parameters.
Please help with this.
Upvotes: 0
Views: 1076
Reputation: 1252
The problem is you have not requested the 'request' scope during the oauth authorization process.
Upvotes: 1