This commit is contained in:
parent
8726c931fa
commit
8c46d091ff
49 changed files with 1607 additions and 712 deletions
|
|
@ -1237,6 +1237,11 @@ export const whatsappApi = {
|
|||
events: () => jsonRequest<WhatsAppWebhookEvent[]>('/api/v1/whatsapp/events'),
|
||||
signupConfig: () => jsonRequest<WhatsAppSignupConfig>('/api/v1/whatsapp/signup/config'),
|
||||
accounts: () => jsonRequest<WhatsAppAccount[]>('/api/v1/whatsapp/accounts'),
|
||||
connectToken: (payload: { access_token: string; waba_id: string; phone_number_id?: string | null }) =>
|
||||
jsonRequest<WhatsAppSignupResult>('/api/v1/whatsapp/connections/token', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
}),
|
||||
completeSignup: (payload: {
|
||||
event: string
|
||||
code?: string | null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue