Skip to Content
Developers @ LaunchGood
Authentication

Revoke a token

POST
/oauth/revoke

OAuth 2.0 token revocation (RFC 7009). Revoke an access or refresh token the client was issued, for example when an integration is uninstalled or a secret leaks. Answers 200 whether or not the token was valid, so a caller learns nothing about tokens it does not hold. Client credentials go in the form body, like issueToken. At most 10 requests a minute per client_id and 30 per address; past that, 429 with Retry-After.

Request Body

application/x-www-form-urlencoded
  1. body
token*string

The access or refresh token to revoke.

Formatpassword
Length1 <= length <= 4096
token_type_hint?string

access_token or refresh_token. A hint only: an unknown value is ignored, as RFC 7009 section 2.2.1 requires.

Lengthlength <= 64
client_id*string

The integration client id.

Length1 <= length <= 255
client_secret*string

The integration client secret.

Formatpassword
Length1 <= length <= 512

Response Body

The token is revoked, or was not a valid token. The body is empty.

Example Request
curl -X POST 'https://api2.launchgood.com/oauth/revoke' \  -H 'Content-Type: application/x-www-form-urlencoded' \  -d 'token=pa%24%24word&client_id=cl_8f3k2j9d&client_secret=pa%24%24word'
Example Response
Empty