+49 69 83008980 service@xqueue.com
Benötigen Sie Hilfe?

Im Maileon Help-Center finden Sie umfassende Dokumentationen zu unserem System.

Beliebte Suchanfragen: Importe | Rest-API | Integrationen | SMS

Create Webhook

Sie sind hier:

Creates a webhook in the newsletter account.

Warning: Custom contact fields are currently not supported properly and will be fixed.

POST https://api.maileon.com/1.0/webhooks

Example

Request

POST https://api.maileon.com/1.0/webhooks
Authorization: Basic: XXXXXXXXXXXXXXXX
Content-Type: application/json

{
  "url": "https://hosting.maileon.com/service/examples/en/webhooks_catch_example/webhook.php",
  "event": "unsubscription",
  "urlParams": [
    {
      "custom_contact_field": null,
      "standard_contact_field": "email",
      "custom_value": null,
      "name": "email"
    },
    {
      "custom_contact_field": null,
      "standard_contact_field": "external_id",
      "custom_value": null,
      "name": "eid"
    }
  ],
  "customFields": [],
  "standardFields": [
    "email",
    "external_id"
  ],
  "eventFields": [
    "msg_id",
    "method"
  ]
}

Response

Status 201 Created
<id>1915</id>
Inhaltsverzeichnis