---
title: "Start a Google Drive import"
method: POST
path: "/api/v1/imports/google-drive"
tags: ["Sources"]
---

# Start a Google Drive import

`POST /api/v1/imports/google-drive`

## Request

- Base URL: `https://prismclip.com`
- URL: `https://prismclip.com/api/v1/imports/google-drive`
- Auth: HTTP bearer

Start an import of one explicit Google Drive video or audio file. Public files are attempted directly. Private files use the Google Drive connection established by the account through PrismClip's normal OAuth flow; provider tokens never enter this API payload.

## Request body

- object
  - `url` string, uri, required: URL for one explicit Google Drive video or audio file

## Response `200`

The existing import for this account and Google Drive file.

- object
  - `import` object, required
    - `jobId` string, uuid, required
    - `projectId` string, uuid, required
    - `provider` 'google_drive' | 'youtube', required
    - `status` string, required
    - `attemptCount` integer, required
    - `maxAttempts` integer, required
    - `errorCategory` string, nullable, required
    - `cancelRequestedAt` string, nullable, required: ISO 8601 timestamp
    - `expectedBytes` integer, nullable, required
    - `byteCount` integer, required
    - `createdAt` string, required: ISO 8601 timestamp
    - `updatedAt` string, required: ISO 8601 timestamp
  - `replayed` boolean, required

## Other responses

- `202`: The remote import was queued.
- `400`: The URL is invalid or does not identify one explicit Google Drive file.
- `401`: The API key is missing or invalid, or the private file requires an account Google Drive connection.
- `403`: The API key lacks projects:write.
- `413`: Provider metadata shows that the source exceeds the remote-source limit.
- `422`: The file is unavailable, is not media, or cannot be downloaded.
- `429`: The API-key rate limit was exceeded.
- `503`: Remote import storage, queueing, or Google Drive is unavailable.

---

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