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.
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"
]
}Changes
Changed in 4 of the 61 revisions of this API.18
- ○
added the optional property
per_tool_requirements/items/scope_requirements/all_of/items/anyOf[subschema #2]/any_of/items/anyOf[subschema #2]/sourceto the response with the200statusresponse-optional-property-added
- ○
added the optional property
per_tool_requirements/items/scope_requirements/all_of/items/anyOf[subschema #2]/sourceto the response with the200statusresponse-optional-property-added
- ○
added the optional property
per_tool_requirements/items/scope_requirements/sourceto the response with the200statusresponse-optional-property-added
- ○
- ▲
the
per_tool_requirements/items/scope_requirements/all_of/items/anyOf[subschema #2]/any_of/items/response's property type/format changed fromstring/to/for status200response-property-type-changed
- ○
added the optional property
per_tool_requirements/items/scope_requirements/all_of/items/anyOf[subschema #2]/whento the response with the200statusresponse-optional-property-added
- ○
added
subschema #1subschema #2to theper_tool_requirements/items/scope_requirements/all_of/items/anyOf[subschema #2]/any_of/items/response propertyanyOflist for the response status200response-property-any-of-added
- ▲
- ○
the endpoint scheme security
CookieAuthwas removed from the APIapi-security-removed
- ○
the endpoint scheme security
UserApiKeyAuthwas removed from the APIapi-security-removed
- ○
- ○
endpoint added
endpoint-added
- ○