OverviewProductsPlatformsAPI ReferenceResources
Account Settings

Set FB ice breakers

PUThttps://zernio.com/api/v1/accounts/{accountId}/messenger-ice-breakers

Set up to 4 ice breakers per locale for a Facebook page (Meta's ice_breakers Messenger Profile field). Replaces every locale already set.

  • 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).

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

accountIdstringRequired

Body

application/json

What every request needs

ice_breakersarray of MessengerIceBreakerLocaleRequired

One entry per locale; one must use locale default.

localestringRequired

Meta locale, e.g. default, en_US.

call_to_actionsarray of objectRequired

Responses

Success· the request worked

Errors· the request failed

PUT/v1/accounts/{accountId}/messenger-ice-breakers
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}
OpenAPI specification
Was this page helpful?