PeumeAPI

Social publishing & inbox

Get a hosted link to connect any mailbox

One link for any address. The page asks for the email first, sends Gmail, Google Workspace, Outlook.com and Microsoft 365 (found by domain or MX) to their OAuth connect, and every other mailbox to IMAP with the provider's app-password steps. Valid for one hour.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/get-a-hosted-link-to-connect-any-mailbox \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "redirect_url": "your redirect url",
    "email": "your email"
  }
}'

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: get-a-hosted-link-to-connect-any-mailbox.

Parameters

redirect_urlstring

Where the page sends the user afterwards, with status, accountId, platform and email (or status=error and error).

emailstring

Prefills the address and skips the first screen.

namestring

Display name for sent mail; the page asks for it when absent.

reconnectAccountIdstring

An IMAP, Google or Microsoft account on this profile to reconnect; its accountId stays the same. IMAP asks only for the new password. Google and Microsoft open that provider's sign-in with the address as the hint and the held areas asked again. Other platforms answer 400, unknown ids 404.

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.