◆ OAuth2 Playground v0.1.0

Get OAuth2 access tokens from your terminal

How it works

  1. Copy the command below and paste it into your terminal
  2. Open the URL shown in the response header Visit-Auth-URL
  3. Authorize the application to access your account

The terminal stays connected. Once you authorize in the browser, the token arrives automatically.

Available services

curl -sv https://oauth2playground.alterloop.dev/api/gmail/token > token.json

Generic usage

Replace {service} with the service name:

curl -sv https://oauth2playground.alterloop.dev/api/{service}/token > token.json

Query parameters

ParameterDescriptionExample
scopes Additional OAuth2 scopes (comma-separated) ?scopes=https://www.googleapis.com/auth/gmail.labels
format Output format: json (default) or env ?format=env
fields Comma-separated field names to include. Use token as an alias for access_token ?fields=token,expires_in or ?fields=token,expires_in&format=env