API Documentation

Send Text API

Api Docs Sending Text Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-message

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
message string Yes Message to be sent
footer string No Footer under message
msgid string No Quoted message ID to reply to
full number No Show full response from WhatsApp (1 = enabled)


Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "message": "Hello World",
    "footer": "Sent via PCHAT"
}

URL Request

https://sendwapi.com/send-message?api_key=1234567890&sender=62888xxxx&number=62888xxxx&message=Hello World&footer=Sent via mpwa

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "message": "Hello World",
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-message?api_key=1234567890&sender=62888xxxx&number=62888xxxx&message=Hello World&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "message": "Hello World",
    "footer": "Sent via mpwa",
    "full": 1
}

URL Request

https://sendwapi.com/send-message?api_key=1234567890&sender=62888xxxx&number=62888xxxx&message=Hello World&footer=Sent via mpwa&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "62888xxxx@c.us",
      "fromMe": true,
      "id": "3EB0C41E9D2DFXXXXXXXXX"
    },
    "message": {
      "extendedTextMessage": {
        "text": "Hello World"
      }
    },
    "messageTimestamp": "1755623949"
  }
}

Send Product API

Api Docs Sending Product Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-product

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
url string Yes WhatsApp Product URL (e.g. https://wa.me/p/123456789/628xxxxxxxxxx)
message string No Optional caption or footer to include with the product
msgid string No Quoted message ID to reply to
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx",
    "url": "https://wa.me/p/12345678901234567/6281222xxxxxx",
    "message": "Check out this item!"
}

URL Request

https://sendwapi.com/send-product?api_key=1234567890&sender=6281222xxxxxx&number=201111xxxxxx&url=https://wa.me/p/12345678901234567/6281222xxxxxx&message=Check%20out%20this%20item!

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx",
    "url": "https://wa.me/p/12345678901234567/6281222xxxxxx",
    "message": "Check out this item!",
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-product?api_key=1234567890&sender=6281222xxxxxx&number=201111xxxxxx&url=https://wa.me/p/12345678901234567/6281222xxxxxx&message=Check%20out%20this%20item!&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx",
    "url": "https://wa.me/p/12345678901234567/6281222xxxxxx",
    "message": "Check out this item!",
    "full": 1
}

URL Request

https://sendwapi.com/send-product?api_key=1234567890&sender=6281222xxxxxx&number=201111xxxxxx&url=https://wa.me/p/12345678901234567/6281222xxxxxx&message=Check%20out%20this%20item!&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "201111xxxxxx@c.us",
      "fromMe": true,
      "id": "3EB09CF18B98FBXXXXXXX"
    },
    "message": {
      "productMessage": {
        "product": {
          "productImage": {
            "url": "https://mmg.whatsapp.net/o1/v/t24/f2/m234/AQPHFLaqOvE1JImcYjd16J3v1BJfJ6B6mQ7d4IFCJkkxuNfpPeQ4kpeBsXinof1zeUv9M1hxI2xQkrJ80K6XXXXXXXXXXXXXXX..."
          },
          "productId": "2462531XXXXXXXXXX",
          "title": "Field Delivery",
          "description": "XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX",
          "currencyCode": "IDR",
          "priceAmount1000": "350000000",
          "retailerId": "OneXGen Technology",
          "url": "",
          "productImageCount": 1,
          "salePriceAmount1000": "25000000",
          "signedUrl": ""
        },
        "businessOwnerJid": "6283XXXXXXXX@s.whatsapp.net",
        "footer": "Check out this item!"
      }
    },
    "messageTimestamp": "1755630823"
  }
}

Send Text To Channel API

Api Docs Sending Text Messages To Channel

Method : POST | GET

Endpoint: https://sendwapi.com/send-text-channel

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
url string Yes Channel URL ex https://whatsapp.com/channel/ABCDEF123456
message string Yes Message to be sent
footer string No Footer under message
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "url": "https://whatsapp.com/channel/ABCDEF123456",
    "message": "Hello World",
    "footer": "Sent via PCHAT"
}

URL Request

https://sendwapi.com/send-text-channel?api_key=1234567890&sender=201111xxxxxx&url=https://whatsapp.com/channel/ABCDEF123456&message=Hello%20World&footer=Sent%20via%20mpwa

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "url": "https://whatsapp.com/channel/ABCDEF123456",
    "message": "Hello World",
    "footer": "Sent via PCHAT",
    "full": 1
}

URL Request

https://sendwapi.com/send-text-channel?api_key=1234567890&sender=201111xxxxxx&url=https://whatsapp.com/channel/ABCDEF123456&message=Hello%20World&footer=Sent%20via%20mpwa&full=1

JSON Response

{
  "status": true,
  "data": {
    "tag": "ack",
    "attrs": {
      "from": "120363148xxxxxxxx@newsletter",
      "class": "message",
      "id": "182xx.7666-xxx",
      "server_id": "107",
      "t": "1755628624"
    }
  }
}

Send Media API

Api Docs Sending Media Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-media

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
media_type string Yes Allow: image, video, audio, document
caption string No Caption/message
footer string No Footer under message
url string Yes Direct URL of media (not Google Drive, Dropbox, etc.)
msgid string No Quoted message ID to reply to
full number No Show full response from WhatsApp

Note: Make sure the url is a direct link, not a shared link from cloud storage like Google Drive or Dropbox.



Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "media_type": "image",
    "caption": "Hello World",
    "footer": "Sent via PCHAT",
    "url": "https://example.com/image.jpg"
}

URL Request

https://sendwapi.com/send-media?api_key=1234567890&sender=62888xxxx&number=62888xxxx&media_type=image&caption=Hello World&footer=Sent via mpwa&url=https://example.com/image.jpg

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "media_type": "image",
    "caption": "Hello World",
    "footer": "Sent via mpwa",
    "url": "https://example.com/image.jpg",
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-media?api_key=1234567890&sender=62888xxxx&number=62888xxxx&media_type=image&caption=Hello World&footer=Sent via mpwa&url=https://example.com/image.jpg&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "media_type": "image",
    "caption": "Hello World",
    "footer": "Sent via mpwa",
    "url": "https://example.com/image.jpg",
    "full": 1
}

URL Request

https://sendwapi.com/send-media?api_key=1234567890&sender=62888xxxx&number=62888xxxx&media_type=image&caption=Hello World&footer=Sent via mpwa&url=https://example.com/image.jpg&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "62888xxxx@c.us",
      "fromMe": true,
      "id": "3EB0C373B04BXXXXXXXXXXX"
    },
    "message": {
      "imageMessage": {
        "url": "https://mmg.whatsapp.net/o1/v/t24/f2/m269/AQOKz_WB7dPWFfryJk1K8Cg09KW81xBjZq-eCQkPli773uWKhUfXiQMvyAEoJupyQ6_1FZ2bdm8Bf9Fye3OhSo9Gfh5XXXXXXXXXXX...",
        "mimetype": "image/jpeg",
        "caption": "Hello World",
        "viewOnce": false
      }
    },
    "messageTimestamp": "1755628853"
  }
}

Send Sticker API

Api Docs Sending Sticker Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-sticker

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
url string Yes Direct URL of sticker (image/gif → converted to webp)
msgid string No Quoted message ID to reply to
full number No Show full response from WhatsApp

Note: Make sure the url is a direct link, not a shared link from Google Drive or other cloud storage.


Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "url": "https://example.com/image.jpg"
}

URL Request

https://sendwapi.com/send-sticker?api_key=1234567890&sender=62888xxxx&number=62888xxxx&url=https://example.com/image.jpg

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "url": "https://example.com/image.jpg",
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-sticker?api_key=1234567890&sender=62888xxxx&number=62888xxxx&url=https://example.com/image.jpg&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "url": "https://example.com/image.jpg",
    "full": 1
}

URL Request

https://sendwapi.com/send-sticker?api_key=1234567890&sender=62888xxxx&number=62888xxxx&url=https://example.com/image.jpg&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "62888xxxx@c.us",
      "fromMe": true,
      "id": "3EB08D898XXXXXXXXXXXX"
    },
    "message": {
      "stickerMessage": {
        "url": "https://mmg.whatsapp.net/o1/v/t24/f2/m234/AQNYq76feCY7f3iqD-ZyhEXxYrureD5rMxprf7mdRvldS52vXvVsGCCyPastQHDRHvK2DRrjhq3-MIzmgvhvXXXXXXXXXXXXXXXXX...",
        "mimetype": "image/webp"
      }
    },
    "messageTimestamp": "1755629964"
  }
}

Send Poll API

Api Docs Sending Poll Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-poll

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
name string Yes Name or poll question
option array Yes Values of poll message
msgid string No Quoted message ID to reply to
countable string (1 or 0) Yes 1 = allow one option only, 0 = allow multiple
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "sender": "081222xxxxxx",
    "api_key": "123456789",
    "number": "201111xxxxxx",
    "countable": "1",
    "name": "what color do you like?",
    "option": ["red","blue","yellow"]
}

URL Request

https://sendwapi.com/send-poll?sender=081222xxxxxx&api_key=123456789&number=201111xxxxxx&name=what color do you like&option=red,blue,yellow&countable=1

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "sender": "081222xxxxxx",
    "api_key": "123456789",
    "number": "201111xxxxxx",
    "countable": "1",
    "name": "what color do you like?",
    "option": ["red","blue","yellow"],
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-poll?sender=081222xxxxxx&api_key=123456789&number=201111xxxxxx&name=what color do you like&option=red,blue,yellow&countable=1&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "sender": "081222xxxxxx",
    "api_key": "123456789",
    "number": "201111xxxxxx",
    "countable": "1",
    "name": "what color do you like?",
    "option": ["red","blue","yellow"],
    "full": 1
}

URL Request

https://sendwapi.com/send-poll?sender=081222xxxxxx&api_key=123456789&number=201111xxxxxx&name=what color do you like&option=red,blue,yellow&countable=1&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "201111xxxxxx@c.us",
      "fromMe": true,
      "id": "3EB0416D89587XXXXXXXX"
    },
    "message": {
      "messageContextInfo": {
        "messageSecret": "9q9Co188HnKBbsz8JrZBNzYlVXXGXXXXXXXXXXXXXqq4="
      },
      "pollCreationMessageV3": {
        "name": "what color do you like",
        "options": [
          { "optionName": "red" },
          { "optionName": "blue" },
          { "optionName": "yellow" }
        ],
        "selectableOptionsCount": 1
      }
    },
    "messageTimestamp": "1755628143"
  }
}

Send Location API

Api Docs Sending Location Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-location

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
latitude string Yes Latitude ex 24.121231
longitude string Yes Longitude ex 55.1121221
msgid string No Quoted message ID to reply to
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "latitude": "24.121231",
    "longitude": "55.1121221"
}

URL Request

https://sendwapi.com/send-location?api_key=1234567890&sender=62888xxxx&number=62888xxxx&latitude=24.121231&longitude=55.1121221

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "latitude": "24.121231",
    "longitude": "55.1121221",
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-location?api_key=1234567890&sender=62888xxxx&number=62888xxxx&latitude=24.121231&longitude=55.1121221&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "62888xxxx",
    "number": "62888xxxx",
    "latitude": "24.121231",
    "longitude": "55.1121221",
    "full": 1
}

URL Request

https://sendwapi.com/send-location?api_key=1234567890&sender=62888xxxx&number=62888xxxx&latitude=24.121231&longitude=55.1121221&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "62888xxxx@c.us",
      "fromMe": true,
      "id": "3EB03AC0A048XXXXXXXXX"
    },
    "message": {
      "locationMessage": {
        "degreesLatitude": 24.121231,
        "degreesLongitude": 55.1121221
      }
    },
    "messageTimestamp": "1755630180"
  }
}

Send VCard API

Api Docs Sending VCard Messages

Method : POST | GET

Endpoint: https://sendwapi.com/send-vcard

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes Number of your device
number string Yes Recipient number ex 72888xxxx | 62888xxxx
name string Yes Contact name ex Magd Almuntaser
phone string Yes Contact phone number ex 6281222xxxxxx
msgid string No Quoted message ID to reply to
full number No Show full response from WhatsApp

Example Without full

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx",
    "name": "PCHAT",
    "phone": "6281222xxxxxx"
}

URL Request

https://sendwapi.com/send-vcard?api_key=1234567890&sender=6281222xxxxxx&number=201111xxxxxx&name=magd&phone=6281222xxxxxx

JSON Response

{
    "status": true,
    "msg": "Message sent successfully!"
}

Example With msgid (reply)

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx",
    "name": "magd",
    "phone": "6281222xxxxxx",
    "msgid": "3EB031F83D74BF480052B9"
}

URL Request

https://sendwapi.com/send-vcard?api_key=1234567890&sender=6281222xxxxxx&number=201111xxxxxx&name=magd&phone=6281222xxxxxx&msgid=3EB031F83D74BF480052B9

Example With full

JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx",
    "name": "magd",
    "phone": "6281222xxxxxx",
    "full": 1
}

URL Request

https://sendwapi.com/send-vcard?api_key=1234567890&sender=6281222xxxxxx&number=201111xxxxxx&name=magd&phone=6281222xxxxxx&full=1

JSON Response

{
  "status": true,
  "data": {
    "key": {
      "remoteJid": "201111xxxxxx@c.us",
      "fromMe": true,
      "id": "3EB0E8D243166XXXXXXX"
    },
    "message": {
      "contactMessage": {
        "vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:magd\nTEL;type=CELL;type=VOICE;waid=6281222xxxxxx:+6281222xxxxxx\nEND:VCARD"
      }
    },
    "messageTimestamp": "1755630412"
  }
}

Generate QR API

Api Docs Generating QR

Method : POST

Endpoint: https://sendwapi.com/generate-qr

Request Body : (JSON If POST)

Parameter Type Required Description
device string Yes Number of your device
api_key string Yes API Key
force boolean no If true, when device is not exist, it will be created

Normal Response

// result will be like this
{
    "status": false,
    "qrcode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABIbSURBVO3BQY7YypLAQFLo+1+Z42WuChBUbb8/yAj7g7XWuuBhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkh8+UvmbKiaVNyomlaniDZWbKiaVNyreUDmpmFSmii9UpooTlaliUjmp+E0qU8WkclIxqfxNFV88rLXWJQ9rrXXJw1prXfLDZRU3qbxRcaLyhspUcVIxqZxUTConFZPKTRWTylQxqUwVJyp/U8WkMlVMKlPFf0nFTSo3Pay11iUPa611ycNaa13ywy9TeaPijYovKk4qTiomlZOKk4pJ5Q2VNyomlanipGJSmSq+UPlC5TepnKj8JpU3Kn7Tw1prXfKw1lqXPKy11iU//I9TmSomld+kMlWcqEwVk8obFZPKVPFGxaQyVbyhMlVMKm9UnFScqLyhclPFpPL/ycNaa13ysNZalzystdYlP/yPq5hUpopJZVKZKiaVqeKLipOKSWVSmSreUPlC5aaKSWWq+EJlqvii4g2VSWWq+P/kYa21LnlYa61LHtZa65IfflnFf1nFpHKiMlVMKicVk8pUcZPKVDGpTBVvqEwVk8qJyhsqU8VJxYnKVDGpTCpfVNxU8V/ysNZalzystdYlD2utdckPl6n8TSpTxaQyVUwqU8WkMlVMKlPFpHJTxaQyVUwqX6hMFb+pYlKZKiaVqWJSmSq+qJhUpopJ5URlqjhR+S97WGutSx7WWuuSh7XWuuSHjyr+S1SmijdUpoo3VN6omFTeqJhUbqr4ouINlROVqWJSmS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TCpfVEwqJxWTyknFpPI3Vfymh7XWuuRhrbUueVhrrUvsD/6HqUwVN6mcVEwqX1ScqEwVJypvVLyhMlVMKl9UTCpvVEwqU8WkclJxk8pU8YbKVHGiMlXc9LDWWpc8rLXWJQ9rrXXJDx+p/E0Vb6icVEwqb6icVEwqb6hMFZPKb1KZKk5UTipOVCaVk4pJZVJ5o2JSmVROKiaVL1SmihOVqeJEZar44mGttS55WGutSx7WWuuSHy6ruEnlDZWp4o2KSeWk4o2KmyomlZsq3qiYVN6oOFF5o2JSmVSmiqliUpkqJpWbKt6oOKmYVG56WGutSx7WWuuSh7XWuuSHX6byRsUbFW+oTBVvVJyonFTcpHJScaIyqXyhMlW8oXJSMalMFW9UTCpTxRsVb6hMKl+oTBUnFTc9rLXWJQ9rrXXJw1prXfLD/ziVqeKkYlKZKqaKSeUmlaliqphU3lB5o2JSOal4Q+WNipOKSeWLit+kMlVMKm9UnKhMFZPKVPHFw1prXfKw1lqXPKy11iU//D+nclIxqUwVJxWTylQxqbyhMlW8oTJVfFExqZxUnFRMKjdVnKicVEwVJypTxW9SeUNlqrjpYa21LnlYa61LHtZa65IfflnFb6qYVKaKE5UvVKaKSeUNlanii4oTlanijYoTlROVL1S+qJhUJpWpYlKZKm6qeEPlpOI3Pay11iUPa611ycNaa13yw2Uqf5PKVPFFxW+qmFSmihOVk4o3Kk4qJpWp4o2KSeWLiknlRGWqmComlUnlRGWqOFG5qWJSmVROKr54WGutSx7WWuuSh7XWusT+YK21LnhYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65P8APE+EVFcME7kAAAAASUVORK5CYII=",
    "message": "Please scann qrcode"
}

// the qrcode is base64 encoded.
// after scanned the qrcode, you need to hit the endpoint again to get last response.

// if already scanned, the response will be like this:
{
    "status": false,
    "msg": "Device already connected!"
}

Failed response

{
    "status": false,
    "msg": "Invalid data!",
    "errors": {} // list of errors
}

Disconnect device

Api Docs Disconnecting device

Method : POST

Endpoint: https://sendwapi.com/logout-device

Request Body : (JSON If POST)

Parameter Type Required Description
sender string Yes Device you want log out
api_key string Yes API Key

Example JSON Request

{
    "api_key": "123456789",
    "sender": "6281222xxxxxx"
}

Example JSON Response

{
    "status": true,
    "message": "device disconnected "
}

Delete device

Api Docs Deleteing device

Method : POST

Endpoint: https://sendwapi.com/delete-device

Request Body : (JSON If POST)

Parameter Type Required Description
sender string Yes Device you want delete
api_key string Yes API Key

Example JSON Request

{
    "api_key": "123456789",
    "sender": "6281222xxxxxx"
}

Example JSON Response

{
    "status": true,
    "message": "Device deleted"
}

Create User API

Api Docs Creating User

Method : POST | GET

Endpoint: https://sendwapi.com/create-user

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
username string Yes The username must not contain symbols
password string Yes User Password
email string Yes Email
expire number Yes Subscription expiry time in days ex 30
limit_device number No User Allowed Numbers ex 10

Example JSON Request

{
    "api_key": "1234567890",
    "username": "magd",
    "password": "12345678",
    "email": "ttmttxx@xx.com",
    "expire": "30",
    "limit_device": "10"
}

Example URL Request

https://sendwapi.com/create-user?api_key=1234567890&username=magd&password=12345678&email=ttmttxx@xx.com&expire=30&limit_device=10

User Info API

Api Docs Geting User Information

Method : POST | GET

Endpoint: https://sendwapi.com/info-user

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
username string Yes The username must not contain symbols

Example JSON Request

{
    "api_key": "123456789",
    "username": "magd"
}

Example URL Request

https://sendwapi.com/info-user?api_key=1234567890&username=magd

Example JSON Response

{
    "status":true,
    "info":{
        "id":1,
        "username":"magd",
        "email":"ttmttxx@xx.com",
        "email_verified_at":null,
        "api_key":"ORtg0LwKMZoadhXuwDYg40frCkfaul",
        "chunk_blast":0,
        "level":"admin",
        "status":"active",
        "limit_device":10,
        "active_subscription":"active",
        "subscription_expired":"2024-09-14 23:11:31",
        "created_at":"2024-08-15T16:11:31.000000Z",
        "updated_at":"2024-08-15T16:11:31.000000Z",
        "two_factor_enabled":0,
        "two_factor_secret":null,
        "recovery_codes":null
    }
}

Device Info API

Api Docs Geting Device Information

Method : POST | GET

Endpoint: https://sendwapi.com/info-devices

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
number string Yes any number ex 62888xxxx

Example JSON Request

{
    "api_key": "1234567890",
    "number": "201111347197"
}

Example URL Request

https://sendwapi.com/info-devices?api_key=1234567890&number=6281222xxxxx

Example JSON Response

{
    "status":true,
    "info":[
        {
            "id":1,
            "user_id":1,
            "body":"628122xxxxxx",
            "webhook":null,
            "status":"Disconnect",
            "created_at":"2024-08-16T11:07:27.000000Z",
            "updated_at":"2024-08-16T11:07:27.000000Z",
            "message_sent":0,
            "chatgpt":null,
            "typebot":0,
            "reject_call":0,
            "reject_message":null,
            "can_read_message":0,
            "reply_when":"Personal",
            "chatgpt_name":null,
            "chatgpt_api":null,
            "gemini_name":null,
            "gemini_api":null,
            "claude_name":null,
            "claude_api":null,
            "webhook_read":0,
            "webhook_reject_call":0,
            "webhook_typing":0,
            "bot_typing":0
        }
    ]
}

Check Number API

Api Docs Checking Number

Method : POST | GET

Endpoint: https://sendwapi.com/check-number

Request Body : (JSON If POST)

Parameter Type Required Description
api_key string Yes API Key
sender string Yes your number ex 62888xxxx
number string Yes any number ex 62888xxxx

Example JSON Request

{
    "api_key": "1234567890",
    "sender": "6281222xxxxxx",
    "number": "201111xxxxxx"
}

Example URL Request

https://sendwapi.com/check-number?api_key=1234567890&sender=6281222xxxxx&number=201111xxxxx

Example JSON Response

{
	"status": true,
	"msg": {
		"exists": true,
		"jid": "201111xxxxxx@s.whatsapp.net"
	}
}

Webhook Example

Make Webhook Like AutoResponder

Webhook is a feature that allows you to receive a callback from our server when a message is incoming to your device. You can use this feature for made a dinamic chatbot or whatever you want.

We will send a POST request to your webhook url with a JSON body. Here is an example of the JSON body we will send:

{
    "device" : "your sender/device"
    "message" : "message",
    "from" : "the number of the whatsapp sender",
    "name" : "the name of the sender",
    "participant" : "sender number if group",
    "ppUrl" : "url profile picture sender",
    "media" : [
        "caption" : "caption, equal to message",
        "fileName" : "xxxx.xx",
        "stream" : [
            "type" : "Buffer",
            "data" : "xxxx"
        ]
    ],
    "mimetype" : "image\/jpeg" // depends to media type, could be image,document,audio etc
}

For example webhook you can see in Here