Generate Access Token (client_credentials)

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

https://developer.uber.com/docs/vouchers/guides/authentication
**
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/vouchers/guides/authentication#usage and can be selected for your app from the developer dashboard.

Request Body

[{"name"=>"client_secret", "value"=>"{{client_secret}}", "datatype"=>"string"}, {"name"=>"client_id", "value"=>"{{client_id}}", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"{{grant}}", "datatype"=>"string"}, {"name"=>"scope", "value"=>"organizations.voucher_programs", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
User-Agentstring

RESPONSES

status: OK

{"access_token":"redacted","token_type":"Bearer","expires_in":2592000,"scope":"organizations.voucher_programs"}