> For the complete documentation index, see [llms.txt](https://docs.peakcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.peakcommerce.com/developers/api-groups/tags.md).

# Tags

Tags are tenant-scoped labels you can attach to components, journeys, and pages. Use them to group related items (e.g. "high-touch", "experiment-2026-q4") so list views, the agent API, and ad-hoc searches all share one taxonomy.

The agent API exposes only the **catalog** of tags. Attaching and detaching tags from individual entities is done through the in-app UI today — we'll add v1 endpoints for that in a future release.

Listing and reading tags requires the `read` scope; creating, updating, and deleting tags requires the `admin` scope.

## Endpoints

### `GET /api/v1/tags`

{% openapi src="<https://api.peakcommerce.app/api/v1/openapi.json>" path="/tags" method="get" %}
<https://api.peakcommerce.app/api/v1/openapi.json>
{% endopenapi %}

*Notes, examples, or caveats for `GET /tags` go here.*

### `POST /api/v1/tags`

{% openapi src="<https://api.peakcommerce.app/api/v1/openapi.json>" path="/tags" method="post" %}
<https://api.peakcommerce.app/api/v1/openapi.json>
{% endopenapi %}

*Notes, examples, or caveats for `POST /tags` go here.*

### `DELETE /api/v1/tags/{id}`

{% openapi src="<https://api.peakcommerce.app/api/v1/openapi.json>" path="/tags/{id}" method="delete" %}
<https://api.peakcommerce.app/api/v1/openapi.json>
{% endopenapi %}

*Notes, examples, or caveats for `DELETE /tags/{id}` go here.*

### `GET /api/v1/tags/{id}`

{% openapi src="<https://api.peakcommerce.app/api/v1/openapi.json>" path="/tags/{id}" method="get" %}
<https://api.peakcommerce.app/api/v1/openapi.json>
{% endopenapi %}

*Notes, examples, or caveats for `GET /tags/{id}` go here.*

### `PATCH /api/v1/tags/{id}`

{% openapi src="<https://api.peakcommerce.app/api/v1/openapi.json>" path="/tags/{id}" method="patch" %}
<https://api.peakcommerce.app/api/v1/openapi.json>
{% endopenapi %}

*Notes, examples, or caveats for `PATCH /tags/{id}` go here.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.peakcommerce.com/developers/api-groups/tags.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
