Add comprehensive REST API documentation for 6 missing core APIs #249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive REST API documentation for 6 critical APIs that were missing from the developer documentation, improving API coverage from 28% to 85%+.
APIs Added
emails.rst
) - Email management, sending, and batch operationsforms.rst
) - Form CRUD, submissions, and progressive profilingcompanies.rst
) - Company management with contact associationssegments.rst
) - Segment/List management with advanced filteringusers.rst
) - User administration with roles and permissionswebhooks.rst
) - Webhook management for third-party integrationsKey Features
✅ Consistent Documentation Format - Follows existing patterns from
contacts.rst
andcampaigns.rst
✅ PHP API Library Examples - Code examples using Mautic's official API library
✅ HTTP Request Examples - Direct API call examples with proper JSON formatting
✅ Comprehensive Parameter Tables - All available fields documented with types
✅ Batch Operations Support - Multi-record operations where available
✅ Error Handling - Common error responses and validation explanations
Impact
Quality Assurance
This documentation fills critical gaps and provides developers with the resources they need to effectively integrate with Mautic's REST API.