Freshdesk webhook for ticket creation

Created by Certorix Online, Modified on Mon, 4 May at 9:30 PM by Certorix Online

Freshdesk webhook integration (advanced)

Instead of using Certorix's built‑in ticket creation, you can configure a webhook to send diagnostic data to your own Freshdesk integration endpoint.

When to use webhooks

  • You need to add custom logic before ticket creation (e.g., deduplication, enrichment).
  • You want to send data to multiple systems (Freshdesk + CRM + Slack).
  • You need to map data to Freshdesk in non‑standard ways.

Configuring webhook for ticket creation

  1. Go to Widget GeneratorContact Form section.
  2. Toggle Use webhook instead of direct Freshdesk API to ON.
  3. Enter your webhook URL (must be HTTPS).
  4. Select HTTP method (POST, PUT, or PATCH).
  5. Add custom headers if needed (e.g., X-API-Key: your_key).
  6. Define the payload template (JSON).
  7. Test the webhook using the Send test button.
  8. Webhook payload variables

    You can use these variables in your payload template:

    • {{customerName}}
    • {{customerEmail}}
    • {{customerMessage}}
    • {{sessionId}}
    • {{treeId}}
    • {{treeTitle}}
    • {{answers}} (JSON object)
    • {{answersText}} (formatted text transcript)
    • {{outcome}} ('resolved' or 'unresolved')
    • {{completedAt}} (ISO timestamp)
    • {{orgId}}
    • {{orgName}}

    Example webhook payload (Freshdesk API)

    {
      "email": "{{customerEmail}}",
      "name": "{{customerName}}",
      "subject": "Diagnostic: {{treeTitle}}",
      "description": "{{answersText}}\n\nSession: {{sessionId}}\nOutcome: {{outcome}}",
      "status": 2,
      "priority": 1,
      "custom_fields": {
        "cf_session_id": "{{sessionId}}"
      }
    }

    Webhook retry and logging

    • If webhook returns non‑2xx, Certorix retries 3 times with exponential backoff (1s, 2s, 4s).
    • After 3 failures, submission is marked as failed in the session log (viewable in dashboard).
    • Admins receive email notification of webhook failures.
    • All webhook attempts are logged in audit log (request headers, response status).

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article