> ## Documentation Index
> Fetch the complete documentation index at: https://docs.logaflow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook

> Integrate Logaflow into any workflow using our webhooks events for new feedback.

## 1. Connect your webhook to Logaflow

1. Access the [integrations](https://app.logaflow.com/workspace/integrations) tab of the project you want to integrate asn select webhook option.
2. Add a webhook name.
3. Paste your webhook URL.
4. Se precisar adicionar algum cabeçalho para chamar seu webhook, espanda a opção 'HTTP Header (Optional)' e adicione sua chave e valor que deve ir no cabeçalho da chamada ao seu webhook.
5. Click test and save.

<Frame>
  <img src="https://mintcdn.com/logaflow/sVTXw2Y0YzW6aUvU/images/webhook_1.png?fit=max&auto=format&n=sVTXw2Y0YzW6aUvU&q=85&s=0a9b467fd89082fe62c9fdb51788b970" alt="Logaflow Webhook Integration" width="2052" height="1364" data-path="images/webhook_1.png" />
</Frame>

## 2. Webhook body

The webhook will perform a POST test call to the webhook url provided with the following body:

```JSON theme={null}
{
  "comment": "user comment",
  "type": "other",
  "url": "https://app.logaflow.com/...",
  "user": {
    "avatar": "https://avatars.githubusercontent.com/u/45521465?v=4",
    "email": "jhon.doe@gmail.com",
    "id": "123",
    "name": "Jhon Doe"
  }
}
```

#### Params

<ResponseField name="comment" type="string">
  Is the comment written in the feedback.
</ResponseField>

<ResponseField name="type" type="string">
  Is the type of feedback, the value of this field can be: bug, idea and other.
</ResponseField>

<ResponseField name="url" type="string">
  Is the url to open the feedback on the logaflow dashboard.
</ResponseField>

<ResponseField name="user" type="object" default="null">
  This field will not be null if the feedback creator is authenticated via SSO Auth or has entered the name and email for contact in the Logaflow widget.
</ResponseField>

<ResponseField name="user.id" type="string" default="undefined">
  This field will only be filled in if the user is authenticated via SSO and the JWT token used to authenticate the user contains this information.
</ResponseField>

<ResponseField name="user.name" type="string" default="undefined">
  This field will only be filled in if the user is authenticated via SSO or has filled in the Name field in the widget.
</ResponseField>

<ResponseField name="user.email" type="string" default="undefined">
  This field will only be filled in if the user is authenticated via SSO or has filled in the Email field in the widget.
</ResponseField>

<ResponseField name="user.avatar" type="string" default="undefined">
  This field will only be filled in if the user is authenticated via SSO and the JWT token used to authenticate the user contains this information.
</ResponseField>
