{"metadata":{"image":[],"title":"","description":""},"api":{"url":"/all-triggers","auth":"required","examples":{"codes":[{"language":"curl","code":"# Return all triggers\ncurl \\\n -H 'Authorization: Basic c3VwZXItcGluazpwaW5raXNoLXB1cnBsZWlzaAo=' \\\n https://triggers.octoblu.com/all-triggers\n\n# With a filter\ncurl \\\n -H 'Authorization: Basic c3VwZXItcGluazpwaW5raXNoLXB1cnBsZWlzaAo=' \\\n https://triggers.octoblu.com/all-triggers?flowContains=device:drone"},{"language":"text","code":"$authHeaders=:::at:::{ meshblu_auth_uuid = 'fd205f32-7846-4057-911b-3d580747b6c9'; meshblu_auth_token = '9f63aaa056618ee5c79197660c4de874718e41da' }\n\nInvoke-RestMethod `\n -URI http://triggers.octoblu.com/all-triggers?flowContains=device:hue `\n -ContentType \"application/json\" `\n -Headers $authHeaders `\n -Method Get","name":"PowerShell"}]},"method":"get","params":[{"name":"flowContains","type":"string","default":"","desc":"Filters the triggers to those from flows that contain at least one node of the given type. Multiple flowContains parameters are combined using AND","required":false,"in":"query","ref":"","_id":"5744e10ba488e8170054152d"}],"results":{"codes":[{"language":"json","code":"[{\n \"id\" : \"396f2cf4-b352-4e38-b2f4-3f64ef854de8\",\n \"name\" : \"trigger\",\n \"flowId\" : \"5b76ec5d-fea2-4160-97c2-cf10fe847158\",\n \"flowName\" : \"sample\",\n \"online\": true,\n \"uri\": \"https://triggers.octoblu.com/flows/5b76ec5d-fea2-4160-97c2-cf10fe847158/triggers/396f2cf4-b352-4e38-b2f4-3f64ef854de8\"\n}]","name":"","status":200},{"status":401,"language":"json","code":"{\n \"error\": \"Unauthorized\"\n}","name":""}]},"settings":"573f36307eeb8b190094cab0"},"next":{"description":"","pages":[]},"title":"List All Triggers","type":"endpoint","slug":"list-all-triggers","excerpt":"","body":"This causes the trigger to perform a Meshblu Search for flows as the device whose authentication was passed in. There is no default identity for this endpoint, so unauthenticated requests will return an HTTP 401.\n[block:callout]\n{\n \"type\": \"warning\",\n \"title\": \"Check the Permissions\",\n \"body\": \"In order to discover a trigger, the authenticated device must be present in the Flow's `discover.view` whitelist. See the [Meshblu whitelist documentation](https://meshblu.readme.io/docs/whitelists-2-0) for more information.\"\n}\n[/block]","updates":[],"order":1,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"573f3f6c87cbd20e00208e76","project":"573f3f6c87cbd20e00208e41","version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["573f3f6c87cbd20e00208e44","573f3f6c87cbd20e00208e43","573f3f6c87cbd20e00208e45","573f3f6c87cbd20e00208e46","573f3f6c87cbd20e00208e47","573f3f6c87cbd20e00208e48","573f3f6c87cbd20e00208e49","573f3f6c87cbd20e00208e4a","573f3f6c87cbd20e00208e4b","579a382265f89a170099946f","57bce03036eff81700666963"],"_id":"573f3f6c87cbd20e00208e42","createdAt":"2016-05-18T20:59:16.635Z","releaseDate":"2016-05-18T20:59:16.635Z","__v":2,"project":"573f3f6c87cbd20e00208e41"},"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Flow Triggers","slug":"flow-triggers","order":4,"from_sync":false,"reference":false,"_id":"573f3f6c87cbd20e00208e49","version":"573f3f6c87cbd20e00208e42","__v":0,"createdAt":"2016-05-20T16:02:55.724Z","project":"573f3f6c87cbd20e00208e41"},"githubsync":"","parentDoc":null,"createdAt":"2016-05-20T16:26:29.998Z","editedParams2":true,"user":"5564f227f0f70f0d00a9ab20","__v":1,"editedParams":true}
getList All Triggers
Definition
{{ api_url }}{{ page_api_url }}
Parameters
Query Params
flowContains:
string
Filters the triggers to those from flows that contain at least one node of the given type. Multiple flowContains parameters are combined using AND