POST
/
api
/
send
curl --request POST \
  --url https://swiftchats.axis96.xyz/api/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "+254720055819",
  "message": "Hello John, how are you?",
  "header": "Test header",
  "footer": "Test footer",
  "buttons": [
    {
      "id": "fine_1",
      "title": "I'\''m fine"
    },
    {
      "id": "bad_2",
      "title": "I'\''m not well"
    }
  ]
}'
{
  "statusCode": 200,
  "data": {
    "success": true,
    "data": {
      "messaging_product": "whatsapp",
      "contacts": [
        {
          "input": "254720055819",
          "wa_id": "254720055819"
        }
      ],
      "messages": [
        {
          "id": "wamid.HBgMMjU0NzIwMDU1ODE5FQIAERgSQjY3NEYwN0RENzM2REVDNkIzAA=="
        }
      ],
      "chat": {
        "id": 78,
        "uuid": "43065393-3505-43b7-be89-11e1329e41be",
        "organization_id": 7,
        "wam_id": "wamid.HBgMMjU0NzIwMDU1ODE5FQIAERgSQjY3NEYwN0RENzM2REVDNkIzAA==",
        "contact_id": 13,
        "type": "outbound",
        "metadata": "{\"text\":{\"body\":\"Hello John, how are you?\"},\"type\":\"text\"}",
        "media_id": null,
        "status": "delivered",
        "deleted_by": null,
        "deleted_at": null,
        "created_at": "2024-04-12 12:08:48",
        "contact": {
          "id": 13,
          "uuid": "b4eaafb6-12d5-457e-9a53-124f30075dfa",
          "organization_id": 7,
          "first_name": null,
          "last_name": null,
          "phone": "254720055819",
          "email": null,
          "avatar": null,
          "address": null,
          "contact_group_id": null,
          "is_favorite": 0,
          "created_by": 0,
          "created_at": null,
          "updated_at": null,
          "deleted_at": null,
          "full_name": " "
        },
        "media": null
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json · object

Response

200 - application/json
OK

The response is of type object.