Tools
Get required scopes for tools
Resolves required scopes for the specified tools at a given toolkit version. All requested tools must belong to the same toolkit. Returns the flat scope union plus per-tool structured scope requirements when available.
post/api/v3.1/tools/scopes/required
Request body
Example request
{
"tools": [
"GMAIL_FETCH_EMAILS",
"GMAIL_SEND_EMAIL"
],
"version": "latest"
}Response
Successfully retrieved scopes for the specified tools
Example response
{
"scopes_required": [
"channels:read",
"chat:write",
"https://www.googleapis.com/auth/gmail.modify",
"repo",
"user:email"
]
}