Habitica

The Habitica modules allow you to monitor, create, update, send, retrieve, list, and delete the groups, tags, messages, and challenges in your Habitica account.

Getting Started with Habitica

Prerequisites

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting Habitica to Integromat

To connect your Habitica account to Integromat you need to obtain the User ID and API Token from your Habitica account and insert them in the Create a connection dialog in the Integromat module.

1. Log in to your Habitica account.

2. Click Your Profile Icon > Settings > API.

3. Copy the User ID. Click Show API Token and copy the token to a safe place.

4. Log in to your Integromat account and add a module from the Habitica app into an Integromat scenario.

5. Click Add next to the Connection field.

6. In the Connection name field, enter a name for the connection.

7. In the User ID and API Key field, enter the details copied in step 3 in the respective fields and click Continue.

The connection has been established.

Groups

Search Groups

Searches group by criteria.

ConnectionEstablish a connection to your Habitica account.
TypeAdd the type details:
PartySelect whether you want to search the party groups.
GuildsSelect whether you want to search the guild groups.
Private GuildsSelect whether you want to search the private guild groups.
Public GuildsSelect whether you want to search the public guild groups.
TavernSelect whether you want to search the tavern groups.
Note: At least one type must be selected.
LimitSet the maximum number of groups Integromat should return during one execution cycle. The default value is 10.

Get a Group

Get a group.

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose details you want to retrieve.
Note: Public guilds groups are not displayed in the list.


Create a Group

Creates a group.

ConnectionEstablish a connection to your Habitica account.
NameEnter (map) a name for the group.
Type
Select or map the group type you want to create.
  • Guild 
  • Party
Privacy
Select or map the privacy settings for the group.
  • Private
  • Public
Note: For the group-type party, the privacy should be set to private.

Update a Group 

Modifies a group. (Only for the group leader)

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose details you want to update.
Group NameEnter (map) a  new name for the group.

Leave a Group

Leaves a group.

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID which you want to leave.
Note: Public guild groups are not displayed in the list.
KeepSelect whether you want to keep all the challenges belonging to the group being left.
  • Keep All
  • Remove All
Keep ChangesSelect whether you want to leave or remain in the challenges of the group. 
  • Leave Challenges
  • Remain in Challenges

Join a Group

Joins a group.

ConnectionEstablish a connection to your Habitica account.
Group IDEnter (map) the Group ID you want to join.

Reject a Group Invite

Rejects a group invite.

ConnectionEstablish a connection to your Habitica account.
Group IDEnter (map) the Group ID whose invite you want to reject.

Remove a Member From a Group

Remove a member from a group. (only for the group leader)

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID from which you want to remove the member.
Member IDSelect or map the Member ID whom you want to remove from the group.

Invite Users to a Group

Invites users to a group.

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID to which you want to invite the users. 
EmailsAdd the email addresses of the users:
EmailEnter (map) the email ID of the user.
NameEnter (map) the name of the user.

User IDsAdd the User IDs of the users:
ValueEnter (map) the User ID of the user.

Tags

List Tags

List all tags

ConnectionEstablish a connection to your Habitica account.
LimitSet the maximum number of tags Integromat should return during one execution cycle. The default value is 10. 

Get a Tag

Gets a tag.

ConnectionEstablish a connection to your Habitica account.
Tag IDSelect or map the Tag ID whose details you want to retrieve.

Create a New Tag

Creates a new tag.

ConnectionEstablish a connection to your Habitica account.
NameEnter (map) a name for the tag.

Update a Tag

Modifies a tag.

ConnectionEstablish a connection to your Habitica account.
Tag IDSelect or map the Tag ID whose details you want to update.
NameEnter (map) a new name for the tag.

Delete a Tag

Deletes a tag.

ConnectionEstablish a connection to your Habitica account.
Tag IDSelect or map the Tag ID you want to delete.

Tasks

Integromat automatically creates a webhook in Habitica once you add an instant trigger to your scenario.

Watch Task Activity

Watches for a task activity. 

Webhook nameEnter the name of the webhook.
Connection Select the connection for the webhook.
OptionsSelect or map the following options:
  • Created
  • Updated
  • Deleted
  • Scored
Enabled
Select whether you want to enable the webhook.
Label
Enter (map) the label for the webhook.

List Tasks

Lists all tasks.

ConnectionEstablish a connection to your Habitica account.
LimitSet the maximum number of tasks Integromat should return during one execution cycle. The default value is 10.

Get a Task Belonging to User

Gets a task belonging to the user.

ConnectionEstablish a connection to your Habitica account.
Task IDSelect or map the Task ID of the user whose detail you want to retrieve.

Create a Task Belonging to User

Creates a task belonging to the user.

ConnectionEstablish a connection to your Habitica account.
TextEnter (map) the text to be displayed for the task.
Task TypeSelect or map the task type:
  • Habit
  • Daily
  • To Do
  • Reward

Habit


Up
Select, if the task is a habit to enable the + under the directions/action in the good habits.
Down
Select, if the task is a habit to enable the under the directions/action in the bad habits.

DailySelect the day on which you want the task to be repeated:
MondaySelect if you want to repeat the task on Monday.
TuesdaySelect if you want to repeat the task on Tuesday.
WednesdaySelect if you want to repeat the task on Wednesday.
ThursdaySelect if you want to repeat the task on Thursday.
FridaySelect if you want to repeat the task on Friday.
SaturdaySelect if you want to repeat the task on Saturday.
Sunday
Select if you want to repeat the task on Sunday.
StreakEnter (map) the number of days that the task needs to be consecutively been checked off. This is valid only for type daily.
Days of Month
Enter (map) the days of the month.
Weeks of Month
Enter (map) the weeks of the month.
Start Date
Enter (map) the start date of the task.

Date
Enter (map) the due date to be shown in the task list.
Value
Enter (map) the value of the reward. This value should be greater than or equal to 0.
TagsSelect or map the type of tag you want to create.
AliasEnter (map) the alias name to be displayed for the task.
AttributesSelect or map the task attributes:
  • Strength
  • Intelligence
  • Perception
  • Constitution
Collapse ChecklistSelect whether to collapse the checklist.
NotesEnter (map) any additional information about the task.
PrioritySelect or map the task priority:
  • Trivial
  • Easy
  • Medium
  • Hard
RemindersEnter (map) the fields for setting reminders:
UUIDEnter (map) the Task UUID.
Start DateEnter (map) the start date to send the reminder for the task.
Start TimeEnter (map) the start time to send the reminder.

FrequencySelect or map the frequency level:
  • Daily
  • Weekly
  • Monthly
  • Yearly
Note: Values Weekly and Monthly enable the use of the Repeat field. All frequency values enable the use of the Every X field. Value Monthly enables the use of the Weeks of Month and Days of Month fields. Frequency is only valid for the type Daily.

Update a Task Belonging to User

Update a task belonging to the user. 

ConnectionEstablish a connection to your Habitica account.
Task IDSelect or map the task ID of the user you want to update.
TextEnter (map) the text to be displayed for the task.
UpSelect, if the task is a habit to enable the + under the directions/action in the good habits.
DownSelect, if the task is a habit to enable the - under the directions/action in the bad habits.
RepeatSelect the day on which you want the task to be repeated:
MondaySelect if you want to repeat the task on Monday.
TuesdaySelect if you want to repeat the task on Tuesday.
WednesdaySelect if you want to repeat the task on Wednesday.
ThursdaySelect if you want to repeat the task on Thursday.
FridaySelect if you want to repeat the task on Friday.
SaturdaySelect if you want to repeat the task on Saturday.
SundaySelect if you want to repeat the task on Sunday.
 
StreakEnter (map) the number of days that the task needs to be consecutively been checked off. This is valid only for type daily.
Days of MonthEnter (map) the days of the month.
Weeks of MonthEnter (map) the weeks of the month.
Start DateEnter (map) the start date of the task.
DateEnter (map) the due date of the task. This is valid only for type to do.
ValueEnter (map) the value. This is valid only for type reward. The value should be greater than or equal to 0.
AttributeSelect or map the task attribute:
  • Strength
  • Intelligence
  • Perception
  • Constitution
Collapse ChecklistSelect whether to collapse the checklist.
NotesEnter (map) any additional information about the task.
PrioritySelect or map the task priority: 
  • Trivial
  • Easy
  • Medium
  • Hard
RemindersEnter (map) the fields for setting reminders:
UUIDEnter (map) the Task UUID.
Start DateEnter (map) the start date to send the reminder for the task.
Start TimeEnter (map) the start time to send the reminder.

FrequencySelect or map the frequency level:
  • Daily
  • Weekly
  • Monthly
  • Yearly
Note: Values Weekly and Monthly enable the use of the Repeat field. All frequency values enable the use of the Every X field. Value Monthly enables the use of the Weeks of Month and Days of Month fields. Frequency is only valid for the type Daily.

Delete a Task Belonging to User

Delete a task belonging to the user. 

ConnectionEstablish a connection to your Habitica account.
Task IDSelect or map the Task ID you want to delete.

Messages

Send a Private Message

Sent a private message.

ConnectionEstablish a connection to your Habitica account.
To User IDEnter (map) the User ID to whom you want to send the message.
MessageEnter (map) the message text.

Mark Private Message as Read

Mark private messages as read.

ConnectionEstablish a connection to your Habitica account.

Post Chat Message to a Group

Posts chat Message to a group.

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID to which you want to post the message.
MessageEnter (map) the message text.
Previous MessageEnter (map) the previous chat Message UUID that will force a return of the full group chat.  

Mark All Messages as Read

Marks all messages as read for a group.

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose messages you want to mark as read.
Note: The public guild groups are not displayed in the list. 

Challenges

List Challenges

Lists all challenges.

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose challenges you want to list.
Note: The public guild groups are not displayed in the list.
LimitSet the maximum number of challenges Integromat should return during one execution cycle. The default value is 10.

Get a Challenge

Get a challenge. 

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose challenge details you want to retrieve.
Note: The public guild groups are not displayed in the list. 
Challenge IDSelect or map the Challenge ID whose details you want to retrieve.

Create a Challenge

Create a challenge. 

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID for which you want to create a challenge.
Note: The public guild groups are not displayed in the list.
NameEnter (map) the full name of the challenge you want to create.
Short NameEnter (map) the shortened name for the challenge you want to create, to be used as a tag.
Summary Enter (map) the summary advertising the main purpose of the challenge you want to create. If not supplied, the challenge name will be used. Must be at most 250 characters long.
DescriptionEnter (map) the detailed description of the challenge you want to create.
PrizeEnter (map) the number of gems offered as a prize to the winner of the challenge.
OfficialSelect whether the challenge is an official Habitica challenge. This requires admin permissions.

Update a Challenge

Updates a challenge. (For challenge leaders only)

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose challenge details you want to update. 
Challenge IDSelect or map the Challenge ID whose details you want to update.
NameEnter (map) the new name for the challenge you want to update.
Short NameEnter (map) the shortened name for the challenge you want to update, to be used as a tag.
Summary Enter (map) the summary advertising the main purpose of the challenge you want to update. If not supplied, the challenge name will be used. Must be at most 250 characters long.
DescriptionEnter (map) the detailed description of the challenge you want to update.

Delete a Challenge 

Removes a challenge. 

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID for whose challenge you want to delete.
Note: The public guild groups are not displayed in the list.
Challenge IDSelect or map the Challenge ID you want to delete.

Join a Challenge

Joins a challenge. 

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose challenges you want to join.  
Challenge IDSelect or map the Challenge ID which you want to join.

Leave a Challenge

Leaves a challenge. 

ConnectionEstablish a connection to your Habitica account.
Group IDSelect or map the Group ID whose challenge you want to leave.
Note: The public guild groups are not displayed in the list.
Challenge IDSelect or map the Challenge ID you want to leave.

Others

Performs an arbitrary authorized API call.

ConnectionEstablish a connection to your Habitica account.
URL

Enter a path relative to https://habitica.com/api For example: /v3/tags

For the list of available endpoints, refer to the Habitica API Documentation.

Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

HeadersEnter the desired request headers. You don't have to add authorization headers; we already did that for you.
Query StringEnter the request query string.
BodyEnter the body content for your API call.

Example of Use - List Groups

The following API call returns all the groups from your Habitica account:

URL:
/v3/groups

Method:
GET

Matches of the search can be found in the module's Output under Bundle > Body > data
In our example, 1 group was returned:




Popular use cases from our blog

automated-data-collection-crm-illustration

How to Automate Data Collection - Part 5: CRM Systems

automated-data-collection-chatbot-marketing-illustration

How to Automate Data Collection - Part 4: Chatbot Marketing

automated-data-collection-paid-ads-illustration

How to Automate Data Collection - Part 3: Paid Ads

automated-data-collection-email-illustration

How to Automate Data Collection - Part 2: Email Marketing Segmentation

personalized-customer-experience-illustration-integromat

5 Automated Solutions to Personalize Customer Experience

data-collection-automation-forms-pt-1

How to Automate Data Collection - Part 1: Online Forms

Didn’t find what you were looking for?

Expert

Find an expert

We feature a network of 450+ certified partners across the globe who are ready to help

Find an expert

Automate any workflow in your business

Sign up for a free account today. No credit card required, no time limits on free plan.