Skip to main content

OnMeetingEnded

The OnMeetingEnded webhook allows you to receive real-time notifications when new meetings are created in your Mesai integration. This webhook sends detailed meeting information to your specified endpoint using your preferred authentication method.

How to Access OnMeetingEnded Webhook Settings​

Step 1: Access Profile Menu​

Access the Settings menu from your profile From your account menu, click on the "Settings" option.

Step 2: Navigate to Webhook Settings​

Navigate to Payment Options in account settings In the account settings page, select "Webhook Settings" from the left menu.

Step 3: Access Webhook Settings​

Select Webhook Settings from the menu Click on "Webhook Settings" in the left navigation menu.

Step 4: Select OnMeetingEnded​

Select OnMeetingEnded from webhook type dropdown From the Type dropdown, select "OnMeetingEnded" option.

Step 5: Configure Settings -> Edit Button​

Configure webhook settings

Step 6: Configure Settings​

Configure webhook settings Configure your webhook settings including:

  • URL details (HTTPS, domain, path)
  • Maximum attempts
  • Authentication method and credentials

How It Works​

  1. When a new meeting is created in Mesai, the system triggers a webhook event
  2. The webhook makes a POST request to your configured endpoint
  3. If the initial request fails, it will retry based on your configured maxAttemptCount
  4. You can monitor webhook delivery status and history through the logs interface

Configuration​

URL Configuration​

FieldDescriptionRequiredFormat
ProtocolHTTP or HTTPS protocol selectionYesSelect from dropdown
DomainYour webhook endpoint domainYesValid domain (e.g., api.example.com)
PathEndpoint pathNoURL path (e.g., /webhooks/meetings)

Retry Configuration​

FieldDescriptionDefaultRange
Max Attempt CountMaximum number of retry attempts if webhook delivery fails31-100

Authentication Methods​

Token Authentication​

Simple token-based authentication where the token is sent in the Authorization header.

FieldDescriptionRequired
TokenAuthentication tokenYes

Basic Authentication​

Standard HTTP basic authentication using username and password.

FieldDescriptionRequired
UsernameBasic auth usernameYes
PasswordBasic auth passwordYes

Example Output​

{
"meetingId": "QPF6U3eO3YeCFZLXsIfd",
"status": "DONE",
"message": "OnMeetingEndedd successfully",
"attemptCount": 1,
"createdAt": "2024-12-19T14:30:00Z",
"updatedAt": "2024-12-19T14:30:00Z",
"meeting": {
"id": "QPF6U3eO3YeCFZLXsIfd",
"title": "Project Review Meeting",
"status": "Scheduled",
"startTime": "2024-12-19T15:00:00Z",
"endTime": "2024-12-19T16:00:00Z",
"type": "Google",
"participants": [
{
"email": "user@example.com",
"role": "organizer"
}
]
}
}

Webhook Logs​

You can monitor your webhook deliveries through the logs interface, which provides the following information:

ColumnDescription
Meeting IDUnique identifier of the meeting
StatusWebhook delivery status (DONE/ERROR)
DescriptionDetailed message about the webhook delivery
Attempt CountNumber of delivery attempts made
Created AtTimestamp of the webhook creation
Updated AtTimestamp of the last delivery attempt

Log Status Types​

  • DONE Success: Webhook delivered successfully
  • ERROR Failed: Webhook delivery failed after maximum attempts

Best Practices​

  1. Always use HTTPS for secure webhook delivery
  2. Implement proper error handling on your endpoint
  3. Process webhooks asynchronously to avoid timeout issues
  4. Validate the webhook payload before processing
  5. Set reasonable retry attempts (recommended: 3-5)
  6. Keep your authentication credentials secure

Error Handling​

Your endpoint should return:

  • HTTP 200-299 status code for successful processing
  • Appropriate error status codes (4xx, 5xx) for failed processing
  • Response within 10 seconds to avoid timeout

If a webhook fails to deliver, it will:

  1. Log the failure with error details
  2. Retry based on your maxAttemptCount configuration
  3. Mark as ERROR after all attempts are exhausted