{"id":20509,"date":"2018-04-10T04:08:15","date_gmt":"2018-04-10T08:08:15","guid":{"rendered":"https:\/\/docs.gravityforms.com\/?p=20509"},"modified":"2021-10-08T14:09:25","modified_gmt":"2021-10-08T18:09:25","slug":"calendar-events-webhooks-addon-wp-restapi","status":"publish","type":"post","link":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/","title":{"rendered":"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>The Gravity Forms Webhooks Add-On can be used to send requests to the WordPress REST API endpoint added by the Events Calendar plugin, either locally or on another site, to create new events when a form is submitted.<\/p>\n\n\n\n<p><strong>Note:<\/strong> This article assumes you have <a href=\"https:\/\/docs.gravityforms.com\/how-to-install-gravity-forms-add-ons\/\">installed and activated<\/a> the Webhooks Add-On and the <a href=\"https:\/\/theeventscalendar.com\/product\/wordpress-events-calendar\/\" target=\"_blank\" rel=\"noopener noreferrer\">Events Calendar<\/a> plugin. If not, you will need to do so before any of the functionality in this article can be used.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configuring-the-form\">Configuring the Form<\/h2>\n\n\n\n<p>Create a new form and add the following fields.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Type<\/th><th>Label<\/th><th><strong>Other Settings<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>Single Line Text<\/strong><\/td><td>Event Title<\/td><td><\/td><\/tr><tr><td><strong>Paragraph<\/strong><\/td><td>Event Description<\/td><td><\/td><\/tr><tr><td><strong>Checkboxes<\/strong><\/td><td>Event Options<\/td><td>Choices: All Day, Hide From Event Listings, Sticky in Month View, Feature Event<\/td><\/tr><tr><td><strong>Date<\/strong><\/td><td>Start Date<\/td><td><\/td><\/tr><tr><td><strong>Time<\/strong><\/td><td>Start Time<\/td><td>Conditional Logic: Show field if <strong>Event Options<\/strong> is not <strong>All Day<\/strong><\/td><\/tr><tr><td><strong>Date<\/strong><\/td><td>End Date<\/td><td><\/td><\/tr><tr><td><strong>Time<\/strong><\/td><td>End Time<\/td><td>Conditional Logic: Show field if <strong>Event Options<\/strong> is not <strong>All Day<\/strong><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Tip<\/strong>: <a href=\"https:\/\/gravitywiz.com\/documentation\/gravity-forms-limit-dates\/\" target=\"_blank\" rel=\"noopener noreferrer\">Gravity Perks Limit Dates<\/a> can be used to limit which dates can be selected in the date fields.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configuring-the-webhook\">Configuring the Webhook<\/h2>\n\n\n\n<p>To configure webhooks for a form, go to your <strong>Form Settings<\/strong> and click on the <strong>Webhooks<\/strong> tab and then click the <strong>Add New<\/strong> button.<\/p>\n\n\n\n<p>Next, using the image below as reference, you&#8217;ll need to configure the following settings for the request that is being made.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png\" alt=\"Webhooks Event Calendar Setup\" class=\"wp-image-28548\" width=\"435\" height=\"611\" srcset=\"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png 671w, https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44-214x300.png 214w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-name\">Name<\/h4>\n\n\n\n<p>Enter a name for your feed. This can be anything you want as it is only used for identification purposes on the feeds list page and in the add-on log.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-request-url\">Request URL<\/h4>\n\n\n\n<p>Enter <strong>{rest_api_url}tribe\/events\/v1\/events<\/strong><\/p>\n\n\n\n<p>The <a href=\"https:\/\/docs.gravityforms.com\/admin_ajax_url-merge-tag\/\">{rest_api_url}<\/a> merge tag will be replaced with the base REST API URL for the current site when the feed is processed.<\/p>\n\n\n\n<p>If the Events Calendar plugin is installed on a different site you will need to substitute the {rest_api_url} merge tag with the base REST API URL for that site e.g. http:\/\/the-remote-site.local\/wp-json\/tribe\/events\/v1\/events.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-request-method\">Request Method<\/h4>\n\n\n\n<p>Select the <strong>POST<\/strong> choice as the request method.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-request-format\">Request Format<\/h4>\n\n\n\n<p>Select the <strong>JSON<\/strong> choice as the request format.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-request-headers\">Request Headers<\/h4>\n\n\n\n<p>There are no request headers to configure.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-request-body\">Request Body<\/h4>\n\n\n\n<p>Select the <strong>Select Fields<\/strong> choice.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-field-values\">Field Values<\/h4>\n\n\n\n<p>Configure rows for the following fields. Click the add item icon (+) to add new rows.<\/p>\n\n\n\n<p>For the values, you can select from the form fields, entry meta, or <strong>Add Custom Value<\/strong> which will display a text input that supports <a href=\"\/category\/user-guides\/merge-tags-getting-started\/\">Merge Tags<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Key<\/th><th><strong>Value<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>title<\/strong><\/td><td>Select the <strong>Event Title<\/strong> choice.<\/td><\/tr><tr><td><strong>description<\/strong><\/td><td>Select the <strong>Event Description<\/strong> choice.<\/td><\/tr><tr><td><strong>all_day<\/strong><\/td><td>Select the <strong>All Day<\/strong> choice.<\/td><\/tr><tr><td><strong>hide_from_listings<\/strong><\/td><td>Select the <strong>Hide From Event Listings<\/strong> choice.<\/td><\/tr><tr><td><strong>sticky<\/strong><\/td><td>Select the <strong>Sticky in Month View<\/strong> choice.<\/td><\/tr><tr><td><strong>featured<\/strong><\/td><td>Select the <strong>Feature Event<\/strong> choice.<\/td><\/tr><tr><td><strong>start_date<\/strong><\/td><td>Select <strong>Add Custom Value<\/strong> and then enter the merge tags for the start date and time fields e.g. <strong>{Start Date:3} {Start Time:4}<\/strong><\/td><\/tr><tr><td><strong>end_date<\/strong><\/td><td>Select <strong>Add Custom Value<\/strong> and then enter the merge tags for the end date and time fields e.g. <strong>{End Date:5} {End Time:6}<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>You can also configure rows for any additional fields you may have included on the form which the Events Calendar plugin supports:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Key<\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><td><strong>author<\/strong><\/td><td>The user ID of the event author<\/td><\/tr><tr><td><strong>date<\/strong><\/td><td>The date the event should be published<\/td><\/tr><tr><td><strong>date_utc<\/strong><\/td><td>The date (UTC timezone) the event should be published<\/td><\/tr><tr><td><strong>slug<\/strong><\/td><td>The event slug<\/td><\/tr><tr><td><strong>status<\/strong><\/td><td>The event post status<\/td><\/tr><tr><td><strong>timezone<\/strong><\/td><td>The event time zone<\/td><\/tr><tr><td><strong>image<\/strong><\/td><td>The event featured image ID or URL<\/td><\/tr><tr><td><strong>cost<\/strong><\/td><td>The event cost<\/td><\/tr><tr><td><strong>website<\/strong><\/td><td>The event website URL<\/td><\/tr><tr><td><strong>show_map<\/strong><\/td><td>Whether the event should show a map or not (boolean)<\/td><\/tr><tr><td><strong>show_map_link<\/strong><\/td><td>Whether the event should show a map link or not (boolean)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The Events Calendar plugin requires some values (e.g. all_day) to be passed as booleans. For this, we will use <a href=\"https:\/\/docs.gravityforms.com\/gform_webhooks_request_data\/#3-modify-the-field-values-for-the-events-calendar-plugin\">gform_webhooks_request_data example #3<\/a> in the theme functions.php file or a custom functionality plugin.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-webhook-condition\">Webhook Condition<\/h4>\n\n\n\n<p>If event creation should be conditional based on the value of a form field, select the <strong>Enable Condition<\/strong> checkbox and then configure the rules which should be met for this request to be sent.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-authentication\">Authentication<\/h2>\n\n\n\n<p>If you test the form after configuring the webhook you should find it fails to create the event and if <a href=\"https:\/\/docs.gravityforms.com\/logging-and-debugging\/\">logging is enabled<\/a> you would find a line like the following:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>DEBUG &#8211;&gt; GF_Webhooks::process_feed(): Webhook successfully executed. code: 401; body: {&#8220;code&#8221;:&#8221;rest_forbidden&#8221;,&#8221;message&#8221;:&#8221;Sorry, you are not allowed to do that.&#8221;,&#8221;data&#8221;:{&#8220;status&#8221;:401}}<\/p><\/blockquote>\n\n\n\n<p>Most REST API endpoints will require authentication to ensure that the person making the request has permission to do so. With the Webhooks Add-On you can use the <a href=\"\/gform_webhooks_request_args\" data-autolink=\"autolink_gform_webhooks_request_args\">gform_webhooks_request_args<\/a> filter in the theme functions.php file or a custom functionality plugin to add the authentication arguments.<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.gravityforms.com\/gform_webhooks_request_args\/#2-set-the-wp-rest-api-cookie-authentication-arguments\">gform_webhooks_request_args example #2<\/a> shows how you can use the standard cookie authentication for logged-in users making requests to the current site.<\/p>\n\n\n\n<p>If you are making a request to a remote site or the user will not be logged-in on the current site, you would need to use an alternative authentication method such as Basic Authorization as shown in <a href=\"https:\/\/docs.gravityforms.com\/gform_webhooks_request_args\/#3-set-the-wp-rest-api-basic-authorization-header\">gform_webhooks_request_args example #3<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-alternative-method\">Alternative Method<\/h2>\n\n\n\n<p>If the Events Calendar plugin is installed locally and you don&#8217;t have an Elite or legacy Developer license and would prefer not to <a href=\"https:\/\/docs.gravityforms.com\/licensing-faq\/#license-upgrades\">upgrade your existing license<\/a>, you could use <a href=\"https:\/\/docs.gravityforms.com\/gform_after_submission\/#8-create-an-events-calendar-plugin-event\">gform_after_submission example #8<\/a> in the theme functions.php file or a custom functionality plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_autodraft_ids":[],"jetpack_post_was_ever_published":false,"_sb_is_suggestion_mode":false,"_sb_show_suggestion_boards":false,"_sb_show_comment_boards":false,"_sb_suggestion_history":"","_sb_update_block_changes":"","_is_real_time_mode":false,"_realtime_collaborators":"","footnotes":"","cf_checklist_status":[]},"categories":[354],"tags":[19380],"class_list":["post-20509","post","type-post","status-publish","format-standard","hentry","category-webhooks-add-on","tag-edited-for-2-5","wpautop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to create Events Calendar events using the Webhooks Add-On<\/title>\n<meta name=\"description\" content=\"The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API\" \/>\n<meta property=\"og:description\" content=\"The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/\" \/>\n<meta property=\"og:site_name\" content=\"Gravity Forms Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-10T08:08:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-08T18:09:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png\" \/>\n<meta name=\"author\" content=\"richardW8k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gravityforms\" \/>\n<meta name=\"twitter:site\" content=\"@gravityforms\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"richardW8k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/\"},\"author\":{\"name\":\"richardW8k\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/person\\\/4c82034441a37deac30e22211cac7e44\"},\"headline\":\"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API\",\"datePublished\":\"2018-04-10T08:08:15+00:00\",\"dateModified\":\"2021-10-08T18:09:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/\"},\"wordCount\":913,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CleanShot-2021-07-10-at-18.16.44.png\",\"keywords\":[\"edited for 2.5\"],\"articleSection\":[\"Webhooks Add-On\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/\",\"name\":\"How to create Events Calendar events using the Webhooks Add-On\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CleanShot-2021-07-10-at-18.16.44.png\",\"datePublished\":\"2018-04-10T08:08:15+00:00\",\"dateModified\":\"2021-10-08T18:09:25+00:00\",\"description\":\"The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CleanShot-2021-07-10-at-18.16.44.png\",\"contentUrl\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CleanShot-2021-07-10-at-18.16.44.png\",\"width\":671,\"height\":942,\"caption\":\"Webhooks Event Calendar Setup\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/calendar-events-webhooks-addon-wp-restapi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/docs.gravityforms.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#website\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/\",\"name\":\"Gravity Forms Documentation\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/docs.gravityforms.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\",\"name\":\"Gravity Forms\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/gravity-forms-2020-logo-stacked.png\",\"contentUrl\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/gravity-forms-2020-logo-stacked.png\",\"width\":392,\"height\":515,\"caption\":\"Gravity Forms\"},\"image\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/gravityforms\",\"http:\\\/\\\/@gravityforms.com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/person\\\/4c82034441a37deac30e22211cac7e44\",\"name\":\"richardW8k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0999d2e69b1221040a6b6f4356714e596be89ba9eff784ea5cd421129dcf82ea?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0999d2e69b1221040a6b6f4356714e596be89ba9eff784ea5cd421129dcf82ea?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0999d2e69b1221040a6b6f4356714e596be89ba9eff784ea5cd421129dcf82ea?s=96&d=mm&r=g\",\"caption\":\"richardW8k\"},\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/author\\\/richardvav\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to create Events Calendar events using the Webhooks Add-On","description":"The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/","og_locale":"en_US","og_type":"article","og_title":"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API","og_description":"The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.","og_url":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/","og_site_name":"Gravity Forms Documentation","article_published_time":"2018-04-10T08:08:15+00:00","article_modified_time":"2021-10-08T18:09:25+00:00","og_image":[{"url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png","type":"","width":"","height":""}],"author":"richardW8k","twitter_card":"summary_large_image","twitter_creator":"@gravityforms","twitter_site":"@gravityforms","twitter_misc":{"Written by":"richardW8k","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#article","isPartOf":{"@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/"},"author":{"name":"richardW8k","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/person\/4c82034441a37deac30e22211cac7e44"},"headline":"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API","datePublished":"2018-04-10T08:08:15+00:00","dateModified":"2021-10-08T18:09:25+00:00","mainEntityOfPage":{"@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/"},"wordCount":913,"commentCount":0,"publisher":{"@id":"https:\/\/docs.gravityforms.com\/#organization"},"image":{"@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png","keywords":["edited for 2.5"],"articleSection":["Webhooks Add-On"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/","url":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/","name":"How to create Events Calendar events using the Webhooks Add-On","isPartOf":{"@id":"https:\/\/docs.gravityforms.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#primaryimage"},"image":{"@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png","datePublished":"2018-04-10T08:08:15+00:00","dateModified":"2021-10-08T18:09:25+00:00","description":"The Webhooks Add-On can be used to send requests to the WordPress REST API endpoint to create new events when a form is submitted.","breadcrumb":{"@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#primaryimage","url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png","contentUrl":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2021\/07\/CleanShot-2021-07-10-at-18.16.44.png","width":671,"height":942,"caption":"Webhooks Event Calendar Setup"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.gravityforms.com\/calendar-events-webhooks-addon-wp-restapi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.gravityforms.com\/"},{"@type":"ListItem","position":2,"name":"How to create Events Calendar events using the Webhooks Add-On and the WordPress REST API"}]},{"@type":"WebSite","@id":"https:\/\/docs.gravityforms.com\/#website","url":"https:\/\/docs.gravityforms.com\/","name":"Gravity Forms Documentation","description":"","publisher":{"@id":"https:\/\/docs.gravityforms.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.gravityforms.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docs.gravityforms.com\/#organization","name":"Gravity Forms","url":"https:\/\/docs.gravityforms.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/logo\/image\/","url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2020\/01\/gravity-forms-2020-logo-stacked.png","contentUrl":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2020\/01\/gravity-forms-2020-logo-stacked.png","width":392,"height":515,"caption":"Gravity Forms"},"image":{"@id":"https:\/\/docs.gravityforms.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/gravityforms","http:\/\/@gravityforms.com"]},{"@type":"Person","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/person\/4c82034441a37deac30e22211cac7e44","name":"richardW8k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0999d2e69b1221040a6b6f4356714e596be89ba9eff784ea5cd421129dcf82ea?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0999d2e69b1221040a6b6f4356714e596be89ba9eff784ea5cd421129dcf82ea?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0999d2e69b1221040a6b6f4356714e596be89ba9eff784ea5cd421129dcf82ea?s=96&d=mm&r=g","caption":"richardW8k"},"url":"https:\/\/docs.gravityforms.com\/author\/richardvav\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pdGaEa-5kN","_links":{"self":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/20509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/comments?post=20509"}],"version-history":[{"count":3,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/20509\/revisions"}],"predecessor-version":[{"id":30405,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/20509\/revisions\/30405"}],"wp:attachment":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/media?parent=20509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/categories?post=20509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/tags?post=20509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}