ReferCareers

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

Base URL
https://mykagazat.com

Authenticated endpoints use NextAuth session cookies. API keys for server-to-server access coming soon.

POST/api/leadsAuth: Optional

Submit 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-..."
}
GET/api/leadsAuth: Required

List all leads for the authenticated customer.

Response

{ "leads": [ { "id": "...", "service": "...", "status": "in_review" } ] }
GET/api/leads/{id}Auth: Required

Fetch one application owned by the signed-in customer. Status is updated by our team only.

POST/api/documentsAuth: Required

Upload an encrypted document (multipart/form-data).

Request body

FormData: file=<binary>, leadId=<optional lead id>
GET/api/documentsAuth: Required

List all documents for the authenticated user.

GET/api/documents/{id}Auth: Required

Download a decrypted document (owner only).

DELETE/api/documents/{id}Auth: Required

Permanently delete a document.

GET/api/referralAuth: Required

Get 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”.