ShahiAssist

How to Use Integrations, REST API, and Webhooks

REST API

  1. Enable the REST API in ShahiAssist → Settings → Integrations.
  2. The API base URL is https://yoursite.com/wp-json/shahi-assist/v1/.
  3. Endpoints include:
  4. /tickets – CRUD operations for tickets.
    /articles – Manage KB articles.
    /users – User management.

  5. Authentication:
  6. – Use WordPress Application Passwords (generate in user profile).
    – Or OAuth for advanced setups.

  7. Examples:
  8. – GET /tickets to list tickets.
    – POST /tickets to create a ticket.

  9. See API.md for full documentation.
  10. Webhooks

  11. Enable webhooks in Settings → Integrations.
  12. Add one or more webhook URLs (e.g., to Slack, Zapier).
  13. Select events to trigger:
  14. ticket.created
    ticket.status_changed
    ticket.reply
    article.published

  15. Payloads are JSON objects with event data.
  16. Test webhooks with the debug log.
  17. External Integrations

    • Slack/Zapier: Send notifications to channels.
    • CRM Systems: Sync tickets with Salesforce, HubSpot.
    • Helpdesk Tools: Integrate with Zendesk, Freshdesk.
    • Use API for custom integrations or mobile apps.

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket