Tags
List tags
Lists tags for contacts or companies
GET
https://api.talktohumans.app
/
v1
/
tags
List tags
curl --request GET \
--url https://api.talktohumans.app/v1/tags \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/tags"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.talktohumans.app/v1/tags"
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))
}{
"data": {
"tags": [
{
"id": "3c9e1f2a7b4d4e8f9a0b1c2d3e4f5a6b",
"name": "Hot lead",
"color": "red",
"object_type": "contact"
},
{
"id": "7d2a4b6c8e0f4a1b3c5d7e9f0a2b4c6d",
"name": "Investor",
"color": "purple",
"object_type": "contact"
}
]
}
}⌘I
List tags
curl --request GET \
--url https://api.talktohumans.app/v1/tags \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.talktohumans.app/v1/tags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.talktohumans.app/v1/tags"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.talktohumans.app/v1/tags"
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))
}{
"data": {
"tags": [
{
"id": "3c9e1f2a7b4d4e8f9a0b1c2d3e4f5a6b",
"name": "Hot lead",
"color": "red",
"object_type": "contact"
},
{
"id": "7d2a4b6c8e0f4a1b3c5d7e9f0a2b4c6d",
"name": "Investor",
"color": "purple",
"object_type": "contact"
}
]
}
}