Skip to main content

Get access token

Action ID: tools.google_api.get_access_token Given service account credentials as a JSON string, retrieve a JWT token for Google API calls. Reference: https://googleapis.dev/python/google-auth/latest/reference/google.oauth2.service_account.html#google.oauth2.service_account.Credentials.from_service_account_info

Secrets

Required secrets:
  • google_api: required values GOOGLE_API_CREDENTIALS.

Input fields

scopes
array[string] | null
Google API scopes, defaults to [“https://www.googleapis.com/auth/cloud-platform”].Default: null.
subject
string | null
Google API subject.Default: null.