{
  "info": {
    "name": "Laposta — mcp.ai",
    "description": "REST API for the Laposta MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/laposta",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "laposta_campaign_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/campaign/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "campaign",
            "get",
            "all"
          ]
        },
        "description": "Retrieve all email campaigns from your Laposta account. Use this tool to list all campaigns with their configuration, delivery status, and analytics settings. Returns campaign details including sender",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_field_create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/field/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "field",
            "create"
          ]
        },
        "description": "Tool to create a custom field for a mailing list to define subscriber attributes. Use when you need to add custom fields like text, numeric, date, or select fields to a list. For select fields (select",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"in_form\": false,\n  \"in_list\": false,\n  \"list_id\": \"\",\n  \"options\": \"\",\n  \"datatype\": \"\",\n  \"required\": false,\n  \"defaultvalue\": \"\",\n  \"datatype_display\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_field_delete",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/field/delete",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "field",
            "delete"
          ]
        },
        "description": "Tool to permanently remove a custom field from a mailing list. Use when you need to delete a field that is no longer needed.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"field_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_field_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/field/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "field",
            "get"
          ]
        },
        "description": "Tool to retrieve specific field details by field_id. Use when you need to fetch complete information about a custom field including its configuration, data type, and available options.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"field_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_field_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/field/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "field",
            "get",
            "all"
          ]
        },
        "description": "Tool to retrieve all fields for a specific list in Laposta. Use when you need to see all field definitions, metadata, and settings for a list.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_field_update",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/field/update",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "field",
            "update"
          ]
        },
        "description": "Tool to modify field configuration in a Laposta list. Use when you need to update field properties such as name, datatype, required status, or display settings. WARNING: Modifying datatype removes all",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"in_form\": false,\n  \"in_list\": false,\n  \"list_id\": \"\",\n  \"datatype\": \"\",\n  \"field_id\": \"\",\n  \"required\": false,\n  \"defaultvalue\": \"\",\n  \"options_full\": \"\",\n  \"datatype_display\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_get_segment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/segment",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "segment"
          ]
        },
        "description": "Tool to retrieve specific segment details by segment_id. Use when you need to fetch complete information about a segment including its name, definition criteria, and timestamps.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"segment_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_list_clear_members",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/clear/members",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "clear",
            "members"
          ]
        },
        "description": "Tool to clear all active members from a list. Use when you need to remove all active member relationships while preserving the list itself. The operation is permanent and cannot be undone.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_list_create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "create"
          ]
        },
        "description": "Tool to create a new mailing list in Laposta to manage email subscribers. Use when you need to create a new list with zero members.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"locked\": false,\n  \"remarks\": \"\",\n  \"subscribe_notification_email\": \"\",\n  \"unsubscribe_notification_email\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_list_delete",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/delete",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "delete"
          ]
        },
        "description": "Permanently deletes a mailing list from Laposta. This action is irreversible - the list and all its configuration (including notification settings and metadata) will be permanently removed. Members ar",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_list_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "get"
          ]
        },
        "description": "Tool to retrieve specific list details by list_id. Use when you need to fetch complete information about a mailing list including its metadata, state, notification settings, and member statistics.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_list_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "get",
            "all"
          ]
        },
        "description": "Tool to retrieve all mailing lists from your Laposta account. Use when you need to view all lists including both active and deleted ones.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_list_update",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/update",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "update"
          ]
        },
        "description": "Tool to modify list properties such as name, remarks, or notification emails. Use when you need to update an existing mailing list's configuration.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"\",\n  \"locked\": false,\n  \"list_id\": \"\",\n  \"remarks\": \"\",\n  \"subscribe_notification_email\": \"\",\n  \"unsubscribe_notification_email\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_member_create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/member/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "member",
            "create"
          ]
        },
        "description": "Tool to add a new subscriber relationship to a list with custom fields and tracking info. Use when you need to create a new member in a list or update an existing member if upsert is enabled.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"ip\": \"\",\n  \"email\": \"\",\n  \"list_id\": \"\",\n  \"options\": {},\n  \"source_url\": \"\",\n  \"custom_fields\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_member_delete",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/member/delete",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "member",
            "delete"
          ]
        },
        "description": "Tool to permanently remove a member from a list. Use when you need to delete a member by their ID or email address.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"member_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_member_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/member/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "member",
            "get"
          ]
        },
        "description": "Tool to retrieve specific member details by member_id or email. Use when you need to get comprehensive information about a member from a list, including their status, registration details, and custom ",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"member_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_member_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/member/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "member",
            "get",
            "all"
          ]
        },
        "description": "Tool to retrieve all members from a specified Laposta mailing list. Use when you need to list or view all contacts in a list. Optionally filter by member state (active, unsubscribed, or cleaned).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"state\": \"\",\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_member_update",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/member/update",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "member",
            "update"
          ]
        },
        "description": "Tool to modify member data, status, or custom fields in a Laposta list. Use when updating existing member information or managing subscription state. Supports partial updates (only modified fields nee",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"\",\n  \"state\": \"\",\n  \"list_id\": \"\",\n  \"member_id\": \"\",\n  \"custom_fields\": {}\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_report_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/report/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "report",
            "get",
            "all"
          ]
        },
        "description": "Tool to retrieve performance metrics for all campaigns. Use when you need campaign statistics including opens, clicks, bounces, complaints, and unsubscribes.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_segment_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/segment/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "segment",
            "get",
            "all"
          ]
        },
        "description": "Tool to retrieve all segments from a mailing list. Use when you need to list or browse segments within a specific list.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_webhook_create",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "create"
          ]
        },
        "description": "Tool to register a new webhook for list events in Laposta. Use when you need to receive real-time notifications for subscriber events like subscriptions, modifications, or deactivations.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"event\": \"\",\n  \"blocked\": false,\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_webhook_delete",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/delete",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "delete"
          ]
        },
        "description": "Tool to permanently remove a webhook. Use when you need to delete a webhook from a list. Pending webhook requests are completed before deletion.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"webhook_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_webhook_get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "get"
          ]
        },
        "description": "Tool to retrieve specific webhook details by webhook_id. Use when you need to inspect webhook configuration including event type, URL, and status.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\",\n  \"webhook_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_webhook_get_all",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/get/all",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "get",
            "all"
          ]
        },
        "description": "Tool to retrieve all webhooks for a specific list. Use when you need to view all webhooks configured for a particular list.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"list_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "laposta_webhook_update",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/webhook/update",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "webhook",
            "update"
          ]
        },
        "description": "Tool to modify webhook configuration including URL, event type, or blocked status. Use when you need to update an existing webhook's settings.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"url\": \"\",\n  \"event\": \"\",\n  \"blocked\": false,\n  \"list_id\": \"\",\n  \"webhook_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}