Receiving Messages and User Events

Pinnacle SDKs provide a process() method to securely handle incoming webhook requests:

  • Verifies webhook signatures by comparing your signing secret with the PINNACLE-SIGNING-SECRET in the headers.
  • Parses and validates the request payload.
  • Returns fully typed MessageEvent or UserEvent objects.

Events

  • MESSAGE.RECEIVED: Inbound messages and button clicks from users.
  • MESSAGE.STATUS: Status updates for your sent messages.
  • USER.TYPING: User started typing.