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

# Subtags

## Overview

Subtags allow you dynamically add [Meta Data](/features/meta-data.md) *<mark style="color:green;">**into**</mark>* the responses. This is handled by using curly brackets {}.&#x20;

For example, you could add a CUID (customer unique ID) stored in the ixkio platform dynamically onto a URL by including {CUID} within your redirect response.&#x20;

So, if your CUID for Tag Code was `12345`, a URL entered as :&#x20;

```
https://seritag.com?code={CUID}
```

would become :&#x20;

```
https://seritag.com?code=12345
```

## Using Subtags

Subtags can generally be used anywhere you enter data. For example, you can include a Subtag into a URL Redirect, or a Tag Name, or even another Extended Data field !&#x20;

At the point that ixkio presents that data, it will automatically substitute the content of the Subtag.&#x20;

You can find which subtags can be used in which locations by reading the documents related to the element you are editing. However, example subtags include :&#x20;

<table><thead><tr><th width="275">Subtag</th><th>Data Substituted</th></tr></thead><tbody><tr><td>{xuid}</td><td>The Tag Code XUID</td></tr><tr><td>{cuid}</td><td>The <a href="/pages/7xjLsWhVtyc4EnDRuiuk#custom-uid-cuid">CUID </a>for that Tag Code</td></tr><tr><td>{uid}</td><td>The <a href="/pages/7xjLsWhVtyc4EnDRuiuk#uid">UID </a>for that Tag Code</td></tr><tr><td>{scount}</td><td>The ixkio scan count</td></tr><tr><td>{ccount}</td><td>The chip scan count (if enabled)</td></tr><tr><td>{folder}</td><td>The Folder name</td></tr><tr><td>{batch}</td><td>The Batch name</td></tr><tr><td>{taggroup}</td><td>The Tag Group name</td></tr><tr><td>{tagname}</td><td>The Tag name</td></tr><tr><td>{cluster}</td><td><a href="/pages/UDkWXDuqB8FTPxTEmnBM">Cluster name</a></td></tr><tr><td>{countrycode}</td><td>Two letter country code of the scan location</td></tr><tr><td>{dtcreated}</td><td>Date and time the Tag Code was created</td></tr><tr><td>{dtassigned}</td><td>Date and time Tag Code was Assigned</td></tr><tr><td>{assignstatus}</td><td>Assignment status : 1 or 0</td></tr><tr><td>{encodestatus}</td><td>Encoded status : 1 or 0</td></tr><tr><td>{timezone}</td><td>Abbreviated timezone (PST, GMT, WET, etc)</td></tr><tr><td>{currency}</td><td>Three letter currency code (GBP, USD, EUR, etc)</td></tr><tr><td>{tzlocal}</td><td>Local date and time (based on IP, not device)</td></tr><tr><td>{randnum}</td><td>Random number</td></tr><tr><td>{browser}</td><td>Device browser (mobile devices only)</td></tr><tr><td>{method}</td><td>Scan method (nfc,qr) (if using QR URL)</td></tr><tr><td>{randhex}</td><td>Random hexadecimal</td></tr><tr><td>{os}</td><td>Device OS (ios, android, other)</td></tr></tbody></table>

## Subtags For Redirects

Subtags can be added directly to your Redirect URL (both the Default Response and any RuleGroup Responses). For example, if you wanted to add the scan count into your redirect URL, you would enter :&#x20;

```
https://seritag.com/somepage?scancount={scount}
```

would become :&#x20;

```
https://seritag.com/somepage?scancount=12345
```

(Seritag.com is just being used as an example domain)

You can also use it directly into the URL. So, for example you could use a subtag to dynamically add a Custom ID (CUID) into a URL to change the page name. For example, assuming your CUID for a tag was 'beach' :&#x20;

```
https://seritag.com/{cuid}-property
```

would become :&#x20;

```
https://seritag.com/beach-property
```

### Subtags in Extended Data

If you do not want to put Subtags into the Ruleset Responses or want data to be separated into other fields, it is possible to include Subtags within Extended Data fields.&#x20;

For a step by step on how to do this, read the [Subtags in Extended Data](/flex-api/subtags-in-api-extended-data.md) documents.


---

# 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:

```
GET https://docs.ixkio.com/features/subtags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
