MyKagazat
Developer Resources
APIs and integrations for compliance workflows
MyKagazat exposes REST endpoints for service inquiries, application tracking, and encrypted document management. Use these to build custom dashboards, CRM integrations, or partner portals.
API Reference
https://mykagazat.comAuthenticated endpoints use NextAuth session cookies. API keys for server-to-server access coming soon.
/api/leadsAuth: OptionalSubmit a service inquiry or contact form lead.
Request body
{
"name": "Priya Sharma",
"email": "priya@example.com",
"phone": "+91 9876543210",
"service": "GST Registration",
"serviceSlug": "gst-registration",
"packageTitle": "Standard",
"packagePrice": "₹2,999"
}Response
{
"success": true,
"lead": { "id": "lead-...", "status": "submitted", ... },
"requiresPayment": true,
"checkoutUrl": "/checkout/lead-..."
}/api/leadsAuth: RequiredList all leads for the authenticated customer.
Response
{ "leads": [ { "id": "...", "service": "...", "status": "in_review" } ] }/api/leads/{id}Auth: RequiredFetch one application owned by the signed-in customer. Status is updated by our team only.
/api/documentsAuth: RequiredUpload an encrypted document (multipart/form-data).
Request body
FormData: file=<binary>, leadId=<optional lead id>
/api/documentsAuth: RequiredList all documents for the authenticated user.
/api/documents/{id}Auth: RequiredDownload a decrypted document (owner only).
/api/documents/{id}Auth: RequiredPermanently delete a document.
/api/referralAuth: RequiredGet the user's referral code and shareable link.
Response
{ "code": "MK1A2B3C4D", "link": "https://www.mykagazat.com/?ref=MK1A2B3C4D" }Webhooks (Coming Soon)
- Lead submitted — notify your CRM when a new inquiry arrives
- Payment confirmed — trigger onboarding workflows
- Status changed — push updates when application status advances
- Document uploaded — alert your team when files are attached
Need early API access or webhook beta? Contact hello@mykagazat.comwith subject “API Access”.
