Skip to content

Latest commit

 

History

History
81 lines (51 loc) · 3.41 KB

api.md

File metadata and controls

81 lines (51 loc) · 3.41 KB

Webhook for WhatsApp service provider

POST /webhook Webhook enpoint for whatsapp service provider
Parameters
name type data type description
None required object (JSON or YAML) N/A
Responses
http code content-type response
201 text/json;charset=UTF-8 Configuration created successfully
400 application/json {"code":"400","message":"Bad Request"}
405 text/html;charset=utf-8 None
Example cURL
 curl --location 'localhost:3010/webhook' \--header 'Content-Type: application/json' \--data '{"text":"Hi"}'

Gupshup - Webhook for WhatsApp service provider

POST /gupshup/webhook Webhook enpoint specific to Gupshup whatsapp service provider
Parameters
name type data type description
None required object (JSON or YAML) N/A
Responses
http code content-type response
201 text/json;charset=UTF-8 Configuration created successfully
400 application/json {"code":"400","message":"Bad Request"}
405 text/html;charset=utf-8 None
Example cURL
 curl --location 'localhost:3010/gupshup/webhook' \--header 'Content-Type: application/json' \--data '{"text":"Hi"}'

Application test

GET /health To test application health/running
Parameters

None

Responses
http code content-type response
200 text/plain;charset=UTF-8 YAML string
Example cURL
 curl -X GET -H "Content-Type: application/json" http://localhost:3010/health