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"}'
{ "object": "tag", "id": "tag_n5j2x", "name": "essays", "item_count": 43, "created_at": "2025-01-15T10:00:00Z" }
itm_r9f3a
201
200