DigiChat Documentation
Overview

Token, session, first message.

Overview

This guide is the "from zero to first message" path for the current customer API.

1) Get your token + secret (Dashboard)

Create an API token in the dashboard, then copy:

  • API Token
  • API Secret

Keep the secret server-side. Don’t ship it to browsers or mobile apps.

Tokens list
  <figcaption class="docs-shot-caption">Tokens list</figcaption>
Token details (Token + Secret)
  <figcaption class="docs-shot-caption">Token details (Token + Secret)</figcaption>

2) Connect a WhatsApp session (Dashboard or API)

Open Sessions, start the token session, then scan the QR once.

Sessions page
  <figcaption class="docs-shot-caption">Sessions page</figcaption>
QR modal
  <figcaption class="docs-shot-caption">QR modal</figcaption>

When the status becomes ONLINE, you can send messages.

API equivalents:

  • POST /api/whatsapp/{token}/start
  • GET /api/whatsapp/{token}/status
  • GET /api/whatsapp/{token}/qr
  • GET /api/whatsapp/{token}/qr/image
  • POST /api/whatsapp/{token}/refresh
  • POST /api/whatsapp/{token}/terminate

3) Send your first message (API)

Base URL:

  • https://digichat.digiworld-dev.com
  • /api/whatsapp/{token}

Example endpoint:

POST https://digichat.digiworld-dev.com/api/whatsapp/{token}/sendMessage

Canonical JSON body:

{
  "chatId": "963912345678",
  "type": "text",
  "text": "Hello!"
}

Legacy aliases still work for compatibility:

{
  "phone": "963912345678",
  "message": "Hello!"
}

Other current messaging endpoints:

  • POST https://digichat.digiworld-dev.com/api/whatsapp/{token}/sendMedia
  • POST https://digichat.digiworld-dev.com/api/whatsapp/{token}/invite-info
  • POST https://digichat.digiworld-dev.com/api/whatsapp/{token}/channel-info
Next Authentication