1. Connect your webhook to Logaflow

  1. Access the 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.

2. Webhook body

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

{
  "comment": "user comment",
  "type": "other",
  "url": "https://app.logaflow.com/...",
  "user": {
    "avatar": "https://avatars.githubusercontent.com/u/45521465?v=4",
    "email": "[email protected]",
    "id": "123",
    "name": "Jhon Doe"
  }
}

Params

comment
string

Is the comment written in the feedback.

type
string

Is the type of feedback, the value of this field can be: bug, idea and other.

url
string

Is the url to open the feedback on the logaflow dashboard.

user
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.

user.id
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.

user.name
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.

user.email
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.

user.avatar
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.