We are testing premium Husqy subscription in testing! Please check back soon to unleash the full power of Husqy!
The permissions Husqy needs have been updated! Please cross check with the new invite link to make sure you are up to date!
We are now verified! Husqy is now a verified bot in Discord making us visible in the app discovery and enabling bigger trust to users!
Want to help us translate the Husqy responses? We can't do it without you! Please visit our translations repo!
Skip to main content

Husqy API Reminders

General

Endpoints related to general Husqy Functions Reminder functionality.

GET - /functions/reminders/

Home endpoint for the Reminder Husqy API. Returns only success message displaying that it is the Function Reminders Husqy API route.

Entries

Endpoints related to entry functionality.

DELETE - /functions/reminders/delete

Deletes all known reminders for a specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to remove the reminders from

Possible errors:

  • BadRequestError
GET - /functions/reminders/entries

Returns a list of reminder entries for the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the reminders entries from
pagenointegerThe page number to get (default = 1)
page_sizenointegerThe amount of entries to return in one page (default = 10)

Possible errors:

  • BadRequestError
  • SettingsError
  • DatabaseError
  • InternalServerError
POST - /functions/reminders/entries

Endpoint to create a new reminders entry in a guild for a member.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to create the reminder in
channel_idyesinteger(May be None) The ID of the channel where the /reminder create command is send
message_idyesinteger(May be None) The ID of the message created by the /reminder create command
wait_durationyesstringThe duration to wait before sending the reminder
destination_idyesintegerThe ID of the channel or, in case of a user DM the ID of the user, to where to send the reminder after the wait duration is over
descriptionyesstring(May be None) The description of the reminder
target_user_idyesintegerThe ID of the user who will be owner of the reminder and thus the target user (if destination is user DM the target ID MUST be that user)
linked_messageyesstring(May be None) A link to a discord message (or any other link for that matter) to place in the reminder

Possible errors:

  • BadRequestError
  • SettingsError
  • InternalServerError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
GET - /functions/reminders/entry/{reminder_id}

Returns a details of the specified reminder in the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the specified reminders entry details from

Possible errors:

  • BadRequestError
  • SettingsError
  • DatabaseError
  • InternalServerError
DELETE - /functions/reminders/entry/{reminder_id}

Deletes the specified reminder from the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the specified reminders entry details from
channel_idyesinteger(May be None) The ID of the channel where the /reminder delete command is send
message_idyesinteger(May be None) The ID of the message created by the /reminder delete command

Possible errors:

  • BadRequestError
  • SettingsError
  • InternalServerError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},
POST - /functions/reminders/entry/send
danger

Do not use this endpoint yourself! Reminders will be send by Husqy automatically.

Endpoint to send the specified reminder to the destination of the reminder.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the reminder is located
reminder_idyesstringThe ID of the reminder to send

Possible errors:

  • BadRequestError
  • SettingsError
  • InternalServerError
POST - /functions/reminders/entry/interact

Endpoint to send the specified reminder to the destination of the reminder.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the reminder that is interacted with is located
channel_idyesintegerThe ID of the channel where the interacted to reminder is located
interacted_message_idyesintegerThe ID of the reminder messages to which is reacted
actionyesstringThe interaction action. Possible actions: delete

Possible errors:

  • BadRequestError
  • SettingsError
  • InternalServerError
  • Unprocessable Entity
{
"success": False,
"data": {},
"error": {
"code": 422,
"message": "Unprocessable Entity! {reason}",
},
},

Reminder handler

Endpoints related to entry handling functionality.

POST - /functions/reminders/handler/add
danger

Do not use this endpoint yourself! Please use the POST - /functions/reminders/entries to create a new reminder.

Endpoint to add a reminder to the reminder handler service.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the reminder is created
reminder_idyesintegerThe ID of the reminder which is should be added to the reminder handler service
wait_durationyesintegerThe duration to wait before sending the reminder
end_timeyesintegerThe planned end time of the reminder

Possible errors:

  • BadRequestError
POST - /functions/reminders/handler/delete
danger

Do not use this endpoint yourself! Please use the DELETE - /functions/reminders/entry/{reminder_id} to delete an existing reminder.

Endpoint to delete a reminder from the reminder handler service.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the reminder is located
reminder_idyesintegerThe ID of the reminder which is should be deeted from the reminder handler service

Possible errors:

  • BadRequestError

Privacy

Endpoints related to privacy and the reminders

GET - /functions/reminders/privacy/get-user-entries
danger

Do not use this endpoint yourself! This endpoint will be used by Husqy's Privacy configurator (/privacy) command.

Endpoint to get the amount of references in reminders to your user.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the specified references in
privacy_member_idyesintegerThe ID of the member who wants to check their references

Possible errors:

  • BadRequestError
  • ForbiddenError
  • InternalServerError
DELETE - /functions/reminders/privacy/delete-user-entries
danger

Do not use this endpoint yourself! This endpoint will be used by Husqy's Privacy configurator (/privacy) command.

Endpoint to delete the references in reminders to your user.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to delete the specified references in
privacy_member_idyesintegerThe ID of the member who wants to remove their references

Possible errors:

  • BadRequestError
  • ForbiddenError
  • InternalServerError