API Documentation

Webhook endpoints for the Teams-Zendesk Bridge.

/api/teams-message
POST
Receives incoming messages from Microsoft Teams. It creates a new Zendesk ticket or adds a comment to an existing one.

Request Body

{
  "from": { "id": "teams_user_123" },
  "text": "Hello, I'm having an issue with my account."
}

Success Response

{
  "status": "Message received and processed."
}
/api/zendesk-update
POST
Receives webhook updates from Zendesk when an agent posts a public comment. It sends the comment back to the corresponding Teams user.

Request Body

{
  "ticketId": "zd_ticket_456",
  "comment": "Hi there! This is an agent responding from Zendesk."
}

Success Response

{
  "status": "Update received and forwarded to Teams."
}