> For the complete documentation index, see [llms.txt](https://developers.clashperk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.clashperk.com/reminders.md). Agents can also search and read this documentation through its [MCP server](https://developers.clashperk.com/~gitbook/mcp).

# Reminders

Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only.

## List the server's reminders

> Includes clan war, capital raid and Clan Games reminders, with when each one will go off next.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"GuildRemindersDto":{"type":"object","properties":{"clanWars":{"type":"array","items":{"$ref":"#/components/schemas/ClanWarReminderDto"}},"capitalRaids":{"type":"array","items":{"$ref":"#/components/schemas/CapitalRaidReminderDto"}},"clanGames":{"type":"array","items":{"$ref":"#/components/schemas/ClanGamesReminderDto"}}},"required":["clanWars","capitalRaids","clanGames"]},"ClanWarReminderDto":{"type":"object","properties":{"disabled":{"type":"boolean"},"townHalls":{"type":"array","items":{"type":"number"}},"remaining":{"type":"array","items":{"type":"number"}},"warTypes":{"type":"array","items":{"type":"string"}},"smartSkip":{"type":"boolean"},"silent":{"type":"boolean"},"randomLimit":{"type":["number","null"]},"id":{"type":"string"},"shortId":{"type":"string","description":"Short ID the bot shows in Discord: the last 5 hex characters, uppercased."},"channelId":{"type":"string"},"channelName":{"type":["string","null"]},"threadId":{"type":["string","null"]},"message":{"type":"string"},"duration":{"type":"number","description":"Time before the event ends, in milliseconds."},"roles":{"type":"array","items":{"type":"string"}},"linkedOnly":{"type":"boolean"},"clans":{"type":"array","items":{"$ref":"#/components/schemas/ReminderClanDto"}},"schedules":{"description":"Runs from the last 3 days and upcoming ones, oldest first. The bot drops older runs.","type":"array","items":{"$ref":"#/components/schemas/ReminderScheduleDto"}},"createdAt":{"format":"date-time","type":"string"}},"required":["disabled","townHalls","remaining","warTypes","smartSkip","silent","randomLimit","id","shortId","channelId","channelName","threadId","message","duration","roles","linkedOnly","clans","schedules","createdAt"]},"ReminderClanDto":{"type":"object","properties":{"tag":{"type":"string"},"name":{"type":"string"}},"required":["tag","name"]},"ReminderScheduleDto":{"type":"object","properties":{"warType":{"enum":["normal","friendly","cwl",null],"type":["string","null"]},"id":{"type":"string"},"clan":{"$ref":"#/components/schemas/ReminderClanDto"},"timestamp":{"format":"date-time","type":"string","description":"When the bot pings (or pinged) for this clan."},"triggered":{"type":"boolean"},"reason":{"type":["string","null"],"description":"Bot outcome once handled, e.g. `reminder_sent_successfully` or a skip reason."}},"required":["warType","id","clan","timestamp","triggered","reason"]},"CapitalRaidReminderDto":{"type":"object","properties":{"allMembers":{"type":"boolean"},"minThreshold":{"type":"number"},"remaining":{"type":"array","items":{"type":"number"}},"id":{"type":"string"},"shortId":{"type":"string","description":"Short ID the bot shows in Discord: the last 5 hex characters, uppercased."},"channelId":{"type":"string"},"channelName":{"type":["string","null"]},"threadId":{"type":["string","null"]},"message":{"type":"string"},"duration":{"type":"number","description":"Time before the event ends, in milliseconds."},"roles":{"type":"array","items":{"type":"string"}},"linkedOnly":{"type":"boolean"},"clans":{"type":"array","items":{"$ref":"#/components/schemas/ReminderClanDto"}},"schedules":{"description":"Runs from the last 3 days and upcoming ones, oldest first. The bot drops older runs.","type":"array","items":{"$ref":"#/components/schemas/ReminderScheduleDto"}},"createdAt":{"format":"date-time","type":"string"}},"required":["allMembers","minThreshold","remaining","id","shortId","channelId","channelName","threadId","message","duration","roles","linkedOnly","clans","schedules","createdAt"]},"ClanGamesReminderDto":{"type":"object","properties":{"allMembers":{"type":"boolean"},"minPoints":{"type":"number"},"id":{"type":"string"},"shortId":{"type":"string","description":"Short ID the bot shows in Discord: the last 5 hex characters, uppercased."},"channelId":{"type":"string"},"channelName":{"type":["string","null"]},"threadId":{"type":["string","null"]},"message":{"type":"string"},"duration":{"type":"number","description":"Time before the event ends, in milliseconds."},"roles":{"type":"array","items":{"type":"string"}},"linkedOnly":{"type":"boolean"},"clans":{"type":"array","items":{"$ref":"#/components/schemas/ReminderClanDto"}},"schedules":{"description":"Runs from the last 3 days and upcoming ones, oldest first. The bot drops older runs.","type":"array","items":{"$ref":"#/components/schemas/ReminderScheduleDto"}},"createdAt":{"format":"date-time","type":"string"}},"required":["allMembers","minPoints","id","shortId","channelId","channelName","threadId","message","duration","roles","linkedOnly","clans","schedules","createdAt"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}":{"get":{"description":"Includes clan war, capital raid and Clan Games reminders, with when each one will go off next.","operationId":"listReminders","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GuildRemindersDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"List the server's reminders","tags":["Reminders"]}}}}
```

## GET /reminders/{guildId}/pings

> Get the roles that control reminder pings

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ReminderPingsDto":{"type":"object","properties":{"mode":{"description":"optIn pings only members with the role; optOut skips them.","enum":["optIn","optOut"],"type":"string"},"clanWarsRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"},"capitalRaidsRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"},"clanGamesRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"}},"required":["mode","clanWarsRole","capitalRaidsRole","clanGamesRole"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/pings":{"get":{"operationId":"getReminderPings","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderPingsDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Get the roles that control reminder pings","tags":["Reminders"]}}}}
```

## Set the roles that control reminder pings

> Sending an empty list clears the setting. Members with these roles are saved right away, and the bot keeps the list up to date.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ReminderPingsInput":{"type":"object","properties":{"mode":{"type":"string","description":"optIn pings only members with the role; optOut skips them.","enum":["optIn","optOut"]},"clanWarsRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"},"capitalRaidsRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"},"clanGamesRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"}},"required":["mode","clanWarsRole","capitalRaidsRole","clanGamesRole"]},"ReminderPingsDto":{"type":"object","properties":{"mode":{"description":"optIn pings only members with the role; optOut skips them.","enum":["optIn","optOut"],"type":"string"},"clanWarsRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"},"capitalRaidsRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"},"clanGamesRole":{"type":["string","null"],"pattern":"^\\d{17,20}$"}},"required":["mode","clanWarsRole","capitalRaidsRole","clanGamesRole"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/pings":{"put":{"description":"Sending an empty list clears the setting. Members with these roles are saved right away, and the bot keeps the list up to date.","operationId":"saveReminderPings","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderPingsInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderPingsDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Set the roles that control reminder pings","tags":["Reminders"]}}}}
```

## Create a clan war reminder

> Set \`duration\` to how long before the war ends the reminder should go off, in milliseconds. It can be up to 48 hours, in 15-minute steps. A server can have 25 reminders of each type, or 5 per clan if that's more. Supporter servers have no limit.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ClanWarReminderInput":{"type":"object","properties":{"roles":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/ReminderClanRole"}},"remaining":{"type":"array","description":"Ping members with this many attacks left; empty pings nobody.","uniqueItems":true,"items":{"$ref":"#/components/schemas/WarAttacksLeft"}},"warTypes":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"#/components/schemas/ReminderWarType"}},"disabled":{"type":"boolean"},"townHalls":{"uniqueItems":true,"type":"array","items":{"type":"number","maximum":19,"minimum":1}},"smartSkip":{"type":"boolean","description":"Skip once the clan reaches 100% destruction."},"silent":{"type":"boolean","description":"Post the message only, without mentioning members."},"channelId":{"type":"string","pattern":"^\\d{17,20}$"},"webhook":{"description":"From Discord's `webhook.incoming` sign-in; without one, a known webhook in the channel is reused.","allOf":[{"$ref":"#/components/schemas/ReminderWebhookInput"}]},"message":{"type":"string","minLength":1,"maxLength":1800},"duration":{"type":"number","description":"Time before the event ends, in milliseconds.","minimum":900000},"linkedOnly":{"type":"boolean"},"clans":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^#[0289PYLQGRJCUV]{3,}$"}}},"required":["roles","remaining","warTypes","disabled","townHalls","smartSkip","silent","channelId","message","duration","linkedOnly","clans"]},"ReminderClanRole":{"type":"string","enum":["leader","coLeader","admin","member"]},"WarAttacksLeft":{"type":"number","enum":[1,2],"description":"Ping members with this many attacks left; empty pings nobody."},"ReminderWarType":{"type":"string","enum":["normal","friendly","cwl"]},"ReminderWebhookInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{17,20}$"},"token":{"type":"string","minLength":1}},"required":["id","token"]},"ReminderIdDto":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/clan-wars":{"post":{"description":"Set `duration` to how long before the war ends the reminder should go off, in milliseconds. It can be up to 48 hours, in 15-minute steps. A server can have 25 reminders of each type, or 5 per clan if that's more. Supporter servers have no limit.","operationId":"createClanWarReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanWarReminderInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderIdDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Create a clan war reminder","tags":["Reminders"]}}}}
```

## Update a clan war reminder

> Send the whole reminder, the same as when you created it. Moving it to another channel removes its thread.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ClanWarReminderInput":{"type":"object","properties":{"roles":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/ReminderClanRole"}},"remaining":{"type":"array","description":"Ping members with this many attacks left; empty pings nobody.","uniqueItems":true,"items":{"$ref":"#/components/schemas/WarAttacksLeft"}},"warTypes":{"type":"array","uniqueItems":true,"minItems":1,"items":{"$ref":"#/components/schemas/ReminderWarType"}},"disabled":{"type":"boolean"},"townHalls":{"uniqueItems":true,"type":"array","items":{"type":"number","maximum":19,"minimum":1}},"smartSkip":{"type":"boolean","description":"Skip once the clan reaches 100% destruction."},"silent":{"type":"boolean","description":"Post the message only, without mentioning members."},"channelId":{"type":"string","pattern":"^\\d{17,20}$"},"webhook":{"description":"From Discord's `webhook.incoming` sign-in; without one, a known webhook in the channel is reused.","allOf":[{"$ref":"#/components/schemas/ReminderWebhookInput"}]},"message":{"type":"string","minLength":1,"maxLength":1800},"duration":{"type":"number","description":"Time before the event ends, in milliseconds.","minimum":900000},"linkedOnly":{"type":"boolean"},"clans":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^#[0289PYLQGRJCUV]{3,}$"}}},"required":["roles","remaining","warTypes","disabled","townHalls","smartSkip","silent","channelId","message","duration","linkedOnly","clans"]},"ReminderClanRole":{"type":"string","enum":["leader","coLeader","admin","member"]},"WarAttacksLeft":{"type":"number","enum":[1,2],"description":"Ping members with this many attacks left; empty pings nobody."},"ReminderWarType":{"type":"string","enum":["normal","friendly","cwl"]},"ReminderWebhookInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{17,20}$"},"token":{"type":"string","minLength":1}},"required":["id","token"]},"ReminderIdDto":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/clan-wars/{reminderId}":{"put":{"description":"Send the whole reminder, the same as when you created it. Moving it to another channel removes its thread.","operationId":"updateClanWarReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanWarReminderInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderIdDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Update a clan war reminder","tags":["Reminders"]}}}}
```

## DELETE /reminders/{guildId}/clan-wars/{reminderId}

> Delete a clan war reminder

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/clan-wars/{reminderId}":{"delete":{"operationId":"deleteClanWarReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Delete a clan war reminder","tags":["Reminders"]}}}}
```

## Create a capital raid reminder

> Set \`duration\` to how long before the raid weekend ends the reminder should go off, in milliseconds. It can be up to 3 days, in 15-minute steps. A server can have 25 reminders of each type, or 5 per clan if that's more. Supporter servers have no limit.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"CapitalRaidReminderInput":{"type":"object","properties":{"roles":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/ReminderClanRole"}},"remaining":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/RaidAttacksLeft"}},"allMembers":{"type":"boolean"},"minThreshold":{"type":"number","minimum":0,"maximum":6},"channelId":{"type":"string","pattern":"^\\d{17,20}$"},"webhook":{"description":"From Discord's `webhook.incoming` sign-in; without one, a known webhook in the channel is reused.","allOf":[{"$ref":"#/components/schemas/ReminderWebhookInput"}]},"message":{"type":"string","minLength":1,"maxLength":1800},"duration":{"type":"number","description":"Time before the event ends, in milliseconds.","minimum":900000},"linkedOnly":{"type":"boolean"},"clans":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^#[0289PYLQGRJCUV]{3,}$"}}},"required":["roles","remaining","allMembers","minThreshold","channelId","message","duration","linkedOnly","clans"]},"ReminderClanRole":{"type":"string","enum":["leader","coLeader","admin","member"]},"RaidAttacksLeft":{"type":"number","enum":[1,2,3,4,5,6]},"ReminderWebhookInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{17,20}$"},"token":{"type":"string","minLength":1}},"required":["id","token"]},"ReminderIdDto":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/capital-raids":{"post":{"description":"Set `duration` to how long before the raid weekend ends the reminder should go off, in milliseconds. It can be up to 3 days, in 15-minute steps. A server can have 25 reminders of each type, or 5 per clan if that's more. Supporter servers have no limit.","operationId":"createCapitalRaidReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalRaidReminderInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderIdDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Create a capital raid reminder","tags":["Reminders"]}}}}
```

## Update a capital raid reminder

> Send the whole reminder, the same as when you created it. Moving it to another channel removes its thread.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"CapitalRaidReminderInput":{"type":"object","properties":{"roles":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/ReminderClanRole"}},"remaining":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/RaidAttacksLeft"}},"allMembers":{"type":"boolean"},"minThreshold":{"type":"number","minimum":0,"maximum":6},"channelId":{"type":"string","pattern":"^\\d{17,20}$"},"webhook":{"description":"From Discord's `webhook.incoming` sign-in; without one, a known webhook in the channel is reused.","allOf":[{"$ref":"#/components/schemas/ReminderWebhookInput"}]},"message":{"type":"string","minLength":1,"maxLength":1800},"duration":{"type":"number","description":"Time before the event ends, in milliseconds.","minimum":900000},"linkedOnly":{"type":"boolean"},"clans":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^#[0289PYLQGRJCUV]{3,}$"}}},"required":["roles","remaining","allMembers","minThreshold","channelId","message","duration","linkedOnly","clans"]},"ReminderClanRole":{"type":"string","enum":["leader","coLeader","admin","member"]},"RaidAttacksLeft":{"type":"number","enum":[1,2,3,4,5,6]},"ReminderWebhookInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{17,20}$"},"token":{"type":"string","minLength":1}},"required":["id","token"]},"ReminderIdDto":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/capital-raids/{reminderId}":{"put":{"description":"Send the whole reminder, the same as when you created it. Moving it to another channel removes its thread.","operationId":"updateCapitalRaidReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapitalRaidReminderInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderIdDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Update a capital raid reminder","tags":["Reminders"]}}}}
```

## DELETE /reminders/{guildId}/capital-raids/{reminderId}

> Delete a capital raid reminder

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/capital-raids/{reminderId}":{"delete":{"operationId":"deleteCapitalRaidReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Delete a capital raid reminder","tags":["Reminders"]}}}}
```

## Create a Clan Games reminder

> Set \`duration\` to how long before Clan Games end the reminder should go off, in milliseconds. It can be up to 6 days, in 15-minute steps. A server can have 25 reminders of each type, or 5 per clan if that's more. Supporter servers have no limit.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ClanGamesReminderInput":{"type":"object","properties":{"roles":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/ReminderClanRole"}},"allMembers":{"type":"boolean"},"minPoints":{"type":"number","minimum":0,"maximum":10000},"channelId":{"type":"string","pattern":"^\\d{17,20}$"},"webhook":{"description":"From Discord's `webhook.incoming` sign-in; without one, a known webhook in the channel is reused.","allOf":[{"$ref":"#/components/schemas/ReminderWebhookInput"}]},"message":{"type":"string","minLength":1,"maxLength":1800},"duration":{"type":"number","description":"Time before the event ends, in milliseconds.","minimum":900000},"linkedOnly":{"type":"boolean"},"clans":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^#[0289PYLQGRJCUV]{3,}$"}}},"required":["roles","allMembers","minPoints","channelId","message","duration","linkedOnly","clans"]},"ReminderClanRole":{"type":"string","enum":["leader","coLeader","admin","member"]},"ReminderWebhookInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{17,20}$"},"token":{"type":"string","minLength":1}},"required":["id","token"]},"ReminderIdDto":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/clan-games":{"post":{"description":"Set `duration` to how long before Clan Games end the reminder should go off, in milliseconds. It can be up to 6 days, in 15-minute steps. A server can have 25 reminders of each type, or 5 per clan if that's more. Supporter servers have no limit.","operationId":"createClanGamesReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanGamesReminderInput"}}}},"responses":{"201":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderIdDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Create a Clan Games reminder","tags":["Reminders"]}}}}
```

## Update a Clan Games reminder

> Send the whole reminder, the same as when you created it. Moving it to another channel removes its thread.

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ClanGamesReminderInput":{"type":"object","properties":{"roles":{"type":"array","uniqueItems":true,"items":{"$ref":"#/components/schemas/ReminderClanRole"}},"allMembers":{"type":"boolean"},"minPoints":{"type":"number","minimum":0,"maximum":10000},"channelId":{"type":"string","pattern":"^\\d{17,20}$"},"webhook":{"description":"From Discord's `webhook.incoming` sign-in; without one, a known webhook in the channel is reused.","allOf":[{"$ref":"#/components/schemas/ReminderWebhookInput"}]},"message":{"type":"string","minLength":1,"maxLength":1800},"duration":{"type":"number","description":"Time before the event ends, in milliseconds.","minimum":900000},"linkedOnly":{"type":"boolean"},"clans":{"uniqueItems":true,"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","pattern":"^#[0289PYLQGRJCUV]{3,}$"}}},"required":["roles","allMembers","minPoints","channelId","message","duration","linkedOnly","clans"]},"ReminderClanRole":{"type":"string","enum":["leader","coLeader","admin","member"]},"ReminderWebhookInput":{"type":"object","properties":{"id":{"type":"string","pattern":"^\\d{17,20}$"},"token":{"type":"string","minLength":1}},"required":["id","token"]},"ReminderIdDto":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/clan-games/{reminderId}":{"put":{"description":"Send the whole reminder, the same as when you created it. Moving it to another channel removes its thread.","operationId":"updateClanGamesReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClanGamesReminderInput"}}}},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderIdDto"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Update a Clan Games reminder","tags":["Reminders"]}}}}
```

## DELETE /reminders/{guildId}/clan-games/{reminderId}

> Delete a Clan Games reminder

```json
{"openapi":"3.2.0","info":{"title":"ClashPerk Discord Bot API","version":"v2.0.192"},"tags":[{"name":"Reminders","description":"Clan war, capital raid and clan games reminders, and who they ping. Dashboard sessions only."}],"servers":[{"url":"/v1","description":"[latest]"},{"url":"/v2","description":"[unstable]"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http","description":"in header (authorization: bearer [token])"}},"schemas":{"ErrorResponseDto":{"type":"object","properties":{"code":{"allOf":[{"$ref":"#/components/schemas/ErrorCodes"}]},"message":{"type":"string"},"statusCode":{"type":"number"},"method":{"type":"string"},"path":{"type":"string"}},"required":["code","message","statusCode","method","path"]},"ErrorCodes":{"type":"string","enum":["FORBIDDEN","UNAUTHORIZED","NOT_FOUND","BAD_REQUEST","INTERNAL_SERVER_ERROR","SERVICE_UNAVAILABLE","HANDOFF_TOKEN_EXPIRED","USER_BLOCKED","INVALID_PASSKEY","GUILD_ACCESS_FORBIDDEN","BOT_NOT_IN_GUILD","GIVEAWAY_NOT_FOUND","GIVEAWAY_NOT_ACTIVE","GIVEAWAY_ALREADY_DRAWN","GIVEAWAY_ALREADY_ENTERED","GIVEAWAY_NO_LINKED_ACCOUNT","GIVEAWAY_NOT_IN_CLAN"]}}},"paths":{"/reminders/{guildId}/clan-games/{reminderId}":{"delete":{"operationId":"deleteClanGamesReminder","parameters":[{"name":"guildId","required":true,"in":"path","schema":{"type":"string"}},{"name":"reminderId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"204":{"description":""},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseDto"}}}}},"summary":"Delete a Clan Games reminder","tags":["Reminders"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developers.clashperk.com/reminders.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
