{"_id":"573f3f6c87cbd20e00208e76","project":"573f3f6c87cbd20e00208e41","version":{"_id":"573f3f6c87cbd20e00208e42","__v":2,"project":"573f3f6c87cbd20e00208e41","createdAt":"2016-05-18T20:59:16.635Z","releaseDate":"2016-05-18T20:59:16.635Z","categories":["573f3f6c87cbd20e00208e44","573f3f6c87cbd20e00208e43","573f3f6c87cbd20e00208e45","573f3f6c87cbd20e00208e46","573f3f6c87cbd20e00208e47","573f3f6c87cbd20e00208e48","573f3f6c87cbd20e00208e49","573f3f6c87cbd20e00208e4a","573f3f6c87cbd20e00208e4b","579a382265f89a170099946f","57bce03036eff81700666963"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"573f3f6c87cbd20e00208e49","version":"573f3f6c87cbd20e00208e42","__v":0,"project":"573f3f6c87cbd20e00208e41","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-05-20T16:02:55.724Z","from_sync":false,"order":4,"slug":"flow-triggers","title":"Flow Triggers"},"parentDoc":null,"editedParams2":true,"user":"5564f227f0f70f0d00a9ab20","__v":1,"editedParams":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-20T16:26:29.998Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"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":"curl"},{"name":"PowerShell","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","language":"text"}]},"method":"get","results":{"codes":[{"status":200,"name":"","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}]","language":"json"},{"name":"","code":"{\n  \"error\": \"Unauthorized\"\n}","language":"json","status":401}]},"settings":"573f36307eeb8b190094cab0","auth":"required","params":[{"_id":"5744e10ba488e8170054152d","ref":"","in":"query","required":false,"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","default":"","type":"string","name":"flowContains"}],"url":"/all-triggers"},"isReference":false,"order":1,"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]","excerpt":"","slug":"list-all-triggers","type":"endpoint","title":"List All Triggers"}

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

Examples


Result Format


Documentation

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. [block:callout] { "type": "warning", "title": "Check the Permissions", "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." } [/block]

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}