API Documentation

Send WhatsApp messages from your app using the OraxSender REST API.

Base URL

https://www.oraxsender.com/api

Authentication

Every request needs your account Auth Key and (for sending) an App Key.

  • authkey — From your panel: Settings → Authentication Key
  • appkey — From your panel: My Apps → copy the app key linked to a connected device
  • device_id — Device UUID (for QR / session endpoints)
Security: Never publish your Auth Key or App Key. Regenerate the Auth Key if it is exposed.

POST /create/message

Send a text message, a media message (public file URL), or a saved template.

https://www.oraxsender.com/api/create/message

Field Required Description
appkeyYesApp Key of a device that is connected
authkeyYesYour account Auth Key
toYesRecipient number in international format, digits only (example: 9665XXXXXXXX)
message*Message text (required if template_id is empty)
template_id*Template UUID (required if message is empty)
fileNoPublic URL of an image or document (jpg, png, webp, pdf, docx, xlsx, csv, txt)
variablesNoTemplate variables object, e.g. variables[name]=John

* Provide either message or template_id.

Success response example

{
  "message_status": "Success",
  "connected": true,
  "message": "Success was send",
  "data": {
    "from": "9665XXXXXXXX",
    "to": "9665YYYYYYYY",
    "status_code": 200
  }
}

POST /device/create

Create a new device and app pair. Then scan QR with /qr to connect WhatsApp.

https://www.oraxsender.com/api/device/create

FieldRequiredDescription
authkeyYesYour account Auth Key
device_nameNoDisplay name for the device
app_titleNoDisplay name for the app
{
  "success": true,
  "device_id": "uuid-here",
  "appkey": "app-key-here",
  "authkey": "your-authkey",
  "connected": false
}

POST /qr

Request a QR code for a device so you can link WhatsApp.

https://www.oraxsender.com/api/qr

FieldRequiredDescription
authkeyYesYour account Auth Key
device_idYesDevice UUID from /device/create or My Devices

POST /checkSession

Check whether the device WhatsApp session is connected.

https://www.oraxsender.com/api/checkSession

FieldRequiredDescription
authkeyYesYour account Auth Key
device_idYesDevice UUID

POST /uploadmedia

Upload a media file and get a public URL you can pass as file when sending.

https://www.oraxsender.com/api/uploadmedia

FieldRequiredDescription
authkeyYesYour account Auth Key
appkeyYesApp Key (or legacy deviceid)
docsYesMultipart file field

Code examples

Replace YOUR_APP_KEY, YOUR_AUTH_KEY and the phone number with your values.

curl --location --request POST 'https://www.oraxsender.com/api/create/message' \
--form 'appkey="YOUR_APP_KEY"' \
--form 'authkey="YOUR_AUTH_KEY"' \
--form 'to="9665XXXXXXXX"' \
--form 'message="Hello from OraxSender"'

Common errors

MessageWhat to do
Invalid Auth and AppKeyCheck appkey and authkey. Device must be connected.
Maximum Monthly Messages Limit ExceededUpgrade your plan or wait for the next billing cycle.
Template Not FoundUse a valid template UUID from your account.
Validation errorsRequired fields missing or phone format invalid.

After login you can also open My Apps → Integration for examples filled with your keys. Sign in