As of firmware version 1.015 Felik now has an open HTTP API that can be enabled via the app. This can be used to remotely trigger actions on your Felik device using a variety of services or home-brew solutions. 


If you're just here because you want to get your Felik to work with Amazon Alexa, head over to this article.


Enabling Webhooks API


Open your Felik app, go to Menu > Settings > API and toggle the Enable Webhooks API switch. This will generate an API token that you can use to make HTTP requests to your device. You will also see local and remote endpoints. Local endpoints can be used to access Felik's API over your home Wi-Fi without exposing it over the Internet, while remote endpoints can be used with services like IFTTT.



To read more about how to set up your Felik to work with Amazon Alexa over IFTTT, head over to this article.


Changing the API Token


If you need to change the API token, simply toggle the Webhooks API functionality on and off using the mobile app. Every time you turn on this feature, a new API token will be generated.


HTTP API


POST /api/start?secret=<your_api_token>


This request can be used to initiate a play session. You must provide your API key as a URL query parameter.

The POST request's body can be empty. Optionally, you can also specify the duration of the play session (between 1 and 30 minutes) by sending this POST body with your request:


{
   "duration" : <duration_in_minutes>
}


For example:


POST https://simulator.relay.us-west-2.1.felik.net/api/start?secret=9PUO2JWbWrMsQHwo

{
   "duration" : 10
}


POST /api/stop?secret=<your_api_token>


This request can be used to stop a play session. You must provide your API key as a URL query parameter.

The POST request's body is always empty.


For example:


POST https://simulator.relay.us-west-2.1.felik.net/api/stop?secret=9PUO2JWbWrMsQHwo