Excluir webhook
curl --request DELETE \
--url https://api.upag.io/v1/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/webhooks/{webhookId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Endpoints
Excluir webhook
Remove um webhook (soft delete)
DELETE
https://api.upag.io
/
v1
/
webhooks
/
{webhookId}
Excluir webhook
curl --request DELETE \
--url https://api.upag.io/v1/webhooks/{webhookId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.upag.io/v1/webhooks/{webhookId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.upag.io/v1/webhooks/{webhookId}';
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Permissão:
webhook.write
Endpoint
curl -X DELETE https://api.upag.dev/v1/webhooks/aa0e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer sk_test_your_api_key"
import { Upag } from 'upag';
const upag = new Upag('sk_test_your_api_key');
await upag.webhooks.delete('aa0e8400-e29b-41d4-a716-446655440000');
Em produção use
https://api.upag.io/v1 com sk_live_.... O SDK escolhe o host pela chave.Parâmetros
string (uuid)
required
ID do webhook.
Resposta
204 No Content — sem corpo em sucesso.