Revokes Airtable PATs (Personal Access Tokens) via enterprise admin API.
bundle install
cp .env.example .env
# Edit .env with your credentials- AIRTABLE_API_KEY: Create a PAT at https://airtable.com/create/tokens with
enterprise.user:readscope - AIRTABLE_ENTERPRISE_ID: Your enterprise ID (starts with
ent) - AIRTABLE_SESSION_COOKIE: Copy the entire Cookie header from browser DevTools while logged in
- AIRTABLE_CSRF_TOKEN: Decode
__Host-airtable-session(base64) and extractcsrfSecret - API_TOKEN: Secret token for authenticating requests to this service
bundle exec ruby app.rb
# or
bundle exec pumaRevokes a PAT and returns the owner's email.
Request:
{"token": "patXXX.secret"}Response:
{"success": true, "owner_email": "[email protected]"}Requires Authorization: Bearer <API_TOKEN> header.