Retrieve the user's ID. For OAuth access tokens, the scopes associated with the token used are also returned. For tokens with the user.email:read
scope, the user's email is also returned.
Endpoint
Get user info
get
https://api.airtable.com/v0/meta/whoami
Authentication | Personal access token, OAuth integration |
Scope | No scopes are required for this endpoint |
User role | Any user |
Billing plans | All plans |
string A user ID | |
optional< string > The email address of the token's owner.
Only returned if the token has the | |
optional< array of > The scopes the token has. Only returned if accessing via an OAuth access token. |
Request (example)
Copy
$curl "https://api.airtable.com/v0/meta/whoami" \-H "Authorization: Bearer YOUR_TOKEN"
200 – Response (example)
{"id": "usrL2PNC5o3H4lBEi"}
Request (example)
Copy
$curl "https://api.airtable.com/v0/meta/whoami" \-H "Authorization: Bearer YOUR_TOKEN"
200 – Response (example)
{"email": "foo@bar.com","id": "usrL2PNC5o3H4lBEi"}