Linking Tape to Habitica

For a few reasons today, I was setting up some ‘resolutions,’ and while I was in Habitica, I had half an hour to kill (lunch was kindly been made for me) I thought it would be fun to link it with Tape.
Tape-Habitica

We have two automations one that creates the Task in Habitica and one that listens for task updates:

const api = collected_api_key_field_apikey_value;
const url = "https://habitica.com/api/v3/tasks/user";
const userId = 'ec4920f8-f805-44c6-ae23-851702e0732a';
const { data, headers } = await http.post(url,{
    headers:{
        'x-api-user': userId,
        'x-api-key': api,
        'Content-Type': 'application/json'
    },    
    data: {
    "text": habitica___task_field_name_value,
    "type": "todo",
    "notes": habitica___task_field_notes_unformatted_value,
    "tags": [
        "cd3025d0-d1ff-4fab-b872-c1e8935fcd0b"
    ],

    "priority": 2
}
})

console.info(JSON.stringify(data));
var_id = data.data.id;
console.info(var_id); 

There are lots of other things you could do if you wanted to, like creating Challenges or Quests for projects etc. if that was your thing.

This was a bit of fun, however, the whole thing took me about 30 minutes from getting the idea to having a working integration so it shows again how quick and easy it is to integrate other tools with Tape. If you don’t like the way Tape handles tasks don’t let that put you off just link Tape to a task manager of your choice and away you go :slight_smile:

2 Likes