{"__v":5,"_id":"564e57971560880d008d30d0","category":{"__v":1,"_id":"564e56c601e80e0d00396684","pages":["564e56f3c3553e0d003e53ca"],"project":"5564f26a1fd04c0d00dc9aaa","version":"5564f26a1fd04c0d00dc9aad","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-19T23:09:58.853Z","from_sync":false,"order":10,"slug":"config-events","title":"Config Events"},"parentDoc":null,"project":"5564f26a1fd04c0d00dc9aaa","user":"5564f227f0f70f0d00a9ab20","version":{"__v":15,"_id":"5564f26a1fd04c0d00dc9aad","project":"5564f26a1fd04c0d00dc9aaa","createdAt":"2015-05-26T22:23:38.671Z","releaseDate":"2015-05-26T22:23:38.671Z","categories":["5564f26b1fd04c0d00dc9aae","556741d17acd550d0075eaca","556741d87acd550d0075eacb","556742f87acd550d0075ead1","556781cd6976ef0d0099c545","5568d666d33aad0d00ec8d2e","557f6b2d38249b0d00d0d12b","55b67be9c2e909190073ed38","564e56c601e80e0d00396684","56731b714b2a680d00524daf","573612ac652bd80e00a90027","57365e2cf8ebd31700769f50","57366131f8ebd31700769f58","573b93514e029d19000b8669","573bbfdb7ac6f6170033bd35"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-19T23:13:27.797Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"DEPRECATION WARNING\",\n  \"body\": \"This feature has been replaced by the new [fowarding](/v1.0/docs/forwarding) configuration.\"\n}\n[/block]\n\nTo enable config forwarding to HTTP webhooks, update your Meshblu device to contain the following properties:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  meshblu: {\\n    configHooks: [\\n      {\\n        \\\"url\\\":\\\"http://requestb.in/1mw4ws21\\\",\\n        \\\"method\\\": \\\"POST\\\"\\n      }\\n    ]\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Security Warning\",\n  \"body\": \"All config events emitted by your device or sent to your device will be sent to the webhook listed.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Forward Meshblu Credentials\"\n}\n[/block]\nGenerate a one-time Meshblu token and send it to the webhook. Sent as an HTTP header `Authorization: Bearer <base64 encoded string>`\n[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Security Warning\",\n  \"body\": \"This will send a Bearer token authorizing the recipient to access and modify your meshblu device.\"\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  meshblu: {\\n    configHooks: [\\n      {\\n        \\\"url\\\":\\\"http://requestb.in/1mw4ws21\\\",\\n        \\\"method\\\": \\\"POST\\\",\\n        \\\"generateAndForwardMeshbluCredentials\\\": true\\n      }\\n    ]\\n  }\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"Forward config events to a HTTP webhook","slug":"config-forwarding-webhooks","type":"basic","title":"Forwarding Webhooks (DEPRECATED)"}

Forwarding Webhooks (DEPRECATED)

Forward config events to a HTTP webhook

[block:callout] { "type": "warning", "title": "DEPRECATION WARNING", "body": "This feature has been replaced by the new [fowarding](/v1.0/docs/forwarding) configuration." } [/block] To enable config forwarding to HTTP webhooks, update your Meshblu device to contain the following properties: [block:code] { "codes": [ { "code": "{\n meshblu: {\n configHooks: [\n {\n \"url\":\"http://requestb.in/1mw4ws21\",\n \"method\": \"POST\"\n }\n ]\n }\n}", "language": "json" } ] } [/block] [block:callout] { "type": "danger", "title": "Security Warning", "body": "All config events emitted by your device or sent to your device will be sent to the webhook listed." } [/block] [block:api-header] { "type": "basic", "title": "Forward Meshblu Credentials" } [/block] Generate a one-time Meshblu token and send it to the webhook. Sent as an HTTP header `Authorization: Bearer <base64 encoded string>` [block:callout] { "type": "danger", "title": "Security Warning", "body": "This will send a Bearer token authorizing the recipient to access and modify your meshblu device." } [/block] [block:code] { "codes": [ { "code": "{\n meshblu: {\n configHooks: [\n {\n \"url\":\"http://requestb.in/1mw4ws21\",\n \"method\": \"POST\",\n \"generateAndForwardMeshbluCredentials\": true\n }\n ]\n }\n}", "language": "json" } ] } [/block]