TagMangoTagMango Docs

Register Webhook

POST
/api/v1/integration/webhook/webhook

Register a new webhook subscription for a specific event type.

You can optionally filter events by associating a specific mango, course, webinar, or page.

Filter Applicability

FilterApplicable Events
mangoorder.created.all, order.created.initiated, order.created.completed, order.created.failed, order.recurring.created, subscription.expired
coursecourse.completed, course.completed.all, course.completed.10, course.completed.50, course.completed.100
webinarwebinar.attended, webinar.rescheduled, webinar.created.all, webinar.created.single, webinar.created.recurring, webinar.cancelled, webinar.reminder.all, webinar.reminder.15min, webinar.reminder.30min, webinar.reminder.1day, webinar.completed.all, webinar.completed.15min, webinar.zoom.assigned
pagelead.capture
x-api-key<token>

Your TagMango API key from Dashboard → Platform Integrations

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api-prod-new.tagmango.com/api/v1/integration/webhook/webhook" \  -H "Content-Type: application/json" \  -d '{    "hookUrl": "https://your-server.com/webhook",    "event": "order.created.all"  }'
{
  "code": 200,
  "type": "Success",
  "statusMessage": "OK",
  "message": "Trigger created successfully",
  "success": true,
  "result": {
    "data": "634fc35ddaf58580e2418c40"
  }
}
Empty