Skip to content

Liner Systems Health Check

A method for checking the availability of Liner’s core services and related platforms.
If successful, it returns a consolidated status for each component and diagnostic metrics (for example, execution time and queue states).


Endpoint and Method

GET /v1/health/check/


Request Example

curl -X GET "https://YOUR_LINER_API_HOST/v1/health/check/" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: YOUR_API_TOKEN"
<?php

$host = 'https://YOUR_LINER_API_HOST';
$token = 'YOUR_API_TOKEN';

$ch = curl_init($host . '/v1/health/check/');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Content-Type: application/json',
        'X-Api-Key: ' . $token,
    ],
    CURLOPT_TIMEOUT => 15,
]);

$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if ($response === false) {
    throw new RuntimeException('cURL error: ' . curl_error($ch));
}

curl_close($ch);

echo "HTTP {$httpCode}\n";
echo $response;
const host = "https://YOUR_LINER_API_HOST";
const token = "YOUR_API_TOKEN";

const res = await fetch(`${host}/v1/health/check/`, {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "X-Api-Key": token
  }
});

const data = await res.json();
console.log("HTTP", res.status, data);

Response Example

{
  "success": true,
  "message": "",
  "data": {
    "linerMonolithPhpGateway": {
      "success": true,
      "message": "Liner PHP Gateway service is ready!​",
      "data": {
        "executionTime": 0.0834660530090332,
        "reasonPhrase": "Ok"
      }
    },
    "linerMicroMqHub": {
      "success": true,
      "message": "",
      "data": {
        "executionTime": 0.009724140167236328,
        "reasonPhrase": "Ok",
        "consumers": [
          {
            "queue_name": "amo_call_save_result",
            "success": true,
            "data": {
              "current_consumers_count": 1,
              "needle_consumers_count": 1
            }
          }
        ]
      }
    },
    "linerMicroRabbit": {
      "success": true,
      "message": "Liner RabbitMQ service is ready!",
      "data": {
        "executionTime": 0.00612187385559082
      }
    },
    "linerMicroNps": {
      "success": true,
      "message": "Liner NPS service is ready!",
      "data": {
        "executionTime": 0.001779794692993164,
        "reasonPhrase": "Ok"
      }
    },
    "linerMicroStt": {
      "success": true,
      "message": "Liner STT service is ready!",
      "data": {
        "executionTime": 0.003906965255737305,
        "reasonPhrase": "Ok"
      }
    },
    "linerMicroLogger": {
      "success": true,
      "message": "Liner STT service is ready!",
      "data": {
        "executionTime": 0.0016939640045166016,
        "reasonPhrase": "Ok"
      }
    },
    "linerMicroPtc": {
      "success": true,
      "message": "Liner PTC service is ready!",
      "data": {
        "executionTime": 0.0016169548034667969,
        "reasonPhrase": "Ok"
      }
    },
    "voxImplantPlatform": {
      "success": true,
      "message": "VoxImplant platform is ready!",
      "data": {
        "executionTime": 0.11452007293701172,
        "reasonPhrase": "Ok"
      }
    },
    "elevenLabsPlatform": {
      "success": true,
      "message": "ElevenLabs platform is ready!",
      "data": {
        "executionTime": 0.24761104583740234,
        "reasonPhrase": "Ok"
      }
    }
  }
}

Response Format

data: components and their statuses

Each component in data is returned in the same format:

Field Type Description
data.<component>.success boolean Whether the component is available.
data.<component>.message string Component status/message.
data.<component>.data object Component diagnostics (execution time, response status, etc.).

Common component diagnostic fields

Field Type Description
executionTime int Component check execution time (usually in seconds).
reasonPhrase string Text reason/status (e.g., Ok). This field may be absent for some components.

Typical component list

Key in data Description
linerMonolithPhpGateway PHP Gateway / monolith gateway.
linerMicroMqHub MQ Hub + consumer status per queue.
linerMicroRabbit RabbitMQ (broker availability).
linerMicroNps NPS service.
linerMicroStt STT (speech-to-text) service.
linerMicroLogger Logging service.
linerMicroPtc PTC service (internal component).
voxImplantPlatform VoxImplant availability.
elevenLabsPlatform ElevenLabs availability.