Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.appIdstringRequired within parentThe ID of the app.
queryobjectOptionalAdditional keys: not allowed
query.fieldsstringOptionalSelector specifying which fields to include in a partial response.
query.prettyPrintbooleanOptionalReturns response with indentations and line breaks.
Default: true
query.quotaUserstringOptionalAvailable 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 media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand 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

Gets a specific app For more information, see Return user info (https: developers google com workspace drive api guides user-info) — response body
FieldTypePresenceDescription and constraints
$objectRootThe `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.
authorizedbooleanOptionalWhether the app is authorized to access data on the user's Drive.
createInFolderTemplatestringOptionalThe 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.
createUrlstringOptionalThe URL to create a file with this app.
hasDriveWideScopebooleanOptionalWhether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive.
iconsarrayOptionalThe various icons for the app.
icons[]ModelEach itemExpand 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
idstringOptionalThe ID of the app.
installedbooleanOptionalWhether the app is installed.
kindstringOptionalOutput only. Identifies what kind of resource this is. Value: the fixed string "drive#app".
Default: drive#app
longDescriptionstringOptionalA long description of the app.
namestringOptionalThe name of the app.
objectTypestringOptionalThe type of object this app creates such as a Chart. If empty, the app name should be used instead.
openUrlTemplatestringOptionalThe 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.
primaryFileExtensionsarrayOptionalThe list of primary file extensions.
primaryFileExtensions[]stringEach item
primaryMimeTypesarrayOptionalThe list of primary MIME types.
primaryMimeTypes[]stringEach item
productIdstringOptionalThe ID of the product listing for this app.
productUrlstringOptionalA link to the product listing for this app.
secondaryFileExtensionsarrayOptionalThe list of secondary file extensions.
secondaryFileExtensions[]stringEach item
secondaryMimeTypesarrayOptionalThe list of secondary MIME types.
secondaryMimeTypes[]stringEach item
shortDescriptionstringOptionalA short description of the app.
supportsCreatebooleanOptionalWhether this app supports creating objects.
supportsImportbooleanOptionalWhether this app supports importing from Google Docs.
supportsMultiOpenbooleanOptionalWhether this app supports opening more than one file.
supportsOfflineCreatebooleanOptionalWhether this app supports creating files when offline.
useByDefaultbooleanOptionalWhether 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
FieldTypePresenceDescription and constraints
$objectRoot
categorystringOptionalCategory 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.
iconUrlstringOptionalURL for the icon.
sizeJSONOptional
size (anyOf 1)integerAlternativeSize of the icon. Represented as the maximum of the width and height.
Format: int32
size (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

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"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.