Call it
curl https://api.peume.com/v1/call/switch-browser-proxy \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"browserId": "your browserId"
}
}'const res = await fetch("https://api.peume.com/v1/call/switch-browser-proxy", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"browserId": "your browserId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/switch-browser-proxy",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"browserId": "your browserId"
}
},
)
print(res.json()["output"])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: switch-browser-proxy.
Parameters
browserIdRequiredstringThe id of a cloud browser YOU OWN (from /browser-sessions/provision).
modestring'managed' = residential proxy ($5/GB); 'direct' = no proxy ($0.20/GB).
managed · direct
countrystringProxy country for managed mode (lowercase ISO code).
ad · ae · af · ag · ai · al · am · an · ao · aq · ar · as …
rotatebooleanRotate to a new exit IP.
