--- title: notification full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## notification-createSlack ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.createSlack" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "webhookUrl": "string", "channel": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.createSlack", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-updateSlack ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.updateSlack" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "webhookUrl": "string", "channel": "string", "notificationId": "string", "slackId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.updateSlack", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-testSlackConnection ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.testSlackConnection" \ -d '{ "webhookUrl": "string", "channel": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.testSlackConnection", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-createTelegram ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.createTelegram" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "botToken": "string", "chatId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.createTelegram", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-updateTelegram ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.updateTelegram" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "botToken": "string", "chatId": "string", "notificationId": "string", "telegramId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.updateTelegram", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-testTelegramConnection ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.testTelegramConnection" \ -d '{ "botToken": "string", "chatId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.testTelegramConnection", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-createDiscord ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.createDiscord" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "webhookUrl": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.createDiscord", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-updateDiscord ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.updateDiscord" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "webhookUrl": "string", "notificationId": "string", "discordId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.updateDiscord", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-testDiscordConnection ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.testDiscordConnection" \ -d '{ "webhookUrl": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.testDiscordConnection", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-createEmail ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum: `1` Minimum length: `1` Minimum length: `1` Minimum length: `1` "} required={true} deprecated={undefined}> | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.createEmail" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "smtpServer": "string", "smtpPort": 1, "username": "string", "password": "string", "fromAddress": "string", "toAddresses": [ "string" ] }' ``` ```js fetch("http://localhost:3000/api/notification.createEmail", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-updateEmail ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum: `1` Minimum length: `1` Minimum length: `1` Minimum length: `1` "} required={false} deprecated={undefined}> Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.updateEmail" \ -d '{ "appBuildError": true, "databaseBackup": true, "dokployRestart": true, "name": "string", "appDeploy": true, "dockerCleanup": true, "smtpServer": "string", "smtpPort": 1, "username": "string", "password": "string", "fromAddress": "string", "toAddresses": [ "string" ], "notificationId": "string", "emailId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.updateEmail", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-testEmailConnection ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum: `1` Minimum length: `1` Minimum length: `1` "} required={true} deprecated={undefined}> Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.testEmailConnection" \ -d '{ "smtpServer": "string", "smtpPort": 1, "username": "string", "password": "string", "toAddresses": [ "string" ], "fromAddress": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.testEmailConnection", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-remove ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/notification.remove" \ -d '{ "notificationId": "string" }' ``` ```js fetch("http://localhost:3000/api/notification.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-one ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/notification.one?notificationId=string" ``` ```js fetch("http://localhost:3000/api/notification.one?notificationId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## notification-all ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/notification.all" ``` ```js fetch("http://localhost:3000/api/notification.all", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```