GET /v1/crm/tags/:id
Fetch a single tag by id.
GET
/
v1
/
crm
/
tags
/
{id}
Obtener detalle de una etiqueta
curl --request GET \
--url https://api.keebai.com/v1/crm/tags/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keebai.com/v1/crm/tags/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keebai.com/v1/crm/tags/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.keebai.com/v1/crm/tags/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.keebai.com/v1/crm/tags/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.keebai.com/v1/crm/tags/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.keebai.com/v1/crm/tags/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tag": {
"_id": "<string>",
"name": "<string>",
"color": "#1890ff",
"scope": "ticket",
"category_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"category": {
"id": "<string>",
"name": "<string>",
"exclusive": true
}
}
}Returns one tag of your company.
Endpoint
GET https://api.keebai.com/v1/crm/tags/{id}
Required scope
crm:tags:read
Headers
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer kbai_pk_<token> |
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | ObjectId of the tag. |
Example request
curl https://api.keebai.com/v1/crm/tags/6720a1b2c3d4e5f6a7b8c9d0 \
-H "Authorization: Bearer kbai_pk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
const response = await fetch(`https://api.keebai.com/v1/crm/tags/${tagId}`, {
headers: { Authorization: `Bearer ${process.env.KEEBAI_API_TOKEN}` },
});
const { tag } = await response.json();
import os, requests
resp = requests.get(
f"https://api.keebai.com/v1/crm/tags/{tag_id}",
headers={"Authorization": f"Bearer {os.environ['KEEBAI_API_TOKEN']}"},
timeout=10,
)
resp.raise_for_status()
tag = resp.json()["tag"]
Response
200 OK
{
"tag": {
"_id": "6720a1b2c3d4e5f6a7b8c9d0",
"name": "Cliente VIP",
"color": "#f5a623",
"scope": "ticket",
"category_id": "6720a0f1e2d3c4b5a6978877",
"created_at": "2026-10-02T13:04:11.512Z",
"updated_at": "2026-10-02T13:04:11.512Z"
}
}
category_id is null for a tag without a category. The detail does not include the category summary; list the categories to resolve it.
401 Unauthorized
Missing, invalid, revoked, or expired token.403 Forbidden
The token does not have thecrm:tags:read scope.
404 Not Found
No tag with that id, the id is not a validObjectId, or the tag belongs to a different company.Was this page helpful?
⌘I
Obtener detalle de una etiqueta
curl --request GET \
--url https://api.keebai.com/v1/crm/tags/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.keebai.com/v1/crm/tags/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.keebai.com/v1/crm/tags/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.keebai.com/v1/crm/tags/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.keebai.com/v1/crm/tags/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.keebai.com/v1/crm/tags/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.keebai.com/v1/crm/tags/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"tag": {
"_id": "<string>",
"name": "<string>",
"color": "#1890ff",
"scope": "ticket",
"category_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"category": {
"id": "<string>",
"name": "<string>",
"exclusive": true
}
}
}