Workflows

Workflows allow you to automate actions based on segments. You can create workflows that trigger daily recurrence reviews or assign users based on segment visibility. On this page, we'll cover how to create and delete workflows via the API, and the payload sent by the webhook action.

The workflow model

The workflow model contains information about your automated workflows, including their name, status, and associated nodes (trigger, action, notification).

Properties

  • Name
    uuid
    Type
    string
    Description

    UUID of the workflow.

  • Name
    name
    Type
    string
    Description

    The name of the workflow, auto-generated from the segment name and workflow type.

  • Name
    status
    Type
    string
    Description

    The status of the workflow. Can be draft, active, paused, or ended.

  • Name
    team_id
    Type
    integer
    Description

    The unique identifier of the team that owns the workflow.

  • Name
    is_automatic
    Type
    boolean
    Description

    Whether the workflow was created automatically.

  • Name
    nodes
    Type
    array
    Description

    The list of nodes (trigger, action, notification) attached to the workflow.

  • Name
    created_at
    Type
    timestamp
    Description

    Timestamp of when the workflow was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    Timestamp of when the workflow was last updated.


GET/v3/workflows

List all workflows

This endpoint allows you to retrieve a paginated list of all your workflows. By default, a maximum of ten workflows are shown per page.

Optional attributes

  • Name
    page
    Type
    integer
    Description

    Number of the page to display.

  • Name
    filter
    Type
    integer
    Description

    Narrow your search by using filter from JSON:API norms
    Allowed filters: name, status, team_id

  • Name
    sort
    Type
    integer
    Description

    Sort the elements in a specific order by using JSON:API norms
    Allowed sorts: name, created_at

Request

GET
/v3/workflows
curl -G https://api.bx.feedier.com/v3/workflows \
    -H "Authorization: Bearer {token}"

Response

{
    "data": [
        {
            "uuid": "550e8400-e29b-41d4-a716-446655440000",
            "name": "Recommended - Daily Review",
            "status": "active",
            "team_id": 2,
            "is_automatic": false,
            "created_at": "2026-03-02T10:00:00.000000Z",
            "updated_at": "2026-03-02T10:00:00.000000Z"
        }
    ],
    "links": {
        "first": "https://api.bx.feedier.com/v3/workflows?page=1",
        "last": "https://api.bx.feedier.com/v3/workflows?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            },
            {
                "url": "https://api.bx.feedier.com/v3/workflows?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "https://api.bx.feedier.com/v3/workflows",
        "per_page": 10,
        "to": 1,
        "total": 1
    }
}

POST/v3/workflows

Create a workflow

This endpoint allows you to create a new workflow based on an existing segment. The workflow will be created with a trigger, an action, and a notification node configured automatically based on the segment and workflow type.

Required attributes

  • Name
    segment_id
    Type
    integer
    Description

    The unique identifier of the segment to base the workflow on. Must belong to your organization.

  • Name
    workflow_type
    Type
    string
    Description

    The type of workflow to create. Allowed values: daily_review or assign_user.

Workflow types

  • daily_review: Creates a daily recurrence trigger, a live feed segment review action, and a notification sent to the users linked to the segment.
  • assign_user: Creates a segment-based trigger and an assign user action based on the users linked to the segment.

Request

POST
/v3/workflows
curl -X POST https://api.bx.feedier.com/v3/workflows \
    -H "Authorization: Bearer {token}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"segment_id": 715, "workflow_type": "daily_review"}'

Response

{
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Recommended- Daily review",
    "status": "active",
    "team_id": 1,
    "is_automatic": false,
    "created_at": "2026-03-24T16:06:19+00:00",
    "updated_at": "2026-03-24T16:06:19+00:00",
    "nodes": [
        {
            "name": "recurrence",
            "type": "trigger",
            "settings": {
                "on": "every_day",
                "ends": "never",
                "time": "09:00",
                "time_cycle": "day",
                "time_cycle_frequency": 1
            },
            "created_at": "2026-03-24T16:06:19+00:00",
            "updated_at": "2026-03-24T16:06:19+00:00"
        },
        {
            "name": "live_feed_segment_review",
            "type": "action",
            "settings": {
                "segment": {
                    "id": 31,
                    "name": "feedback manager assigned last 24H"
                }
            },
            "created_at": "2026-03-24T16:06:19+00:00",
            "updated_at": "2026-03-24T16:06:19+00:00"
        },
        {
            "name": "message",
            "type": "notification",
            "settings": {
                "emails": [
                    "manager@example.com"
                ],
                "team_members": [
                    {
                        "id": 1
                    }
                ]
            },
            "created_at": "2026-03-24T16:06:19+00:00",
            "updated_at": "2026-03-24T16:06:19+00:00"
        }
    ]
}

GET/v3/workflows/:uuid

Retrieve a workflow

This endpoint allows you to retrieve a specific workflow by providing its unique identifier (UUID). The response will automatically include the nodes associated with the workflow.

Request

GET
/v3/workflows/123
curl https://api.bx.feedier.com/v3/workflows/123 \
    -H "Authorization: Bearer {token}"

Response

{
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "name": "Recommended - Daily review",
    "status": "active",
    "team_id": 1,
    "is_automatic": false,
    "created_at": "2026-03-04T09:21:32+00:00",
    "updated_at": "2026-03-04T09:21:32+00:00",
    "nodes": [
        {
            "name": "recurrence",
            "type": "trigger",
            "settings": {
                "on": "every_day",
                "ends": "never",
                "time": "09:00",
                "time_cycle": "day",
                "time_cycle_frequency": 1
            },
            "created_at": "2026-03-04T09:21:32+00:00",
            "updated_at": "2026-03-04T09:21:32+00:00"
        },
        {
            "name": "live_feed_segment_review",
            "type": "action",
            "settings": {
                "segment": {
                    "id": 30,
                    "name": "feedback assigned last 24H"
                }
            },
            "created_at": "2026-03-04T09:21:32+00:00",
            "updated_at": "2026-03-04T09:21:32+00:00"
        },
        {
            "name": "message",
            "type": "notification",
            "settings": {
                "emails": [
                    "manager1@example.com",
                    "manager20@example.com"
                ],
                "team_members": [
                    {
                        "id": 1
                    },
                    {
                        "id": 20
                    }
                ]
            },
            "created_at": "2026-03-04T09:21:32+00:00",
            "updated_at": "2026-03-04T09:21:32+00:00"
        }
    ]
}

DELETE/v3/workflows/:uuid

Delete a workflow

This endpoint allows you to delete a workflow by its UUID. Deleting a workflow also removes all associated nodes and executions.

Request

DELETE
/v3/workflows/6300ec7b-2f2f-4fd9-9906-383ad90b5cfb
curl -X DELETE https://api.bx.feedier.com/v3/workflows/6300ec7b-2f2f-4fd9-9906-383ad90b5cfb \
    -H "Authorization: Bearer {token}"

Webhook action

A workflow can send a webhook to your own endpoint. When a workflow uses a segment trigger followed by a webhook action, Feedier sends the matching feedback and its segment to the URL configured on the action.

When is it sent

The segment trigger is evaluated every time an event is recorded on a feedback. The webhook is sent when the feedback matches the segment FQL rules.

  • A workflow sends the webhook only once per feedback, even if the feedback matches the segment again later.
  • If the trigger has a retroactive start date, feedback created before that date are ignored.

The request

  • Name
    method
    Type
    string
    Description

    POST

  • Name
    headers
    Type
    object
    Description

    Content-Type: application/json

  • Name
    timeout
    Type
    integer
    Description

    Your endpoint must answer within 30 seconds.

  • Name
    retry
    Type
    integer
    Description

    If your endpoint answers with a 5xx status, the request is retried once after 1 second. Any other error (4xx, timeout, connection error) is not retried and the workflow execution is marked as failed.


Webhook payload

Properties

  • Name
    type
    Type
    string
    Description

    Always webhook.

  • Name
    event
    Type
    string
    Description

    Always segment.action.

  • Name
    feedback
    Type
    object
    Description

    The feedback that matched the segment. See the feedback object below.

  • Name
    segment
    Type
    object
    Description

    The segment used by the workflow trigger. See the segment object below.

  • Name
    created_at
    Type
    timestamp
    Description

    The date the webhook was sent (not the date the feedback was created).

  • Name
    team_id
    Type
    integer
    Description

    The unique identifier of the team that owns the workflow.

The feedback object

  • Name
    id
    Type
    integer
    Description

    Unique identifier for the feedback.

  • Name
    carrier_id
    Type
    integer
    Description

    The unique identifier linked to the source this feedback belongs to.

  • Name
    fingerprint
    Type
    string
    Description

    A unique identifier for the feedback within a given source.

  • Name
    source
    Type
    string
    Description

    The channel the feedback came from (e.g. trustpilot, email, csv).

  • Name
    created_at
    Type
    timestamp
    Description

    The date where the feedback has been created.

  • Name
    completed_at
    Type
    timestamp
    Description

    The date where the feedback has been fully completed (all items has been answered).

  • Name
    nps_profile
    Type
    string
    Description

    The NPS Profile of the feedback (positive, neutral or negative).

  • Name
    satisfaction_ratio
    Type
    integer
    Description

    The Satisfaction Ratio of the feedback (0-100%).

  • Name
    attributes
    Type
    Attribute[]
    Description

    List of all the attributes attached to the feedback. Each attribute contains name, label and value.

  • Name
    items
    Type
    Item[]
    Description

    List of all the items attached to the feedback. Each item contains option, value, created_at, question_id, question (name, order, type, required) and topics (list of topic names).

  • Name
    answers
    Type
    array
    Description

    Deprecated, use items instead. Kept for backward compatibility.

The segment object

  • Name
    id
    Type
    integer
    Description

    Unique identifier for the segment.

  • Name
    team_id
    Type
    integer
    Description

    The unique identifier of the team that owns the segment.

  • Name
    name
    Type
    string
    Description

    The name of the segment.

  • Name
    type
    Type
    string
    Description

    The type of the segment. Can be normal, locked or topic.

  • Name
    fql
    Type
    string
    Description

    The Feedback Query Language (FQL) rules applied to the segment.

  • Name
    editable_by
    Type
    string
    Description

    People that can edit this segment. Can be admin or assigned.

  • Name
    links
    Type
    array
    Description

    The users and teams linked to the segment. Each link contains id, linkable_type (App\Models\User or App\Models\Team), linkable_id, linkable (the user or team object), created_at and updated_at.

  • Name
    created_at
    Type
    timestamp
    Description

    Timestamp of when the segment was created.

  • Name
    updated_at
    Type
    timestamp
    Description

    Timestamp of when the segment was last updated.

Payload

{
    "type": "webhook",
    "event": "segment.action",
    "feedback": {
        "id": 26800,
        "carrier_id": 91,
        "fingerprint": "abc123def456",
        "source": "trustpilot",
        "created_at": "2024-11-06T15:23:02+00:00",
        "completed_at": null,
        "nps_profile": null,
        "satisfaction_ratio": 45.0,
        "attributes": [
            {
                "name": "city",
                "label": "City",
                "value": "Lille"
            }
        ],
        "items": [
            {
                "option": null,
                "value": "My experience was awesome during this car demonstration!",
                "created_at": "2024-11-06T15:23:02+00:00",
                "question_id": 344,
                "question": {
                    "name": "Comments",
                    "order": 3,
                    "type": "textarea",
                    "required": 0
                },
                "topics": ["service", "property"]
            }
        ],
        "answers": [
            {
                "deprecated": "Warning, this field will be deprecated in version 3.56.0, please use include[]=items instead (see developers.feedier.com)",
                "id": 242565,
                "feedback_id": 26800,
                "question_id": 344,
                "question_option_id": null,
                "value": "My experience was awesome during this car demonstration!",
                "created_at": "2024-11-06T15:23:02+00:00"
            }
        ]
    },
    "segment": {
        "id": 715,
        "team_id": 2,
        "name": "Recommended",
        "type": "normal",
        "fql": "[{\"Form\": {\"$in\": [2986, 2987]}}]",
        "editable_by": "admin",
        "links": [],
        "created_at": "2024-07-22T12:23:53+00:00",
        "updated_at": "2024-11-22T06:49:39+00:00"
    },
    "created_at": "2024-11-06T15:24:10+00:00",
    "team_id": 2
}

Was this page helpful?