{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/mandrill/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition","tabs","tab"]},"type":"markdown"},"seo":{"title":"Webhooks Calls","siteUrl":"https://dev.mailjet.com/","projectTitle":"Mailjet Developer Documentation","description":"Swap Mandrill webhooks for Mailjet's eventcallbackurl resource. Register per-event callbacks for sent, open, click, bounce, blocked, and spam in real time.","image":"https://dev.mailjet.com/og-image.png","lang":"en-US","keywords":["Mailjet API","Email API","Content API","SMTP Relay","transactional email","email delivery","Send API","email templates","developer documentation"],"meta":[{"name":"og:type","content":"website"},{"name":"og:site_name","content":"Mailjet Developer Documentation"},{"name":"twitter:card","content":"summary_large_image"},{"name":"robots","content":"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"},{"name":"googlebot","content":"index, follow, max-snippet:-1, max-image-preview:large"}],"jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://dev.mailjet.com/#organization","name":"Mailjet","alternateName":"Sinch Mailjet","url":"https://www.mailjet.com","logo":"https://assets.mailjet.com/lib/images/mailjetLogo/mj_logo_with_text_color.png","parentOrganization":{"@type":"Organization","name":"Sinch","url":"https://www.sinch.com"}},{"@type":"WebSite","@id":"https://dev.mailjet.com/#website","name":"Mailjet Developer Documentation","description":"Official developer documentation for the Mailjet Email API, Content API and SMTP Relay.","url":"https://dev.mailjet.com/","inLanguage":"en-US","publisher":{"@id":"https://dev.mailjet.com/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://dev.mailjet.com/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]},"llmstxt":{"hide":false,"title":"Mailjet Developer Documentation","description":"Developer documentation for the Mailjet Email API, Content API and SMTP Relay - guides, API references and code samples for sending, templating and tracking email at scale.","details":{"content":"Mailjet (part of Sinch) provides APIs for sending and managing email.\n\nThis documentation covers four main areas:\n\n- **Email API** - the Send API (v3 and v3.1) for transactional and marketing email,\n  plus contact management, segmentation, campaigns, statistics, webhooks, the Parse API\n  and the Mailjet Templating Language.\n- **Content API** - programmatic management of email templates, template contents,\n  images, labels and authentication tokens (v1).\n- **SMTP Relay** - sending through Mailjet's SMTP servers, including custom headers.\n- **API Reference** - the complete, generated reference for every endpoint, built directly\n  from the OpenAPI specifications.\n\nBase URL for all REST APIs: `https://api.mailjet.com`.\nAuthentication uses HTTP Basic auth with an API key and secret key.\n\n## Machine-readable entry points\n\nPrefer these when you need the API surface in as few requests as possible:\n\n- `/openapi/openapi-mailjet.md` - the **complete** Email API reference (every endpoint,\n  grouped by resource) as a single Markdown document.\n- `/openapi/openapi-passport.md` - the **complete** Content API reference as a single\n  Markdown document.\n- `/_bundle/openapi/openapi-mailjet.yaml` - the raw, fully bundled OpenAPI 3 description\n  of the Email API.\n- `/_bundle/openapi/openapi-passport.yaml` - the raw, fully bundled OpenAPI 3 description\n  of the Content API.\n- `/sitemap.xml` - every indexable URL on this site.\n\nEvery page on this site is also available as clean Markdown by appending `.md` to its URL."},"sections":[{"title":"Email API","description":"Sending, contacts, campaigns, statistics, webhooks and templating.","includeFiles":["docs/email-api/**/*.md"],"excludeFiles":[]},{"title":"Content API","description":"Manage templates, template contents, images, labels and tokens.","includeFiles":["docs/content-api/**/*.md","docs/content-api.md"],"excludeFiles":[]},{"title":"SMTP Relay","description":"Send email through Mailjet's SMTP servers.","includeFiles":["docs/smtp-relay/**/*.md"],"excludeFiles":[]},{"title":"API Reference","description":"Complete generated reference for every Mailjet API endpoint.","includeFiles":["openapi/openapi-mailjet.yaml","openapi/openapi-passport.yaml","docs/api-reference/**/*.md"],"excludeFiles":[]},{"title":"Migrating from Mandrill","description":"Guides for switching from Mandrill to Mailjet.","includeFiles":["docs/mandrill/**/*.md"],"excludeFiles":[]}],"excludeFiles":[]},"priority":0.3},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"webhooks-calls","__idx":0},"children":["Webhooks Calls"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"introduction","__idx":1},"children":["Introduction"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Instead of polling to get data, you can use our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/email-api/webhooks/webhooks-overview/"},"children":["Event API"]}," for your system to be notified in near real-time when any event you've subscribed to happen."," ","The Mailjet resource involved here is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventcallbackurl"]},", which lets you define a webhook per event type we support (including sent,open,click,bounce,blocked and spam)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"list","__idx":2},"children":["List"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maps to /webhooks/list.json"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PHP","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"<?php\nrequire 'vendor/autoload.php';\nuse \\Mailjet\\Resources;\n$mj = new \\Mailjet\\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'));\n$response = $mj->get(Resources::$Eventcallbackurl);\n$response->success() && var_dump($response->getData());\n?>\n","lang":"php"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Bash","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# View : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\ncurl -s \\\n\t-X GET \\\n\t--user \"$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE\" \\\n\thttps://api.mailjet.com/v3/REST/eventcallbackurl\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Node.js","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"/**\n *\n * View : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n *\n */\nvar mailjet = require('node-mailjet').connect(\n  process.env.MJ_APIKEY_PUBLIC,\n  process.env.MJ_APIKEY_PRIVATE\n)\nvar request = mailjet.get('eventcallbackurl').request()\nrequest\n  .on('success', function(response, body) {\n    console.log(response.statusCode, body)\n  })\n  .on('error', function(err, response) {\n    console.log(response.statusCode, err)\n  })\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"\"\"\"\nView : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n\"\"\"\nfrom mailjet_rest import Client\nimport os\napi_key = os.environ['MJ_APIKEY_PUBLIC']\napi_secret = os.environ['MJ_APIKEY_PRIVATE']\nmailjet = Client(auth=(api_key, api_secret))\nresult = mailjet.eventcallbackurl.get()\nprint result.status_code\nprint result.json()\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ruby","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"# View : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\nMailjet.configure do |config|\n  config.api_key = ENV['MJ_APIKEY_PUBLIC']\n  config.secret_key = ENV['MJ_APIKEY_PRIVATE']\n  config.default_from = 'your default sending address'\nend\nvariable = Mailjet::Eventcallbackurl.all()\n","lang":"ruby"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Go","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"go","header":{"controls":{"copy":{}}},"source":"/*\nView : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n*/\npackage main\nimport (\n\t\"fmt\"\n\t. \"github.com/mailjet/mailjet-apiv3-go\"\n\t\"github.com/mailjet/mailjet-apiv3-go/resources\"\n\t\"os\"\n)\nfunc main () {\n\tmailjetClient := NewMailjetClient(os.Getenv(\"MJ_APIKEY_PUBLIC\"), os.Getenv(\"MJ_APIKEY_PRIVATE\"))\n\tvar data []resources.Eventcallbackurl\n\t_, _, err := mailjetClient.List(\"eventcallbackurl\", &data)\n\tif err != nil {\n\t  fmt.Println(err)\n\t}\n\tfmt.Printf(\"Data array: %+v\\n\", data)\n}\n","lang":"go"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"package com.my.project;\nimport com.mailjet.client.errors.MailjetException;\nimport com.mailjet.client.MailjetClient;\nimport com.mailjet.client.MailjetRequest;\nimport com.mailjet.client.MailjetResponse;\nimport com.mailjet.client.resource.Eventcallbackurl;\npublic class MyClass {\n    /**\n     * View : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n     */\n    public static void main(String[] args) throws MailjetException {\n      MailjetClient client;\n      MailjetRequest request;\n      MailjetResponse response;\n      client = new MailjetClient(\"api key\", \"api secret\");\n      request = new MailjetRequest(Eventcallbackurl.resource);\n      response = client.get(request);\n      System.out.println(response.getStatus());\n      System.out.println(response.getData());\n    }\n}\n","lang":"java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Count\": 1,\n  \"Data\": [\n    {\n      \"APIKeyID\": \"\",\n      \"EventType\": \"\",\n      \"ID\": \"\",\n      \"IsBackup\": \"false\",\n      \"Status\": \"\",\n      \"Url\": \"\",\n      \"Version\": \"\"\n    }\n  ],\n  \"Total\": 1\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Issue a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," request to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventcallbackurl"]}," to list all the resources for your current API key."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"add","__idx":3},"children":["Add"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maps to /webhooks/add.json"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PHP","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"<?php\nrequire 'vendor/autoload.php';\nuse \\Mailjet\\Resources;\n$mj = new \\Mailjet\\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'));\n$body = [\n    'EventType' => \"open\",\n    'Url' => \"https://mydomain.com/event_handler\"\n];\n$response = $mj->post(Resources::$Eventcallbackurl, ['body' => $body]);\n$response->success() && var_dump($response->getData());\n?>\n","lang":"php"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Bash","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Create an handler for the open event\ncurl -s \\\n\t-X POST \\\n\t--user \"$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE\" \\\n\thttps://api.mailjet.com/v3/REST/eventcallbackurl \\\n\t-H 'Content-Type: application/json' \\\n\t-d '{\n\t\t\"EventType\":\"open\",\n\t\t\"Url\":\"https://mydomain.com/event_handler\"\n\t}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Node.js","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"/**\n *\n * Create an handler for the open event\n *\n */\nvar mailjet = require('node-mailjet').connect(\n  process.env.MJ_APIKEY_PUBLIC,\n  process.env.MJ_APIKEY_PRIVATE\n)\nvar request = mailjet.post('eventcallbackurl').request({\n  EventType: 'open',\n  Url: 'https://mydomain.com/event_handler',\n})\nrequest\n  .on('success', function(response, body) {\n    console.log(response.statusCode, body)\n  })\n  .on('error', function(err, response) {\n    console.log(response.statusCode, err)\n  })\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ruby","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"# Create an handler for the open event\nMailjet.configure do |config|\n  config.api_key = ENV['MJ_APIKEY_PUBLIC']\n  config.secret_key = ENV['MJ_APIKEY_PRIVATE']\n  config.default_from = 'your default sending address'\nend\nvariable = Mailjet::Eventcallbackurl.create(event_type: \"open\",url: \"https://mydomain.com/event_handler\")\n","lang":"ruby"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"\"\"\"\nCreate an handler for the open event\n\"\"\"\nfrom mailjet_rest import Client\nimport os\napi_key = os.environ['MJ_APIKEY_PUBLIC']\napi_secret = os.environ['MJ_APIKEY_PRIVATE']\nmailjet = Client(auth=(api_key, api_secret))\ndata = {\n  'EventType': 'open',\n  'Url': 'https://mydomain.com/event_handler'\n}\nresult = mailjet.eventcallbackurl.create(data=data)\nprint result.status_code\nprint result.json()\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Go","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"go","header":{"controls":{"copy":{}}},"source":"/*\nCreate an handler for the open event\n*/\npackage main\nimport (\n\t\"fmt\"\n\t. \"github.com/mailjet/mailjet-apiv3-go\"\n\t\"github.com/mailjet/mailjet-apiv3-go/resources\"\n\t\"os\"\n)\nfunc main () {\n\tmailjetClient := NewMailjetClient(os.Getenv(\"MJ_APIKEY_PUBLIC\"), os.Getenv(\"MJ_APIKEY_PRIVATE\"))\n\tvar data []resources.Eventcallbackurl\n\tmr := &MailjetRequest{\n\t  Resource: \"eventcallbackurl\",\n\t}\n\tfmr := &FullMailjetRequest{\n\t  Info: mr,\n\t  Payload: &resources.Eventcallbackurl {\n      EventType: \"open\",\n      Url: \"https://mydomain.com/event_handler\",\n    },\n\t}\n\terr := mailjetClient.Post(fmr, &data)\n\tif err != nil {\n\t  fmt.Println(err)\n\t}\n\tfmt.Printf(\"Data array: %+v\\n\", data)\n}\n","lang":"go"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"package com.my.project;\nimport com.mailjet.client.errors.MailjetException;\nimport com.mailjet.client.MailjetClient;\nimport com.mailjet.client.MailjetRequest;\nimport com.mailjet.client.MailjetResponse;\nimport com.mailjet.client.resource.Eventcallbackurl;\npublic class MyClass {\n    /**\n     * Create an handler for the open event\n     */\n    public static void main(String[] args) throws MailjetException {\n      MailjetClient client;\n      MailjetRequest request;\n      MailjetResponse response;\n      client = new MailjetClient(\"api key\", \"api secret\");\n      request = new MailjetRequest(Eventcallbackurl.resource)\n\t\t\t\t\t\t.property(Eventcallbackurl.EVENTTYPE, \"open\")\n\t\t\t\t\t\t.property(Eventcallbackurl.URL, \"https://mydomain.com/event_handler\");\n      response = client.post(request);\n      System.out.println(response.getStatus());\n      System.out.println(response.getData());\n    }\n}\n","lang":"java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Count\": 1,\n  \"Data\": [\n    {\n      \"APIKey\": \"\",\n      \"EventType\": \"\",\n      \"ID\": \"\",\n      \"IsBackup\": \"false\",\n      \"Status\": \"\",\n      \"Url\": \"\",\n      \"Version\": \"\"\n    }\n  ],\n  \"Total\": 1\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Issue a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," request to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventcallbackurl"]}," to create a new event subscriber."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"info","__idx":4},"children":["Info"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maps to /webhooks/add.json"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Issue a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["GET"]}," request to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventcallbackurl"]}," with the ID or the event type to list it. See #List above."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"update","__idx":5},"children":["Update"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maps to /webhooks/update.json"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PHP","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"<?php\nrequire 'vendor/autoload.php';\nuse \\Mailjet\\Resources;\n$mj = new \\Mailjet\\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'));\n$body = [\n    'APIKeyID' => \"\",\n    'IsBackup' => \"false\",\n    'Status' => \"\",\n    'Url' => \"\",\n    'Version' => \"\"\n];\n$response = $mj->put(Resources::$Eventcallbackurl, ['id' => $id, 'body' => $body]);\n$response->success() && var_dump($response->getData());\n?>\n","lang":"php"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Bash","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Modify : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\ncurl -s \\\n\t-X PUT \\\n\t--user \"$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE\" \\\n\thttps://api.mailjet.com/v3/REST/eventcallbackurl/$ID \\\n\t-H 'Content-Type: application/json' \\\n\t-d '{\n\t\t\"APIKeyID\":\"\",\n\t\t\"IsBackup\":\"false\",\n\t\t\"Status\":\"\",\n\t\t\"Url\":\"\",\n\t\t\"Version\":\"\"\n\t}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Node.js","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"/**\n *\n * Modify : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n *\n */\nvar mailjet = require('node-mailjet').connect(\n  process.env.MJ_APIKEY_PUBLIC,\n  process.env.MJ_APIKEY_PRIVATE\n)\nvar request = mailjet\n  .put('eventcallbackurl')\n  .id($ID)\n  .request({\n    APIKeyID: '',\n    IsBackup: 'false',\n    Status: '',\n    Url: '',\n    Version: '',\n  })\nrequest\n  .on('success', function(response, body) {\n    console.log(response.statusCode, body)\n  })\n  .on('error', function(err, response) {\n    console.log(response.statusCode, err)\n  })\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ruby","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"# Modify : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\nMailjet.configure do |config|\n  config.api_key = ENV['MJ_APIKEY_PUBLIC']\n  config.secret_key = ENV['MJ_APIKEY_PRIVATE']\n  config.default_from = 'your default sending address'\nend\ntarget = Mailjet::Eventcallbackurl.find($ID)\ntarget.update_attributes(apikey_id: \"\",is_backup: \"false\",status: \"\",url: \"\",version: \"\")\n","lang":"ruby"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"\"\"\"\nModify : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n\"\"\"\nfrom mailjet_rest import Client\nimport os\napi_key = os.environ['MJ_APIKEY_PUBLIC']\napi_secret = os.environ['MJ_APIKEY_PRIVATE']\nmailjet = Client(auth=(api_key, api_secret))\nid = '$ID'\ndata = {\n  'APIKeyID': '',\n  'IsBackup': 'false',\n  'Status': '',\n  'Url': '',\n  'Version': ''\n}\nresult = mailjet.eventcallbackurl.update(id=id, data=data)\nprint result.status_code\nprint result.json()\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Go","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"go","header":{"controls":{"copy":{}}},"source":"/*\nModify : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n*/\npackage main\nimport (\n\t\"fmt\"\n\t. \"github.com/mailjet/mailjet-apiv3-go\"\n\t\"github.com/mailjet/mailjet-apiv3-go/resources\"\n\t\"os\"\n)\nfunc main () {\n\tmailjetClient := NewMailjetClient(os.Getenv(\"MJ_APIKEY_PUBLIC\"), os.Getenv(\"MJ_APIKEY_PRIVATE\"))\n\tmr := &MailjetRequest{\n\t  Resource: \"eventcallbackurl\",\n\t  ID: RESOURCE_ID,\n\t}\n\tfmr := &FullMailjetRequest{\n\t  Info: mr,\n\t  Payload: &resources.Eventcallbackurl {\n      APIKeyID: ,\n      IsBackup: \"false\",\n      Status: ,\n      Url: ,\n      Version: ,\n    },\n\t}\n\terr := mailjetClient.Put(fmr)\n\tif err != nil {\n\t  fmt.Println(err)\n\t}\n}\n","lang":"go"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"package com.my.project;\nimport com.mailjet.client.errors.MailjetException;\nimport com.mailjet.client.MailjetClient;\nimport com.mailjet.client.MailjetRequest;\nimport com.mailjet.client.MailjetResponse;\nimport com.mailjet.client.resource.Eventcallbackurl;\npublic class MyClass {\n    /**\n     * Modify : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n     */\n    public static void main(String[] args) throws MailjetException {\n      MailjetClient client;\n      MailjetRequest request;\n      MailjetResponse response;\n      client = new MailjetClient(\"api key\", \"api secret\");\n      request = new MailjetRequest(Eventcallbackurl.resource, ID)\n\t\t\t\t\t\t.property(Eventcallbackurl.APIKEYID, )\n\t\t\t\t\t\t.property(Eventcallbackurl.ISBACKUP, \"false\")\n\t\t\t\t\t\t.property(Eventcallbackurl.STATUS, )\n\t\t\t\t\t\t.property(Eventcallbackurl.URL, )\n\t\t\t\t\t\t.property(Eventcallbackurl.VERSION, );\n      response = client.put(request);\n      System.out.println(response.getStatus());\n      System.out.println(response.getData());\n    }\n}\n","lang":"java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Count\": 1,\n  \"Data\": [\n    {\n      \"APIKeyID\": \"\",\n      \"EventType\": \"\",\n      \"ID\": \"\",\n      \"IsBackup\": \"false\",\n      \"Status\": \"\",\n      \"Url\": \"\",\n      \"Version\": \"\"\n    }\n  ],\n  \"Total\": 1\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Issue a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," request to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventcallbackurl"]}," with the ID to update"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"delete","__idx":6},"children":["Delete"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Maps to /webhooks/delete.json"]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"PHP","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"php","header":{"controls":{"copy":{}}},"source":"<?php\nrequire 'vendor/autoload.php';\nuse \\Mailjet\\Resources;\n$mj = new \\Mailjet\\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'));\n$response = $mj->delete(Resources::$Eventcallbackurl, ['id' => $id]);\n$response->success() && var_dump($response->getData());\n?>\n","lang":"php"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Bash","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"# Delete : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\ncurl -s \\\n\t-X DELETE \\\n\t--user \"$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE\" \\\n\thttps://api.mailjet.com/v3/REST/eventcallbackurl/$ID \\\n\t-H 'Content-Type: application/json' \\\n\t-d '{\n\t}'\n","lang":"bash"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Node.js","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"javascript","header":{"controls":{"copy":{}}},"source":"/**\n *\n * Delete : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n *\n */\nvar mailjet = require('node-mailjet').connect(\n  process.env.MJ_APIKEY_PUBLIC,\n  process.env.MJ_APIKEY_PRIVATE\n)\nvar request = mailjet\n  .delete('eventcallbackurl')\n  .id($ID)\n  .request()\nrequest\n  .on('success', function(response, body) {\n    console.log(response.statusCode, body)\n  })\n  .on('error', function(err, response) {\n    console.log(response.statusCode, err)\n  })\n","lang":"javascript"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Ruby","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"ruby","header":{"controls":{"copy":{}}},"source":"# Delete : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\nMailjet.configure do |config|\n  config.api_key = ENV['MJ_APIKEY_PUBLIC']\n  config.secret_key = ENV['MJ_APIKEY_PRIVATE']\n  config.default_from = 'your default sending address'\nend\ntarget = Mailjet::Eventcallbackurl.find($ID)\ntarget.delete()\n","lang":"ruby"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Python","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"python","header":{"controls":{"copy":{}}},"source":"\"\"\"\nDelete : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n\"\"\"\nfrom mailjet_rest import Client\nimport os\napi_key = os.environ['MJ_APIKEY_PUBLIC']\napi_secret = os.environ['MJ_APIKEY_PRIVATE']\nmailjet = Client(auth=(api_key, api_secret))\nid = '$ID'\nresult = mailjet.eventcallbackurl.delete(id=id)\nprint result.status_code\nprint result.json()\n","lang":"python"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Go","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"go","header":{"controls":{"copy":{}}},"source":"/*\nDelete : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n*/\npackage main\nimport (\n\t\"fmt\"\n\t. \"github.com/mailjet/mailjet-apiv3-go\"\n\t\"github.com/mailjet/mailjet-apiv3-go/resources\"\n\t\"os\"\n)\nfunc main () {\n\tmailjetClient := NewMailjetClient(os.Getenv(\"MJ_APIKEY_PUBLIC\"), os.Getenv(\"MJ_APIKEY_PRIVATE\"))\n\tmr := &MailjetRequest{\n\t  Resource: \"eventcallbackurl\",\n\t  ID: RESOURCE_ID,\n\t}\n\terr := mailjetClient.Delete(mr)\n\tif err != nil {\n\t  fmt.Println(err)\n\t}\n}\n","lang":"go"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Java","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"java","header":{"controls":{"copy":{}}},"source":"package com.my.project;\nimport com.mailjet.client.errors.MailjetException;\nimport com.mailjet.client.MailjetClient;\nimport com.mailjet.client.MailjetRequest;\nimport com.mailjet.client.MailjetResponse;\nimport com.mailjet.client.resource.Eventcallbackurl;\npublic class MyClass {\n    /**\n     * Delete : Manage event-driven callback URLs, also called webhooks, used by the Mailjet platform when a specific action is triggered\n     */\n    public static void main(String[] args) throws MailjetException {\n      MailjetClient client;\n      MailjetRequest request;\n      MailjetResponse response;\n      client = new MailjetClient(\"api key\", \"api secret\");\n      request = new MailjetRequest(Eventcallbackurl.resource, ID);\n      response = client.delete(request);\n      System.out.println(response.getStatus());\n      System.out.println(response.getData());\n    }\n}\n","lang":"java"},"children":[]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"Count\": 1,\n  \"Data\": [\n    {\n      \"APIKeyID\": \"\",\n      \"EventType\": \"\",\n      \"ID\": \"\",\n      \"IsBackup\": \"false\",\n      \"Status\": \"\",\n      \"Url\": \"\",\n      \"Version\": \"\"\n    }\n  ],\n  \"Total\": 1\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Issue a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUT"]}," request to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["eventcallbackurl"]}," with the ID to delete"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"events-content-sample","__idx":7},"children":["Events content sample"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["All JSON event objects contain the following properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["event : the event type"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["time : unix timestamp of event"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["email : email address of recipient triggering the event"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["mj_campaign_id : internal Mailjet campaign ID associated to the message"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["mj_contact_id : internal Mailjet contact ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["customcampaign : value of the X-Mailjet-Campaign header when provided"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["MessageID : The unique message ID"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["CustomID: the custom ID, when provided at send time"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Payload: the event payload, when provided at send time"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Sent event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample sent event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"sent\",\n  \"time\": 1433333949,\n  \"MessageID\": 19421777835146490,\n  \"email\": \"api@mailjet.com\",\n  \"mj_campaign_id\": 7257,\n  \"mj_contact_id\": 4,\n  \"customcampaign\": \"\",\n  \"mj_message_id\": \"19421777835146490\",\n  \"smtp_reply\": \"sent (250 2.0.0 OK 1433333948 fa5si855896wjc.199 - gsmtp)\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Dispatched when the destination SMTP server (gmail, hotmail, yahoo, etc) has accepted the message. Depending on your volume, it could dispatch a lot of events to your system. Please make sure you have checked the Group Events Checkbox in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://app.mailjet.com/account/triggers"},"children":["Event API user interface"]}," or that the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/api-reference/email-api/categories/webhook/"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/eventcallbackurl"]}]}," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Version"]}," property is set to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Sent event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["mj_message_id : The unique message ID as a string (deprecated, see MessageID)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["smtp_reply: The raw SMTP response message"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Open event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample open event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"open\",\n  \"time\": 1433103519,\n  \"MessageID\": 19421777396190490,\n  \"email\": \"api@mailjet.com\",\n  \"mj_campaign_id\": 7173,\n  \"mj_contact_id\": 320,\n  \"customcampaign\": \"\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\",\n  \"ip\": \"127.0.0.1\",\n  \"geo\": \"US\",\n  \"agent\": \"Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko Firefox/11.0\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Open event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ip : IP address (can be IPv4 or IPv6) that triggered the event"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["geo : country code of IP address (see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.maxmind.com/app/iso3166"},"children":["list"]},")"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["agent : User-Agent"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Click event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample click event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"click\",\n  \"time\": 1433334653,\n  \"MessageID\": 19421777836302490,\n  \"email\": \"api@mailjet.com\",\n  \"mj_campaign_id\": 7272,\n  \"mj_contact_id\": 4,\n  \"customcampaign\": \"\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\",\n  \"url\": \"https://mailjet.com\",\n  \"ip\": \"127.0.0.1\",\n  \"geo\": \"FR\",\n  \"agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["url : the link that was clicked"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Bounce event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample bounce event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"bounce\",\n  \"time\": 1430812195,\n  \"MessageID\": 13792286917004336,\n  \"email\": \"bounce@mailjet.com\",\n  \"mj_campaign_id\": 0,\n  \"mj_contact_id\": 0,\n  \"customcampaign\": \"\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\",\n  \"blocked\": true,\n  \"hard_bounce\": true,\n  \"error_related_to\": \"recipient\",\n  \"error\": \"user unknown\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Bounce event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["blocked : true if this bounce leads to the recipient being blocked"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["hard_bounce : true if error was permanent"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["error_related_to : see error table"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["error : see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/email-api/webhooks/webhooks-overview/#possible-values-for-errors"},"children":["error table"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Blocked event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample blocked event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"blocked\",\n  \"time\": 1430812195,\n  \"MessageID\": 13792286917004336,\n  \"email\": \"bounce@mailjet.com\",\n  \"mj_campaign_id\": 0,\n  \"mj_contact_id\": 0,\n  \"customcampaign\": \"\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\",\n  \"error_related_to\": \"recipient\",\n  \"error\": \"user unknown\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Blocked event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["error_related_to : see error table"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["error : see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/email-api/webhooks/webhooks-overview/#possible-values-for-errors"},"children":["error table"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Spam event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample spam event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"spam\",\n  \"time\": 1430812195,\n  \"MessageID\": 13792286917004336,\n  \"email\": \"bounce@mailjet.com\",\n  \"mj_campaign_id\": 0,\n  \"mj_contact_id\": 0,\n  \"customcampaign\": \"\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\",\n  \"source\": \"JMRPP\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Spam event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["source : indicates which feedback loop program reported this complaint"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["###Unsub event"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Sample unsub event"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"json","header":{"controls":{"copy":{}}},"source":"{\n  \"event\": \"unsub\",\n  \"time\": 1433334941,\n  \"MessageID\": 20547674933128000,\n  \"email\": \"api@mailjet.com\",\n  \"mj_campaign_id\": 7276,\n  \"mj_contact_id\": 126,\n  \"customcampaign\": \"\",\n  \"CustomID\": \"helloworld\",\n  \"Payload\": \"\",\n  \"mj_list_id\": 1,\n  \"ip\": \"127.0.0.1\",\n  \"geo\": \"FR\",\n  \"agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36\"\n}\n","lang":"json"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unsub event additional properties:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["mj_list_id : internal Mailjet List id for REST API access to lists management"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ip : IP address (can be IPv4 or IPv6) that triggered the event"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["geo : country code of IP address (see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"http://www.maxmind.com/app/iso3166"},"children":["list"]},")"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["agent : User-Agent"]}]}]},"headings":[{"value":"Webhooks Calls","id":"webhooks-calls","depth":1},{"value":"Introduction","id":"introduction","depth":2},{"value":"List","id":"list","depth":2},{"value":"Add","id":"add","depth":2},{"value":"Info","id":"info","depth":2},{"value":"Update","id":"update","depth":2},{"value":"Delete","id":"delete","depth":2},{"value":"Events content sample","id":"events-content-sample","depth":2}],"frontmatter":{"title":"Webhooks Calls","seo":{"description":"Swap Mandrill webhooks for Mailjet's eventcallbackurl resource. Register per-event callbacks for sent, open, click, bounce, blocked, and spam in real time.","priority":0.3,"title":"Webhooks Calls"}},"lastModified":"2026-08-26T10:53:57.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/mandrill/webhooks-calls","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}