Maker API Send Post URL

I've been trying to use the Maker API app Send Post URL command without success. I've tried the following:

http://192.168.x.x/apps/api/[Maker App ID]/postURL/http:%2F%2F192.168.y.y:zzzz?access_token=tttt
http://192.168.x.x/apps/api/[Maker App ID]/postURL/http://192.168.y.y:zzzz?access_token=tttt
http://192.168.x.x/apps/api/[Maker App ID]/postURL/"http://192.168.y.y:zzzz"?access_token=tttt
http://192.168.x.x/apps/api/[Maker App ID]/postURL/192.168.y.y:zzzz?access_token=tttt

where:
192.168.x.x is the IP address of my hubitat
192.168.y.y is the IP address of the processor where the post messages will be sent
zzzz is the port the processor is listening on
tttt is my access token

I would have thought that my first attempt would work but none of the above calls have worked. However, when I go into the settings page of the Maker API app and manually enter http://192.168.x.x:yyyy in the "URL to send device events to by POST" field it works perfectly.

Any ideas on how to format the URL properly so I can set the Post URl programatically from my processor would be greatly appreciated.

Thanks in advance for the help

Sorry....i was wrong. You want to encode it like this:

http%3A%2F%2F192.168.1.17%3A8000

That would be the properly URL encoded version of the url. You still had the colon in your first one. The colon can't be in a properly encoded URL.

1 Like

This part I'm not sure is possible. @bravenel or @chuck.schwer may be able to answer that piece.

I've always thought (maybe incorrectly) that the Post to URL for the Maker API posting events was only definable from the Maker API webpage UI. (hoping I'm wrong as this would be cool).

@Ryan780 is correct above. You must URL encode the url.

1 Like

Thanks @Ryan780. I encoded the url as you suggested but I'm still getting a 404 error returned by the Hubitat.

Here is what my url looks like after including the encoding

http://192.168.x.x/apps/api/37/postURL/http%3A%2F%2F192.168.y.y%3Azzzz?access_token=tttt

Thanks

Wait. So you can set the Post URL via a Maker API post call???? way cool!

1 Like

I suspect you are changing something when you are making the substitution to add the x's y's and z's to put it up here on the forum. If you want, you can PM it to me and just take off your token. The internal IPs really won't mean anything to anyone else anyway since they can't get on your network.

Thanks I sent a PM

This appears to be an issue with my processor. @Ryan780 suggested that I try my command in a browser and it works perfectly. Thanks