---
title: "Create Google Drive service account"
method: POST
path: "/v1/integrations/google-drive/service-accounts"
---

# Create Google Drive service account

`POST /v1/integrations/google-drive/service-accounts`

## Request

- Base URL: `https://api.runbear.io`
- URL: `https://api.runbear.io/v1/integrations/google-drive/service-accounts`
- Auth: HTTP bearer

Upload a Google service account key to create a new integration. The key is validated by testing Google Drive API access.

## Request body

- object
  - `keyFileContent` string, required: The JSON key file content as a string (not base64-encoded)

## Response `201`

Default Response

- GoogleDriveServiceAccountInfo
  - `id` string, uuid, required: Unique identifier
  - `email` string, required: Service account email address
  - `projectId` string, required: Google Cloud project ID
  - `agentCount` number, required: Number of agents using this service account
  - `createdAt` string, required: ISO 8601 creation timestamp

## Other responses

- `400`: Default Response

---

[API](https://skmtc.dev/runbear/apis/runbear-api.md) - [All operations](https://skmtc.dev/runbear/apis/runbear-api/llms.txt) - [OpenAPI document](https://skmtc.dev/runbear/apis/runbear-api/revisions/c6a9c3066a5a?raw)
