Assets

Bulk import images from Google Drive

Queues each selected Google Drive file for asynchronous fetch-and-ingest via a background worker. Requires an active Google Drive connection (see POST /integrations/google-drive/connect). Poll GET /upload/imports/{batch_id} for progress.

POST
/upload/from-drive

Authorization

token_auth
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://v2.api.piktid.com/upload/from-drive" \  -H "Content-Type: application/json" \  -d '{    "file_ids": [      "string"    ]  }'
{
  "batch_id": "string",
  "accepted": 0
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty