{"id":11994,"date":"2019-10-22T16:56:59","date_gmt":"2019-10-22T07:56:59","guid":{"rendered":"https:\/\/www.eformsign.com\/kr\/support\/?post_type=manual_documentation&#038;p=11994"},"modified":"2019-11-27T11:09:37","modified_gmt":"2019-11-27T02:09:37","slug":"send-event","status":"publish","type":"manual_documentation","link":"https:\/\/www.eformsign.com\/en\/support\/documentation\/event\/doc-event\/send-event\/","title":{"rendered":"3.2.1.1 Send event"},"content":{"rendered":"\n<p>Sends the event to the designated URL when the document is created or changes the status on eformsign <\/p>\n\n\n\n<h2>Method<\/h2>\n\n\n\n<p>&#8211; POST<\/p>\n\n\n\n<h3>Request Header<\/h3>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>Miscellaneous<\/strong><\/td><\/tr><tr><td>Content-Type<\/td><td>String<\/td><td>Content-Type<\/td><td>application\/json<\/td><\/tr><tr><td>eformsign_signature<\/td><td>String<br>(hex string)<\/td><td>Signature value for verification (Signed payload)<br> (Refer to <a href=\"https:\/\/www.eformsign.com\/en\/support\/documentation\/signature-generation-verification\/verify-signature\/\">2.2.2 Verify eformsign_signature<\/a>)<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h3>Request Body<\/h3>\n\n\n\n<table class=\"wp-block-table\"><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><td><strong>Miscellaneous<\/strong><\/td><\/tr><tr><td>webhook_id<\/td><td>String<\/td><td>webhook_id which initiated the event.<\/td><td>&nbsp;<\/td><\/tr><tr><td>webhook_name<\/td><td>String<\/td><td>webhook name<\/td><td>&nbsp;<\/td><\/tr><tr><td>company_id<\/td><td>String<\/td><td>Company id<\/td><td>&nbsp;<\/td><\/tr><tr><td>event_type<\/td><td>String<\/td><td>event type<\/td><td>&nbsp;<\/td><\/tr><tr><td>document<\/td><td>Object<\/td><td>Document information of an occurred event<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.id<\/td><td>String<\/td><td>Document id<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.template_id<\/td><td>String<\/td><td>Template id<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.template_name<\/td><td>String<\/td><td>Template name<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.template_version<\/td><td>String<\/td><td>Template version<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.workflow_seq<\/td><td>int<\/td><td>Workflow order<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.workflow_name<\/td><td>String<\/td><td>Workflow name<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.history_id<\/td><td>String<\/td><td>History id<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.status<\/td><td>String<\/td><td>Document status<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.editor_id<\/td><td>String<\/td><td>Document creator(editor) id<\/td><td>&nbsp;<\/td><\/tr><tr><td>document.updated_date<\/td><td>long<\/td><td>Document created(edited) time<\/td><td>&nbsp;<\/td><\/tr><\/tbody><\/table>\n\n\n\n<h4>Example<\/h4>\n\n\n\n<p><strong>Request<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>POST HTTP\/1.1\n\nContent-Type : application\/json; charset=utf-8\neformsign_signature : 3036021900d5aba08cee0ca07f251ff3b2523e90c54f8696ef7a63033b021900de3db862bc1c0c81cd0316779d15e5c77af62c0f454cc8d1\nHOST : web hook URL\n{\n\"webhook_id\" : \"e4f553ad0ad8228bbe81b3ef43178871\",\n\"webhook_name\" : \"Test Web hook\",\n\"company_id\" : \"f932c9b15215443580b5b9701151452a\",\n\"event_type\" : \u201cdocument\u201d,\n\"document\" : {\n  \"id\" : \u201c40ffcb24b3224b13ba682bda7244556d\u201d,\n   \"template_id\" : \u201cf2ace33447f04408a6f6477a9de612d6\u201d,\n   \"template_version\" : \u201c1\u201d,\n   \"history_id\" : \u201cc8ce844ff0c44af6b7034ad707e106d8\u201d,\n   \"status\" : \u201cdoc_create\u201d,\n   \"editor_id\" : \"userId@forcs.com\",\n   \"updated_date\" : \"1562036014\"\n}\n}<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":11987,"menu_order":0,"template":"","manualdocumentationcategory":[45],"_links":{"self":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/11994"}],"collection":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/11994\/revisions"}],"predecessor-version":[{"id":12753,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/11994\/revisions\/12753"}],"up":[{"embeddable":true,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manual_documentation\/11987"}],"wp:attachment":[{"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/media?parent=11994"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/www.eformsign.com\/en\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=11994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}