---
updatedAt: 2026-08-01T11:27:33.000Z
agentTools:
  projectIndex: https://dev.kevel.com/llms.txt
---

# UserDB

A UserDB log is generated for each action performed on a UserDB record, such as Read, Add Interests etc.

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

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

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

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

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

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

      <td style={{ textAlign: "left" }}>
        Original  identifier. A unique ID is generated for each UserDB action fired
      </td>

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

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

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

      <td style={{ textAlign: "left" }}>
        Unix timestamp in milliseconds when the event, in this case UserDB action, was performed
      </td>

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

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

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

      <td style={{ textAlign: "left" }}>
        The action performed to the UserDB record
      </td>

      <td style={{ textAlign: "left" }}>
        See table below.
      </td>
    </tr>

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

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

      <td style={{ textAlign: "left" }}>
        Refers to the Interest sent in the [Set Interest API](https://dev.kevel.com/reference/add-interests).  
        Populated when action is "interest"
      </td>

      <td style={{ textAlign: "left" }}>
        ```json
        { "Sports Lover", "Finance"}
        ```

        <br />
      </td>
    </tr>

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

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

      <td style={{ textAlign: "left" }}>
        Refers to the Custom Properties sent in the Set [Custom Properties API](https://dev.kevel.com/reference/set-custom-properties-alternative).  
        Populated when action is "custom"
      </td>

      <td style={{ textAlign: "left" }}>
        ```json
        {
        	"age": 25,
        	"gender": "M",
        	"location": "Singapore"
        }
        ```

        <br />
      </td>
    </tr>

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

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

      <td style={{ textAlign: "left" }}>
        Identifier for the network
      </td>

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

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

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

      <td style={{ textAlign: "left" }}>
        Key identifying the user
      </td>

      <td style={{ textAlign: "left" }}>
        "ue_e8be4e08dc0345e1b94157f104a5b2ef"
      </td>
    </tr>
  </tbody>
</Table>

<br />

Action

| Action      | Description                                                    |
| :---------- | :------------------------------------------------------------- |
| cookie      | User record was loaded as the azk cookie (/set endpoint).      |
| consent     | User's consent was added/removed (/consent endpoint).          |
| custom      | Custom Properties sent in the Set User Properties API.         |
| forget      | User record was forgotten (/forgot endpoint).                  |
| interest    | Interest sent in the Set Interest API. Populated when .        |
| ip          | IP address was added to user record (/ip endpoint).            |
| retargeting | User record was added to retargeting segment (/rt endpoint).   |
| optout      | User was opted out of UserDB tracking (/optout endpoint).      |
| sync        | User record was synced with a third-party ID (/sync endpoint). |

<br />