# Webhooks

You can get information about new chat messages.

Our chat webhooks will send an application/json data to the URL specified while creating new webhook.

List of defined API hooks is available on /<app_key>/api-hooks/. There are only two fields for hook to define and only url is required. This is the url to which data will be sent to. The other field, token, allows user to set up the token value that will be passed in every request for this hook. The token is passed as X-UE-Token header. This header will be present only if token is defined.:

Content-Type: application/json
Accept: application/json
X-UE-Token: /<the token value>

Serialized message data will be sent to given url as POST request in Json format:

{
    "id": 13,
    "conversation": 1,
    "content": "This is the message",
    "timestamp": "2017-07-08T09:37:01.715541Z",
    "author": {
        "name": "John Doe",
        "type": "agent",
        "id": 1
    },
    "auto": false,
    "read": true,
    "is_native": true,
    "source": 1,
    "source_context": {},
}