Set FB ice breakers
Set up to 4 ice breakers per locale for a Facebook page (Meta's ice_breakers Messenger Profile field). One entry must use locale default. A tap sends a postback with the question's payload, which arrives as message.received with metadata.postbackPayload; use zernio:workflow:<workflowId> to start a workflow (it must be active on this account and profile). Replaces every locale already set.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.accountsettings.setMessengerIceBreakers({ path: { accountId: 'account_abc123', }, body: { ice_breakers: [ { locale: 'string', call_to_actions: [ { question: 'string', payload: 'string', }, ], }, ], },});console.log(data);{ "success": true}Set FB greeting text
Set the greeting text on a Facebook page's Messenger welcome screen (Meta's `greeting` Messenger Profile field). One entry must use locale `default`; add more for other locales. Meta personalises `{{user_first_name}}`, `{{user_last_name}}` and `{{user_full_name}}`. Replaces every locale already set.
List groups
Returns all account groups visible to the authenticated user. Groups can contain accounts from multiple profiles. For API keys scoped to specific profiles, only groups whose accounts all live in allowed profiles are returned.