Syntax for getRuleList http

First, Is app 10249 a Maker API instance? If so, that won't work; Maker API does not have access to the Rule Machine API. If app 10249 is a Rule, that will not work because each app generates its own token, and a Maker API instance would not have any relation to the Rule whose token you need. (EDIT: Actually, it looks like you might have taken "10249" from the example in the docs, so one problem is definitely that you need the actual app ID for your rule--more on that below.)

What you need is a rule with a "local endpoint" trigger specified. Then you'll get a token for that rule, and you'll get an example of a URL that is close to the one you'll need to use. The example will have trigger in it, but you'll need to replace that with trigger/getRuleList as in the URL you have above (which is otherwise correct). It will look something like:

http://<yourHubIP>/apps/api/<ruleAppId>/trigger/getRuleList?access_token=<yourAccessToken>

1 Like