Set Messenger Profile
Sets the ice breakers and persistent menu of a Facebook Page's Messenger. You can send up to 4 ice breakers and up to 3 menu items.
POST
header
x-api-key<token>Workspace API key, sent in the x-api-key header. Keys start with op_ and are created in the dashboard.
id*stringLength
1 <= lengthapplication/json- body
iceBreakers?array<>Items
items <= 4persistentMenu?array<>Items
items <= 3Updated Messenger profile
application/json- response
accountId*stringprofile*Example Request
import { Configuration, ConnectionsApi } from "@onepostly/sdk";const connectionsApi = new ConnectionsApi( new Configuration({ apiKey: process.env.ONEPOSTLY_API_KEY }));const response = await connectionsApi.setConnectionMessengerProfile({ id: "a1b2c3d4-e5f6-4a7b-8c9d-e0f1a2b3c4d5", setMessengerProfileBody: {},});console.log(response);Example Response
{ "accountId": "string", "profile": { "iceBreakers": [ { "question": "string", "payload": "string" } ], "persistentMenu": [ { "type": "string", "title": "string", "url": "string", "payload": "string" } ] }}