The Husqy premium subscription is now live! Please head over to our Discord store page to get started!
We are verified! Husqy is 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 module

General

Endpoints related to general Husqy Modules reminders.

GET - /modules/reminders/

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

DELETE - /modules/reminders/delete

Delete all settings of the reminders module for a specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to delete the settings from

Possible errors:

  • BadRequestError

Status

Endpoints related to the status of the module.

GET - /modules/reminders/status

Get the status of the reminders module for the specified guild.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to check the status of

Possible errors:

  • BadRequestError
  • SettingsError
POST - /modules/reminders/enable

Endpoint to enable the reminders module for the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to enable the reminders module for

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleEnabledError
  • DatabaseError
POST - /modules/reminders/disable

Endpoint to disable the reminders module for the specified guild.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to disable the reminders module for

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • DatabaseError

Reminders

Endpoint related to reminders.

GET - /modules/reminders/entries

Endpoint to get the known reminders.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the known polls from
pagenointegerThe page number to get (default = 1)
page_sizenointegerThe amount of polls to return in one page (default = 10)
reminder_typenostringThe type of reminder to filter: 'Quick', 'Repeated' or 'Scheduled'
user_idnointegerThe ID of the user to filter for

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
POST - /modules/reminders/entries

Endpoint to create a new reminder in the Discord server.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to create the reminder in
reminder_typeyesintegerThe type of reminder to create. 1 for 'Quick', 2 for 'Repeated' or 3 for 'Scheduled'
schedule_detailsyesstringThe json configuration of the schedule
titleyesstringThe title of the reminder. Ignored when reminder_type is 2 or 3
descriptionyesstringThe description of the reminder. Can be None. Ignored when reminder_type is 2 or 3
owneryesintegerThe owner of the reminder. Ignored when reminder_type is 2 or 3
urlyesstringThe url to add to the reminder. Ignored when reminder_type is 2 or 3
destination_idyesintegerThe ID of the destination (Member DM or channel)
contentyesstringThe content of the reminder message to send. Ignored when reminder_type is 1. Supports Husqy embed config.
content_is_embedyesbooleanIf the content is a Husqy embed configuration
application_idyesintegerThe ID of the application interaction. Can be None
tokenyesstringThe token of the interaction. Can be None

Possible errors:

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

Endpoint to get the specified reminder.

Query string parameters:

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to get the reminder from

Possible errors:

  • BadRequestError
  • SettingsError
  • ModuleDisabledError
  • InternalServerError
DELETE - /modules/reminders/entry/{reminder_id}

Endpoint to delete an existing reminder in the Discord server.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to remove the reminder in
application_idyesintegerThe ID of the application interaction. Can be None
tokenyesstringThe token of the interaction. Can be None

Possible errors:

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

Do not use this endpoint yourself! Husqy will automatically send the reminders based on the reminders schedule.

Endpoint to send a reminder to a destination.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to edit the poll in

Possible errors:

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

Do not use this endpoint yourself! Husqy will automatically handle the interaction when this takes place.

Endpoint to interact a quick reminder (f.e. complete or mark as later).

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild where the reminder is located
actionyesstringThe action to take. Can be 'complete' or 'remind_later'
new_delayyesstringThe new duration to wait before sending the reminder again. Ignored when action is 'complete'
application_idyesintegerThe ID of the application interaction. Can be None
tokenyesstringThe token of the interaction. Can be None

Possible errors:

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

Handler

GET - /modules/reminder/handler

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

POST - /modules/reminders/handler/create
danger

Do not use this endpoint yourself! To create a reminder use the POST - /modules/reminders/entries endpoint.

Endpoint to create a new poll in the Discord server.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to create the reminder in
reminder_idyesstringThe ID of the reminder to create
reminder_typeyesintegerThe type of reminder to create. Can be 1 for 'Quick', 2 for 'Repeated' or 3 for 'Scheduled'
trigger_typeyesstringThe type of trigger to create. Can be 'date', 'cron' or 'interval'
schedule_detailsyesstringThe schedule configuration for the reminder

Possible errors:

  • BadRequestError
DELETE - /modules/reminders/handler/delete
danger

Do not use this endpoint yourself! To delete a reminder use the POST - /modules/reminders/entry/{reminder_id} endpoint.

Endpoint to delete a reminder in the Discord server.

Body data (JSON):

fieldrequiredtypedescription
guild_idyesintegerThe ID of the guild to delete the reminder in
reminder_idyesstringThe ID of the reminder to delete

Possible errors:

  • BadRequestError

Privacy

Endpoints related to privacy and the polls module

GET - /modules/polls/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 the polls module 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 - /modules/polls/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 polls module 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