Root URL: https://routinehub.co/api/v1/
All API endpoints are based on the root url.
Note: This documentation is for v1 of the API. The new v2 has not been released yet.
The <shortcut_id> is a numeric ID assigned to the shortcut on the site when a new shortcut is created.
To find this ID after creating the shortcut on RoutineHub, tap/click on the address bar and view the numeric ID value.
Example: https://routinehub.co/shortcut/7388/version/create
RoutineHub Shortcut ID: 7388
Where <api_key> is needed, the user has to generate the key. This can be done from the RoutineHub settings page.
It is not currently possible to revoke a key, but if you generate a new key, the old key will become invalid
It is Preferred that this be stored locally to the user's system and not on your servers anywhere.
GET 'api/v1/<api_key>/shortcuts'
Simply retrieves a list of the user's shortcuts with their IDs and whether it's published or not.
GET 'api/v1/shortcuts/<shortcut_id>/versions/latest'
Gets the latest version of a shortcut. No api key needed.
POST 'api/v1/<api_key>/shortcuts/<shortcut_id>/versions/create'
Creates a new version for a shortcut.
Parameters:
'version' : The version number
'link' : Link to the shortcut on iCloud
'changes' : List of changes for this version
POST 'api/v1/<api_key>/shortcuts/<shortcut_id>/publish'
Changes the publish status of a shortcut to True.
POST 'api/v1/<api_key>/shortcuts/<shortcut_id>/unpublish'
Changes the publish status of a shortcut to False.