The complicated API is incredibly simple. It’s only a single endpoint!
The API is available at
base_url = 'https://customcomplication.mikelyons.org/complicated/set/'
The API is authenticated using an API key. You can get your API key from the app once you have initialized it (by installing the app, see Complicated How To). To use the API, append your API key to the base url.
request_url = base_url + api_key // example: https://customcomplication.mikelyons.org/complicated/set/abc1234
You can use this new endpoint to update any complication in the app. If you want to copy a pre-prepared link, you can do so from the update link part of the app after selecting a complication.
All requests are GET requests
The endpoint structure is as follows:
GET https://customcomplication.mikelyons.org/complicated/set/<api key>/<complication type>?value=<new value>
The values you need to fill in here are:
<api key>get this from the settings page on the app
<complication type>Specify one of the following complication types:
<new value>The new text for your complication. The value must be URL encoded, I suggest using a library for this, but some simple encoding is:
%20is a space
%0Ais a newline (For multi-lined complications)
%24is a dollar sign
This request will set the modularLarge complication to:
Stocks AAPL $152.29
Note: Watch OS Only lets you change a complication ~15 times and hour. More than that and you likely will get rate limited.
If you have any other questions please feel free to reach out. My email is email@example.com
Here are some other resources to help you use Complicated: