Tags
Add Tag to Item
Add a tag to an item. Creates the tag if it doesn’t exist.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add a tag to an item. Creates the tag if it doesn’t exist.
curl -X POST https://api.getmatter.com/public/v1/items/itm_r9f3a/tags \
-H "Authorization: Bearer mat_your_token_here" \
-H "Content-Type: application/json" \
-d '{"name": "essays"}'
response = requests.post(
"https://api.getmatter.com/public/v1/items/itm_r9f3a/tags",
headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
},
json={"name": "essays"}
)
tag = response.json()
{
"object": "tag",
"id": "tag_n5j2x",
"name": "essays",
"item_count": 43,
"created_at": "2025-01-15T10:00:00Z"
}
itm_r9f3a.201 if newly created, or 200 if the tag was already on this item.
curl -X POST https://api.getmatter.com/public/v1/items/itm_r9f3a/tags \
-H "Authorization: Bearer mat_your_token_here" \
-H "Content-Type: application/json" \
-d '{"name": "essays"}'
response = requests.post(
"https://api.getmatter.com/public/v1/items/itm_r9f3a/tags",
headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
},
json={"name": "essays"}
)
tag = response.json()
{
"object": "tag",
"id": "tag_n5j2x",
"name": "essays",
"item_count": 43,
"created_at": "2025-01-15T10:00:00Z"
}
curl -X POST https://api.getmatter.com/public/v1/items/itm_r9f3a/tags \
-H "Authorization: Bearer mat_your_token_here" \
-H "Content-Type: application/json" \
-d '{"name": "essays"}'
response = requests.post(
"https://api.getmatter.com/public/v1/items/itm_r9f3a/tags",
headers={
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
},
json={"name": "essays"}
)
tag = response.json()
{
"object": "tag",
"id": "tag_n5j2x",
"name": "essays",
"item_count": 43,
"created_at": "2025-01-15T10:00:00Z"
}