API Java

import java.io.DataOutputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

public void sendData() throws IOException {
URL url = new URL("https://www.waboxapp.com/api/send/chat");
HttpURLConnection con = (HttpURLConnection) url.openConnection();

con.setRequestMethod("POST");
con.setInstanceFollowRedirects(true);

String postData = "token=my-test-api-key&uid=12025550123&to=12025550193&custom_uid=msg-2119&text=Hello world!";
con.setRequestProperty("Content-length", String.valueOf(postData.length()));

con.setDoOutput(true);
con.setDoInput(true);

DataOutputStream output = new DataOutputStream(con.getOutputStream());
output.writeBytes(postData);
output.close();
}


Get waboxapp API documentation for more detailed information

Try our WhatsApp API Sandbox

Are you ready to give it a try?

Our pricing is volume-based, so you can start testing now with no cost, of course! ;)

Sign Up Now