Google: Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info)
Google driveApps.driveAppsGet: arguments, response, policy and SDK examples.
← Drive apps operations · Get started
Operation google.drive_apps_get
Provider route: GET /drive/v3/apps/{appId}. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/google with npm, or alter-sdk-google with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { GoogleIntegration } from "@alter-ai/google";
async function execute(input: Parameters<GoogleIntegration["driveApps"]["driveAppsGet"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new GoogleIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.driveApps.driveAppsGet(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_google import GoogleIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = GoogleIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.drive_apps.drive_apps_get(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.appId | string | Required within parent | The ID of the app. |
query | object | Optional | Additional keys: not allowed |
query.fields | string | Optional | Selector specifying which fields to include in a partial response. |
query.prettyPrint | boolean | Optional | Returns response with indentations and line breaks. Default: true |
query.quotaUser | string | Optional | Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | Model | Root | Expand Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body |
Referenced models: Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body
Schemas
Section titled “Schemas”Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | The `apps` resource provides a list of apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details. Some resource methods (such as `apps.get`) require an `appId`. Use the `apps.list` method to retrieve the ID for an installed application. |
authorized | boolean | Optional | Whether the app is authorized to access data on the user's Drive. |
createInFolderTemplate | string | Optional | The template URL to create a file with this app in a given folder. The template contains the {folderId} to be replaced by the folder ID house the new file. |
createUrl | string | Optional | The URL to create a file with this app. |
hasDriveWideScope | boolean | Optional | Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive. |
icons | array | Optional | The various icons for the app. |
icons[] | Model | Each item | Expand Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body — icons item |
id | string | Optional | The ID of the app. |
installed | boolean | Optional | Whether the app is installed. |
kind | string | Optional | Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app". Default: drive#app |
longDescription | string | Optional | A long description of the app. |
name | string | Optional | The name of the app. |
objectType | string | Optional | The type of object this app creates such as a Chart. If empty, the app name should be used instead. |
openUrlTemplate | string | Optional | The template URL for opening files with this app. The template contains {ids} or {exportIds} to be replaced by the actual file IDs. For more information, see Open Files for the full documentation. |
primaryFileExtensions | array | Optional | The list of primary file extensions. |
primaryFileExtensions[] | string | Each item | |
primaryMimeTypes | array | Optional | The list of primary MIME types. |
primaryMimeTypes[] | string | Each item | |
productId | string | Optional | The ID of the product listing for this app. |
productUrl | string | Optional | A link to the product listing for this app. |
secondaryFileExtensions | array | Optional | The list of secondary file extensions. |
secondaryFileExtensions[] | string | Each item | |
secondaryMimeTypes | array | Optional | The list of secondary MIME types. |
secondaryMimeTypes[] | string | Each item | |
shortDescription | string | Optional | A short description of the app. |
supportsCreate | boolean | Optional | Whether this app supports creating objects. |
supportsImport | boolean | Optional | Whether this app supports importing from Google Docs. |
supportsMultiOpen | boolean | Optional | Whether this app supports opening more than one file. |
supportsOfflineCreate | boolean | Optional | Whether this app supports creating files when offline. |
useByDefault | boolean | Optional | Whether the app is selected as the default handler for the types it supports. |
Referenced models: Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body — icons item
Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body — icons item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
category | string | Optional | Category of the icon. Allowed values are: * `application` - The icon for the application. * `document` - The icon for a file associated with the app. * `documentShared` - The icon for a shared file associated with the app. |
iconUrl | string | Optional | URL for the icon. |
size | JSON | Optional | |
size (anyOf 1) | integer | Alternative | Size of the icon. Represented as the maximum of the width and height. Format: int32 |
size (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: google.drive_apps_get. Catalog operation: drive.apps.get. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
Required provider scopes: ["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/drive.appdata", "https://www.googleapis.com/auth/drive.apps.readonly", "https://www.googleapis.com/auth/drive.file", "https://www.googleapis.com/auth/drive.metadata", "https://www.googleapis.com/auth/drive.metadata.readonly", "https://www.googleapis.com/auth/drive.readonly"]