PeumeAPI

Social publishing & inbox · Google

Create a hosted Google Picker session

Creates a hosted Google Picker session so your end user can grant access to Drive files.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/create-a-hosted-google-picker-session \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "mimeTypes": [
      "image/png",
      "image/jpeg",
      "application/pdf"
    ],
    "multiselect": true
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: create-a-hosted-google-picker-session.

Parameters

accountIdRequiredstring

A Google account connected with `scopes=files`.

redirectUrlstring

Where the browser goes when the user finishes. Absolute `http(s)` URL or a custom app scheme (`myapp://...`); relative, protocol-relative and script URLs are refused. Optional when you rely on the `file.picked` webhook.

fileIdsarray

Drive file ids to show the user first (Google Picker `DocsView.setFileIds`), for example to ask for access to files your app already knows about. Pre-navigation only: the user still has to pick them.

mimeTypesarray

Only show files of these exact media types.

Example: ["image/png","image/jpeg","application/pdf"]

multiselectboolean

false limits the pick to one file.

Example: true

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.