ChatKazi
Getting started

Responses

Understand ChatKazi response shapes.

ChatKazi returns JSON for every documented endpoint.

Success responses

Most successful responses include a message and data.

Example
{
  "message": "Message sent.",
  "data": {
    "key": {
      "remoteJid": "254712345678@s.whatsapp.net",
      "fromMe": true,
      "id": "..."
    }
  }
}

List endpoints return a data array:

Example
{
  "data": [
    {
      "sessionId": "default",
      "state": "connected",
      "connected": true
    }
  ]
}

Error responses

Example
{
  "error": "Unauthorized",
  "message": "Provide a valid API key using x-api-key or Authorization: Bearer <key>."
}
StatusMeaningWhat to do
400A required field is missing or invalid.Check the request body.
401API key is missing or invalid.Send a valid API key.
402Monthly API hit limit reached.Upgrade your plan or wait for the next cycle.
403Message endpoint was called without an API key that can send messages.Check the API key used for the request.
409Session or phone number conflict.Use another session name or disconnect the existing number.
500Unexpected server error.Retry later or contact support with the request details.

Session states

StateMeaning
not_startedThe session has not been started yet.
connectingChatKazi is preparing the WhatsApp connection.
qr_readyA QR code is ready to scan.
pairing_code_readyA pairing code has been generated.
connectedThe WhatsApp number is ready to send messages.
disconnectedThe connection dropped or was not completed.
logged_outThe session was logged out and must be connected again.
Copyright © 2026