Last updated 1 month ago
The identifier of the webhook
Success
Created
const response = await fetch('https://api.younium.com/Webhooks/{id}', { method: 'DELETE', headers: {}, }); const data = await response.json();
{ "type": "text", "title": "text", "status": 0, "detail": "text", "instance": "text" }
const response = await fetch('https://api.younium.com/Webhooks', { method: 'GET', headers: {}, }); const data = await response.json();
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "url": "text", "events": [ "text" ], "token": "text", "description": "text", "webhookStatus": {} } ]
const response = await fetch('https://api.younium.com/Webhooks/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "url": "text", "events": [ "text" ], "token": "text", "description": "text", "webhookStatus": {} }
const response = await fetch('https://api.younium.com/Webhooks', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "events": [ "text" ], "url": "https://example.com" }), }); const data = await response.json();