REST API
- Base URL:
/wp-json/shahi-assist/v1/ - Endpoints:
- Auth: Use Application Passwords in headers.
- Rate Limiting: 100 requests/hour per user.
- See
API.mdfor examples and schemas. - Events:
- Payload: JSON with event data and timestamp.
- Delivery: Asynchronous, with retry on failure.
- Actions:
- Filters:
– GET /tickets – List tickets (params: status, author, search)
– POST /tickets – Create ticket
– GET /tickets/{id} – Get ticket details
– PUT /tickets/{id} – Update ticket
– DELETE /tickets/{id} – Delete ticket
– Similar for /articles, /users
Webhooks
– ticket.created: {ticket_id, subject, status, author}
– ticket.statuschanged: {ticketid, oldstatus, newstatus}
– ticket.reply: {ticketid, replyid, author}
– article.published: {article_id, title, author}
Hooks and Filters
– shahiassistticket_created – Passes ticket ID.
– shahiassistticketstatuschanged – Passes ticket ID, old/new status.
– shahiassistarticle_published – Passes article ID.
– shahiassistticket_statuses – Modify status array.
– shahiassistdefault_settings – Alter defaults.
– shahiassistemail_content – Change email body.
– shahiassistcustom_fields – Add fields programmatically.
Custom Modules
includes/modules/your_module/.class-your-module.php extending ShahiAssistModuleBase.init(), admin_menu(), etc.class-module-registry.php.Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.