# Identify

## identify(data)

Identifying your users will help you find their sessions in the Tolstoy dashboard, and apply specific rules and behaviours on their widget's display.

It's recommended to call identify right after your user's signup/login, when you have identifying data to use (such as email, signup date, etc.).

Params:

* **data**
  * Required params for identifying the user, one or both of the following:

    * **userId** - your system userId.
    * **email** - your user's email address.

  * Any of the following properties are optional:

    * **signedUpAt** - your user's sign up date. For example: 2021-08-27.

  * Custom Attributes  - you can add any additional attributes (maximum of 100 attributes)
    * **customAttributes** - object with data

```
window.tolstoyWidget.identify({
    userId: "123",
    email: "user@test.com",
    signedUpAt: "2021-09-01",
    customAttributes: { package: "free", age: 28, activationDate: "2021-09-10" }
});
```

{% hint style="info" %}
Date format must be 'YYYY-MM-DD'
{% endhint %}

##


---

# Agent Instructions: 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://tolstoy.gitbook.io/tolstoy/javascript-sdk/identify.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.
