Remover conexão Telegram
curl --request DELETE \
--url https://api.notifique.dev/v1/telegram/instances/{instanceId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifique.dev/v1/telegram/instances/{instanceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/telegram/instances/{instanceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/telegram/instances/{instanceId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "Instance deleted"
}{
"success": false,
"error": "Unauthorized",
"message": "Invalid or missing API Key",
"code": "UNAUTHORIZED"
}{
"success": false,
"error": "Payment Required",
"message": "Plan expired or suspended",
"code": "WORKSPACE_BLOCKED"
}{
"success": false,
"error": "Forbidden",
"message": "Missing scope: telegram:instances:delete",
"code": "FORBIDDEN"
}{
"success": false,
"error": "Not Found",
"message": "Instance not found",
"code": "NOT_FOUND"
}Instâncias
Remover conexão Telegram
Remove uma conta Telegram da sua configuração.
DELETE
/
v1
/
telegram
/
instances
/
{instanceId}
Remover conexão Telegram
curl --request DELETE \
--url https://api.notifique.dev/v1/telegram/instances/{instanceId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifique.dev/v1/telegram/instances/{instanceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/telegram/instances/{instanceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/telegram/instances/{instanceId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "Instance deleted"
}{
"success": false,
"error": "Unauthorized",
"message": "Invalid or missing API Key",
"code": "UNAUTHORIZED"
}{
"success": false,
"error": "Payment Required",
"message": "Plan expired or suspended",
"code": "WORKSPACE_BLOCKED"
}{
"success": false,
"error": "Forbidden",
"message": "Missing scope: telegram:instances:delete",
"code": "FORBIDDEN"
}{
"success": false,
"error": "Not Found",
"message": "Instance not found",
"code": "NOT_FOUND"
}Esta página foi útil?
⌘I

