Notification Tags
Returns a list of available notification tags.
Endpoint and Method
GET /v2/notification/tags/
Parameters
No parameters required.
Request Example
<?php
$host = 'https://YOUR_LINER_API_HOST';
$token = 'YOUR_API_TOKEN';
$ch = curl_init($host . '/v2/notification/tags/');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'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;
Response Example
{
"success": true,
"message": "",
"data": [
{ "value": "news", "title": "News" },
{ "value": "promo", "title": "Promotions" }
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
value |
string |
Tag code used as an identifier. |
title |
string |
Human-readable tag label. |
Note
The structure of the data field is described above. For the overall API response format, see Request Schema