request_messenger_optin
Ask a Messenger contact to subscribe to marketing messages destructive
Description
Send Meta’s opt-in request (the notification_messages template) to someone ALREADY in a Messenger conversation with the Page, inside the 24-hour window. If they accept, Meta posts a messaging_optin webhook with their subscription token and they appear in list_messenger_subscribers. One identical-title request per person per week. Free to send. The PSID comes from the Page inbox.
Parameters
| Parameter | Type | Description |
|---|---|---|
pageId | string | Page that sends the request; omit when only one Page is connected |
psidrequired | string | the person’s Page-scoped id |
titlerequired | string | what they are subscribing to, ≤65 characters |
imageUrl | string | optional image shown with the opt-in request |
timezone | string | their timezone, e.g. America/New_York |
dryRun | boolean | true = preview the request and send nothing |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/request_messenger_optin.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"request_messenger_optin","arguments":{"psid":"<string>","title":"<string>"}}}
CLI
hermoso call request_messenger_optin --json '{"psid":"<string>","title":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
list_messenger_subscribersList Messenger marketing-message subscriberssend_messenger_marketing_messageSend a paid Messenger marketing messagedelete_messenger_marketing_campaignDelete a Messenger marketing-message campaignestimate_messenger_marketing_deliveryEstimate Messenger marketing-message delivery and costget_messenger_marketing_message_statusDid a Messenger marketing message land?list_messenger_marketing_campaignsList Messenger marketing-message campaignscreate_messenger_marketing_campaignCreate a Messenger marketing-message campaign