Three lines

Uber

Developers

Revoke Token

POSThttps://auth.uber.com/oauth/v2/revoke

You are viewing the latest version of this endpoint.

Revoke

The POST /revoke endpoint allows you to revoke the provided token (access token, refresh token, etc) that was previosuly issued and associated to the provided client ID.

Resource

POST https://auth.uber.com/oauth/v2/revoke

Note: This endpoint requires https://auth.uber.com as a base URL.

Authorization

None

Query Parameters
Parameter Description
client_id The Client ID of your application.
client_secret The Client Secret of your application.
token The token (access, refresh) that you want to revoke.

Example Request - Revoke Access Token

You may provide an access token value in the token parameter to revoke the provided token.

curl -F 'client_secret=<CLIENT_SECRET>' \
    -F 'client_id=<CLIENT_ID>' \
    -F 'token=IA.xxxx' \
    https://auth.uber.com/oauth/v2/revoke
Response

Status-Code: 200 OK

{
    "message":"OK"
}

Example Request - Revoke Refresh Token

You may provide a refresh token value in the token parameter to revoke the provided token.

curl -F 'client_secret=<CLIENT_SECRET>' \
    -F 'client_id=<CLIENT_ID>' \
    -F 'token=MA.xxxx' \
    https://auth.uber.com/oauth/v2/revoke
Response

Status-Code: 200 OK

{
    "message":"OK"
}

Error Responses

Here are common error responses and the possible reason for each response.

Status Code: 404 Not Found

{
    "error":"invalid_request"
}

The token you provided does not exist.

Status Code: 400 Bad Request

{
    "error":"invalid_request"
}

The provided token was empty or invalid

Uber

Developers
© 2023 Uber Technologies Inc.