---
docId: doc_a5f6df4f774f4624932674408d263a93
title: Tags
description: Endpoints to create, query, update, and delete tags in Platica.
---

<script>
  import { Note, Ways } from '$lib/components';
</script>

# Tags

Organize contacts and conversations with tags. [Create a tag](/api-reference/tags/create) and use its `id` to assign it; you can also define criteria for AI to apply it automatically.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl https://api.platic.ai/v1/tags \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.tags.list();
```

</Ways.Way>
</Ways>

## Available endpoints

| Method | Endpoint | Description |
|--------|----------|-------------|
| `GET` | [`/v1/tags`](/api-reference/tags/list) | List the workspace's tags |
| `POST` | [`/v1/tags`](/api-reference/tags/create) | Create a new tag |
| `PATCH` | [`/v1/tags/{tagId}`](/api-reference/tags/update) | Update a tag |
| `DELETE` | [`/v1/tags/{tagId}`](/api-reference/tags/delete) | Delete a tag |

Each request works on a single workspace. If your credential covers several, add `?workspace=<id>`; without it the API answers `400`. Every endpoint needs the Contacts module; without it they answer `403`.

<Note type="tip">

Assign owners to a tag so they receive a notification whenever it is applied.

</Note>
