cURL
curl --request GET \ --url https://api.planetscale.com/v1/user \ --header 'Authorization: <api-key>'
{ "id": "<string>", "display_name": "<string>", "name": "<string>", "email": "<string>", "avatar_url": "<string>", "created_at": "<string>", "updated_at": "<string>", "two_factor_auth_configured": true, "default_organization": { "id": "<string>", "name": "<string>", "created_at": "<string>", "updated_at": "<string>", "deleted_at": "<string>" }, "sso": true, "managed": true, "directory_managed": true, "email_verified": true }
Get the user associated with this service token
A OAuth token must have at least one of the following scopes in order to use this API endpoint:
OAuth Scopes
read_user
Show child attributes