POST /msg
Changed onRequest
- Base URLhttps://api.gupshup.io/wa/api/v1
- URLhttps://api.gupshup.io/wa/api/v1/msg
- Authnone declared. Required headers: Content-Type, apikey
Headers
Request body application/x-www-form-urlencoded
Example request
{
"channel": "whatsapp",
"source": 917472850482,
"destination": 918748133759,
"message": {
"type": "text",
"text": "Hello user, how are you?"
},
"src.name": "myapp"
}Response
Send message API requests received by our platform are processed asynchronously, and hence you will always get an HTTP_SUCCESS(200 to 299) response range if the API request made is correct.
Example response
{
"status": "submitted",
"messageId": "ee4a68a0-1203-4c85-8dc3-49d0b3226a35"
}Changes
- breaking
added the new required
headerrequest parameterContent-Type - breaking
added the new required
headerrequest parameterapikey - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
the request property
became required - breaking
removed the enum value
whatsappof the request property - breaking
the
request property type changed fromstringtointeger, and format from no format toint64 - breaking
the
request property type changed fromstringtoobject - breaking
the
request property type changed fromstringtointeger, and format from no format toint64 - breaking
removed the success response with the status
- info
api tag
Send message APIadded - info
added the new optional request property
- info
added the new optional request property
- info
request body became optional
- info
added to the
request propertyoneOflist
- breaking