Перейти к основному содержанию
GET
/
api
/
tags
/
user
Get tags for a user
curl --request GET \
  --url http://localhost:8080/api/tags/user \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "chat_id": 123,
    "user_id": 123,
    "username": "<string>",
    "tag": "<string>",
    "color": "<string>",
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Авторизации

Authorization
string
header
обязательно

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Параметры запроса

chat_id
integer
обязательно
user_id
integer
обязательно

Ответ

Array of tags for the user

id
integer

Tag record ID

chat_id
integer

Chat this tag belongs to

user_id
integer

User this tag is assigned to

username
string

Username at time of tagging

tag
string

Tag label text

color
string

Tag color (hex or CSS color name)

created_at
string<date-time>

When the tag was created