{"_id":"573f3f6c87cbd20e00208e62","githubsync":"","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"},"parentDoc":null,"__v":1,"editedParams":true,"editedParams2":true,"user":"5564f227f0f70f0d00a9ab20","project":"573f3f6c87cbd20e00208e41","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"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-20T16:06:55.382Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"code":"# Return my triggers\ncurl \\\n  -H 'Authorization: Basic c3VwZXItcGluazpwaW5raXNoLXB1cnBsZWlzaAo=' \\\n  https://triggers.octoblu.com/my-triggers\n\n# With a filter\ncurl \\\n  -H 'Authorization: Basic c3VwZXItcGluazpwaW5raXNoLXB1cnBsZWlzaAo=' \\\n  https://triggers.octoblu.com/my-triggers?flowContains=device:drone","language":"curl"},{"language":"text","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"}]},"method":"get","results":{"codes":[{"name":"","code":"[\n    {\n        \"name\": \"Trigger\",\n        \"flowId\": \"1b8a3bc0-bf2e-4bc9-b2e7-a7e23635884c\",\n        \"flowName\": \"FFFFFFFLLLLO\",\n        \"id\": \"032e9420-16fd-11e6-b00d-d1154b1c3a92\",\n        \"online\": true,\n        \"uri\": \"https://triggers.octoblu.com/flows/1b8a3bc0-bf2e-4bc9-b2e7-a7e23635884c/triggers/032e9420-16fd-11e6-b00d-d1154b1c3a92\"\n    }\n]","language":"json","status":200}]},"settings":"573f36307eeb8b190094cab0","auth":"required","params":[{"_id":"5744e02dc067580e0056b055","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":"/my-triggers"},"isReference":false,"order":2,"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\nUnlike the [Get All Triggers `/all-triggers`](doc:get-all-triggers) endpoint, is that this only returns triggers from flows that have the Authenticated UUID listed as its owner, and have an `online` value of `true`.\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"If using 2.0 Whitelists, the authenticated device must be present in the Flow's `discover.view` whitelist to get its triggers. See the [Meshblu whitelist documentation](https://meshblu.readme.io/docs/whitelists-2-0) for more information.\\n\\nIf using the deprecated whitelists, being the owner of the flow is sufficient permission to retrieve its triggers.\",\n  \"title\": \"Check the Permissions\"\n}\n[/block]","excerpt":"Retrieve all triggers in flows owned by the device.","slug":"list-my-triggers","type":"endpoint","title":"List My Triggers"}

getList My Triggers

Retrieve all triggers in flows owned by the device.

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. Unlike the [Get All Triggers `/all-triggers`](doc:get-all-triggers) endpoint, is that this only returns triggers from flows that have the Authenticated UUID listed as its owner, and have an `online` value of `true`. [block:callout] { "type": "warning", "body": "If using 2.0 Whitelists, the authenticated device must be present in the Flow's `discover.view` whitelist to get its triggers. See the [Meshblu whitelist documentation](https://meshblu.readme.io/docs/whitelists-2-0) for more information.\n\nIf using the deprecated whitelists, being the owner of the flow is sufficient permission to retrieve its triggers.", "title": "Check the Permissions" } [/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 }}