Call it
curl https://api.peume.com/v1/call/change-who-answers-a-conversation-handover \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"conversationId": "your conversationId",
"accountId": "your accountId",
"action": "release"
}
}'const res = await fetch("https://api.peume.com/v1/call/change-who-answers-a-conversation-handover", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"conversationId": "your conversationId",
"accountId": "your accountId",
"action": "release"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/change-who-answers-a-conversation-handover",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"conversationId": "your conversationId",
"accountId": "your accountId",
"action": "release"
}
},
)
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: change-who-answers-a-conversation-handover.
Parameters
conversationIdRequiredstringThe conversation ID
accountIdRequiredstringSocial account ID
actionRequiredstring`request` is Facebook and Instagram only. `take` and `request` are refused with `platform_not_supported` on Instagram accounts connected with Instagram Login.
release · take · pass · request
targetstringWhatsApp only. With action pass: send control to Meta Business Agent instead of the escalation partner.
ai_agent
targetAppIdstringFacebook and Instagram only, required with action pass: the Meta app id receiving the thread.
metadatastringFree-form note forwarded verbatim to the app receiving control (its messaging_handovers webhook).
