Skip to content

Notification Tags

Returns a list of available notification tags.


Endpoint and Method

GET /v2/notification/tags/


Parameters

No parameters required.


Request Example

curl -X GET "https://YOUR_LINER_API_HOST/v2/notification/tags/" \
  -H "X-Api-Key: YOUR_API_TOKEN"
<?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;
const host = "https://YOUR_LINER_API_HOST";
const token = "YOUR_API_TOKEN";

const res = await fetch(`${host}/v2/notification/tags/`, {
  method: "GET",
  headers: {
    "X-Api-Key": token
  }
});

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

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