Get Account Installation Code

Get the JavaScript snippet that installs Chatway on a website. The installation ID identifies your Chatway account. It is not a widget ID, and no widget needs to be selected or created. Add script_html once to a shared layout that loads on every page. It can go inside <head> or <body>, preferably just before </body>. For Shopify, Wix, WordPress and other supported platforms, you can use Chatway’s native app or plugin instead. The snippet contains no API key or other secret.

GET https://developers.chatway.app/api/v1/installation/code

Example request

curl -X GET "https://developers.chatway.app/api/v1/installation/code" \
  -H "X-API-KEY: your_api_key"

Responses

200

application/json

Examples

Response 200 example

{
    "data": {
        "installation_id": "installation id",
        "script_url": "script url",
        "script_html": "script html",
        "placement": "placement",
        "duplicate_check": "duplicate check"
    }
}