Use curl to run a command via the API.



  • curl -X POST
    https://www.triggercmd.com/api/run/triggerSave
    -H 'authorization: Bearer (insert token here)'
    -H 'content-type: application/json'
    -d '{"computer":"(insert computer name here)","trigger":"(insert trigger name here)"}'

    Reminder - your computer name is different from your voice trigger for your computer.

    Also, if you run this on Windows, you'll need to download the Windows version of curl, and use double quotes (") instead of single quotes ('). See this article for more about how to do this on Windows.

    Curl works great, but an easier way to trigger commands from the command line is to use the tcmd utility.

    EDIT 2/27/21: Now you can trigger commands on computers people have shared with you. They show up under "Other users's computers."


Log in to reply