> ## Documentation Index
> Fetch the complete documentation index at: https://docs.partnero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create customer tags using API or JavaScript

Customer tags enable you to categorize and segment your customers, making it easier to track, filter, and manage them in Partnero, as well as offer customized partner rewards based on the tags. For an overview of how tags work, [click here](/knowledge-base/customers-leads/customer-tags-overview).

You can attach tags to customers when creating them either through the **API** or **JavaScript SDK**. This allows you to pass valuable context, like acquisition channel or plan type, directly into Partnero.

***

### Using API

You can include tags when creating a customer via the API. Tags are passed as an array of strings.

**Example**:

\{
"partner": \{
"key": "ref\_123"
},
"key": "customer\_123",
"email": "[alice.brown@partnero.com](mailto:alice.brown@partnero.com)",
"name": "Alice",
"surname": "Brown",
"tags": \[
"new",
"premium"
]
}

For more details on creating customers via API, see the [developer documentation](https://developers.partnero.com/reference/customers.html#create-a-customer).

***

### Using JavaScript

When creating customers via the JavaScript SDK, tags can also be added as part of the customer object.

\<script>
po('customers',
'signup', \{
data: \{
key: 'customer\_123456', // or email address
name: 'John',
email: '[john.doe@partnero.com](mailto:john.doe@partnero.com)',
tags: \["new", "premium"]
}
}
);
\</script>

For more details on creating customers via JavaScript, see the [developer documentation](https://developers.partnero.com/guide/signup-tracking.html#partnero-universal-sign-up-tracking).

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.