whatsapp fixes

This commit is contained in:
debu-2 2026-10-03 00:54:52 +05:30
parent ff01efe4bb
commit 248acba741
5 changed files with 425 additions and 38 deletions

View file

@ -523,7 +523,14 @@ export const agentMessagesApi = {
docs: () => jsonRequest<AgentMessageApiDoc>('/api/v1/agent/messages/docs/send'),
send: (
apiKey: string,
payload: { template: string; to: string; customer_name: string; report_group: string; report_id?: string },
payload: {
template: string
to: string
customer_name: string
report_group: string
report_id?: string
report_url?: string
},
) =>
fetch(`${API_BASE_URL}/api/v1/agent/messages/send`, {
method: 'POST',