Skip to content
Create an account

Instances

Instances #

List your paired WhatsApp instances and see the status of each one.

List instances

GET /v1/whatsapp/instances
// Lister les instances WhatsApp
const credentials = btoa('ACCESS_KEY:ACCESS_SECRET');
const res = await fetch('https://api.callistosignal.com/v1/whatsapp/instances', {
    headers: { 'Authorization': 'Basic ' + credentials }
});
if (!res.ok) {
    // 401, 429… : le corps porte le motif du refus
    const { message } = await res.json();
    throw new Error(`Liste refusée (${res.status}) : ${message}`);
}
const instances = await res.json();
// Lister les instances WhatsApp
$ch = curl_init('https://api.callistosignal.com/v1/whatsapp/instances');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'ACCESS_KEY:ACCESS_SECRET',
]);
$response = curl_exec($ch);
curl -u 'ACCESS_KEY:ACCESS_SECRET' \
  https://api.callistosignal.com/v1/whatsapp/instances

Response (200)

{
  "items": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "code": "6650a1b2c3d4e",
      "name": "Production",
      "phone_number": "+22507XXXXXXXX",
      "phone_name": "Callisto Demo",
      "status": "connected",
      "billing_status": "active",
      "trial_days_remaining": 0,
      "monthly_fee": 5000,
      "created_at": "2026-04-12T10:34:00Z"
    }
  ],
  "total": 1,
  "per_page": 15,
  "current_page": 1,
  "next": 1,
  "previous": 1,
  "total_pages": 1
}

The list is paginated, 15 instances per page. Pass ?page=2 for the next pages.

Instance details

GET /v1/whatsapp/{instanceCode}

Path parameter: instanceCode: the instance's code field (13 hex characters, for example 6650a1b2c3d4e). It is not its id.

// Consulter une instance WhatsApp
const credentials = btoa('ACCESS_KEY:ACCESS_SECRET');
const res = await fetch('https://api.callistosignal.com/v1/whatsapp/{instanceCode}', {
    headers: { 'Authorization': 'Basic ' + credentials }
});
if (!res.ok) {
    // 404 si l'instance n'existe pas, 401, 429… : le corps porte le motif
    const { message } = await res.json();
    throw new Error(`Instance introuvable ou refusée (${res.status}) : ${message}`);
}
const instance = await res.json();
// Consulter une instance WhatsApp
$ch = curl_init('https://api.callistosignal.com/v1/whatsapp/{instanceCode}');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_USERPWD        => 'ACCESS_KEY:ACCESS_SECRET',
]);
$response = curl_exec($ch);
curl -u 'ACCESS_KEY:ACCESS_SECRET' \
  https://api.callistosignal.com/v1/whatsapp/{instanceCode}

Response (200)

{
  "id": "550e8400-e29b-41d4-a716-446655440001",
  "code": "6650a1b2c3d4e",
  "name": "Production",
  "phone_number": "+22507XXXXXXXX",
  "phone_name": "Callisto Demo",
  "status": "connected",
  "billing_status": "active",
  "trial_days_remaining": 0,
  "monthly_fee": 5000,
  "created_at": "2026-04-12T10:34:00Z"
}