Laposta icon

Laposta

Interact with Laposta API

Segment → Create

AI-generated

Summary

Create a new segment in a Laposta list.

Inputs

  • listId (required) — ID of the Laposta list to which the segment will belong.
  • name (required) — Name for the segment.
  • definition (required) — Segment definition in JSON format (e.g., {@{postcode}} = '1234AB').

Output shape

object

The JSON response from the Laposta API representing the created segment.

Examples

Example 1: Create a segment for Dutch postal code 1234AB.

Set listId to the target list ID, name to 'Postcode 1234AB', and definition to '{@postcode} = '1234AB''.

Links

Discussion