Twake public developers API v1

Example of Twacode

{
  ...
  "blocks": {
    "twacode": [
      {type: "button", content: "Open meeting", action: "<https://url>"}
    ]
  }
}

Liste des éléments Twacode

Blocs statiques

Dynamic blocks

Buttons are active objects, they allow to send a notification to the application.

The other interactive elements are passive, they do not send a notification, but their values will be sent with the next event (click on a button for example) in the form field.

Note on #chan and @username

If a user uses #chan or @username when sending a message or a command, it is possible to retrieve the corresponding identifier. In backend, #chan is transformed into #chan:chan-id and @username is transformed into @username:user-id.