{"openapi":"3.0.3","info":{"title":"WAJIVAN WhatsApp API","version":"1.0.0","description":"Send WhatsApp messages and receive replies through your own WhatsApp Business number."},"servers":[{"url":"https://crm.rajeshchavan.org/api/public/v1"}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"wj_live_…"}}},"paths":{"/account":{"get":{"summary":"Your workspace, plan and the connected WhatsApp number (quality, status).","description":"Required scope: `account:read`.","security":[{"bearerAuth":[]}],"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}}},"/messages":{"post":{"summary":"Send a text, template, image or document. Free-form types need the customer to have written in the last 24 hours; otherwise send a template. Add Idempotency-Key to make retries safe; add dry_run:true to validate without sending.","description":"Required scope: `messages:send`.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"example":{"to":"919800000001","type":"template","template":{"name":"hello_world","language":"en_US"},"client_ref":"order-1042"}}}},"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}},"get":{"summary":"List stored messages, newest first. Page with next_before.","description":"Required scope: `messages:read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"contact","in":"query","required":false,"description":"Only this phone number","schema":{"type":"string"}},{"name":"direction","in":"query","required":false,"description":"in or out","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"ISO time, inclusive","schema":{"type":"string"}},{"name":"before","in":"query","required":false,"description":"ISO time, exclusive (use next_before from the last page)","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1–100, default 50","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}}},"/messages/{id}":{"get":{"summary":"One message by its WhatsApp message id, with its delivery status.","description":"Required scope: `messages:read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}}},"/templates":{"get":{"summary":"List your WhatsApp templates and their approval status.","description":"Required scope: `templates:read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"description":"APPROVED, PENDING, REJECTED, PAUSED or DISABLED","schema":{"type":"string"}},{"name":"name","in":"query","required":false,"description":"Exact template name","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"1–100, default 50","schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}},"post":{"summary":"Create a template. It is sent to WhatsApp for approval (status PENDING).","description":"Required scope: `templates:write`.","security":[{"bearerAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"example":{"name":"order_update","language":"en_US","category":"UTILITY","components":[{"type":"BODY","text":"Hi {{1}}, your order {{2}} has shipped.","example":{"body_text":[["Asha","1042"]]}}]}}}},"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}}},"/templates/{name}":{"get":{"summary":"Every language/version of one template.","description":"Required scope: `templates:read`.","security":[{"bearerAuth":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"},"4XX":{"description":"Client error (see error codes)"},"5XX":{"description":"Server or WhatsApp error"}}}}}}