Inbox App response must have a canvas key

I’m getting a strange configure initialize error on my app. Here’s the json I’m returning:

{
  "content": {
    "components": [
      {
        "type": "button",
        "label": "Click Me!",
        "style": "primary",
        "id": "url_button",
        "action": {
          "type": "submit"
        }
      }
    ]
  }
}

Here’s the response I’m getting:

{"support_url":null,"error_code":"invalid_third_party_inbox_app_initialize_response","message":"Inbox App response must have a canvas key"}

I’m not seeing any mention of a canvas key in any documentation. Anyone else get this error?

Hey Andre, the structure of the JSON you send back should look like this:

{
  "canvas": {
    "content": {
      "components": [
        {
          "type": "button",
          "label": "Click Me!",
          "style": "primary",
          "id": "url_button",
          "action": {
            "type": "submit"
          }
        }
      ]
    }
  }
}

You’re just missing the top level “canvas” key. For more information take a look at our docs here: https://developers.intercom.com/canvas-kit-reference/reference/canvas