1. Generate Access Token

POST https://login.uber.com/oauth/v2/token

This API call generates an access token in order to verify access.

Retrieve your clientid and clientsecret from your developer dashboard. The scopes available are located https://developer.uber.com/docs/health/guides/authentication#overview and can be selected for your app from the developer dashboard.

Request Body

[{"name"=>"client_id", "value"=>"{{Client_ID}}", "datatype"=>"string"}, {"name"=>"client_secret", "value"=>"{{Client_Secret}}", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"client_credentials", "datatype"=>"string"}, {"name"=>"scope", "value"=>"health.sandbox", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
User-Agentstring

RESPONSES

status: OK

{"access_token":"Redacted","token_type":"Bearer","expires_in":2592000,"scope":"health.sandbox"}