Course completion Event

course.completed

This event is triggered when a subscriber completes watching/consuming the entire course. Example curl to subscribe to the event

curl --location 'https://api-prod-new.tagmango.com/integration/webhook' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: en-US,en;q=0.9' \
--header 'Cache-Control: no-cache' \
--header 'Connection: keep-alive' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <Your API Key>' \
--data '{
    "hookUrl": "<your webhook url>",
    "event": "course.completed",
    "course": "<the course to be associated>",
}'

Webhook payload:

{
  "name": "Student Name",
  "email": "student@example.com",
  "phone": 1234567890,
  "course": "Example course",
  "courseId": "abcd",
  "lastProgressOn": "2023-11-20T18:30Z"
}

Last updated