PeumeAPI

Social publishing & inbox

Upload a file

Either `multipart/form-data` with the file under `file` plus `accountId`, `name` (defaults to the file name) and `parentId`, or JSON with a public `url` the file is fetched from (100 MB cap). Large files go through the provider's resumable upload.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/upload-a-file \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "name": "your name",
    "contentType": "image/png",
    "url": "your url"
  }
}'

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: upload-a-file.

Parameters

accountIdRequiredstring
nameRequiredstring
contentTypeRequiredstring

Example: image/png

parentIdstring

Target folder; the root when omitted.

urlRequiredstring
convertTostring

Google Drive only: import the bytes as a Docs, Sheets or Slides file (a text or Office file becomes an editable document). OneDrive answers 400.

application/vnd.google-apps.document · application/vnd.google-apps.spreadsheet · application/vnd.google-apps.presentation

Start free · $1 of calls included

Every API your business needs. One key.

7,000+ data and AI APIs behind one key, with backup sources built in.