---
updatedAt: 2026-03-02T12:31:51.000Z
agentTools:
  projectIndex: https://developers.taboola.com/backstage-api/llms.txt
---

# User ID Object

Each User ID object contains 3 properties:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Field
      </th>

      <th style={{ textAlign: "left" }}>
        Type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `user_id`
      </td>

      <td style={{ textAlign: "left" }}>
        String
      </td>

      <td style={{ textAlign: "left" }}>
        The User ID *value*.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `type`
      </td>

      <td style={{ textAlign: "left" }}>
        String

        **Possible values:**

        `"DEVICE_ID"`\
        `"EMAIL_ID"`\
        `"TABOOLA_ID"`
      </td>

      <td style={{ textAlign: "left" }}>
        The User ID *type*:

        * A Device ID or MAID (*in clear text*)
        * An Email Address (*as a SHA256 hash*)
        * A Taboola User ID (*not available to customers*)
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `is_hashed`
      </td>

      <td style={{ textAlign: "left" }}>
        Boolean
      </td>

      <td style={{ textAlign: "left" }}>
        **Guidelines:**

        * If `type` is `"EMAIL_ID"`, pass `true`.
        * Otherwise, pass `false`.

        See **callouts** below.
      </td>
    </tr>
  </tbody>
</Table>

```json Sample User ID object
{
   "user_id": "836f82db99121b3481011f16b49dfa5fbc714a0d1b1b9f784a1ebbbf5b39577f",
   "type": "EMAIL_ID",
   "is_hashed": true
}
```

> 🚧 Passing a Device ID
>
> 1. Do **not** hash the Device ID.
> 2. Set `is_hashed` to `false`.

> 🚧 Passing an Email ID
>
> 1. **Hash** the Email ID. (Convert all characters to *lower case* and apply a **SHA256** hash).
> 2. Set `is_hashed` to `true`.