Is AI recommending you? Ask Contentstack Canoe for free
Is AI recommending your brand? Find out with Contentstack Canoe for free
Contentstack.comAcademyLogin
CS-log-dark.svgCS-log-dark.svg
  • Changelog
  • APIs
  • SDKs

Platform

  • Solution Center
  • Marketplace
  • Changelog
  • Developers & IT
  • Business users
  • Digital leaders
  • Developer Fast Track
  • Plans & Pricing

Solutions

  • Retail
  • Travel and tourism
  • Financial services
  • Technology
  • Manufacturing
  • E-commerce
  • Localization
  • Personalization
  • Portals and knowledge bases

Resources

  • Academy
  • Docs
  • Contentstack for Developers
  • Product updates
  • Contentstack on Contentstack
  • Blog
  • Insights and analyst reports
  • The Forrester Wave™: Digital Experience Platforms, Q4 2025
  • Webinars
  • Podcasts
  • Glossary
  • Content generative library
  • Community
  • Headless CMS
  • Composable AXP
  • Personalization
  • CDP

Customers

  • Case Studies
  • Customer Care
  • Contentstack Experience Awards
  • Customer support

Partners

  • Overview
  • Find a partner
  • Login

Company

  • About us
  • News
  • Customer support portal
  • Contact

Social

  • Facebook
  • LinkedIn
  • Instagram
  • GitHub
  • YouTube
  • Discord
  • X
LegalTermsPrivacyTrust Center

Cookie settings

Copyright © 2026 Contentstack Inc. All rights reserved.
/
  1. Home
  2. APIs
  3. Lytics API
  4. V1
  5. Personalization

Personalization

markdownView as Markdown

Entity API, ie Personalization or Profile API.

Retrieve attributes and segments an entity (most likely a user) is a member of.

The *Entity* is a *User* most likely, but since Lytics is organized as a Graph Database,

other types of entities may be modeled such as Accounts, or Company, Content, or custom.

``

# read a single user

curl -s -H "Authorization: $LIOKEY" \

-XGET "https://api.lytics.io/api/entity/user/user_id/user123" | jq '.'

``

User Me

GEThttps://api.lytics.io/api/me/{fieldname}/{fieldval}

Get single User Entity. This is an alias for /api/entity/user.

Sample Response
Status|200 OK
123456789101112131415161718192021
{
  "data": {
    "segments": [
      "email_us_based",
      "web_users",
      "all"
    ]
  },
  "message": "success",
  "meta": {
    "by_fields": [
      "user_id",
      "email",
      "fbuid",
      "_uids"
    ],
    "format": "json",
    "name": "user"
  },
  "status": 200
}

Personalization

GEThttps://api.lytics.io/api/entity/{table}/{fieldname}/{fieldval}

Get single User Entity.

``

# get user whose user_id = user123

curl -s -H "Authorization: $LIOKEY" \

-XGET "https://api.lytics.io/api/entity/user/user_id/user123" | jq '.'

# get user whose email = [email protected]

curl -s -H "Authorization: $LIOKEY" \

-XGET "https://api.lytics.io/api/entity/user/email/[email protected]" | jq '.'

``

Sample Response
Status|200 OK
123456789101112131415161718192021
{
  "data": {
    "segments": [
      "email_us_based",
      "web_users",
      "all"
    ]
  },
  "message": "success",
  "meta": {
    "by_fields": [
      "user_id",
      "email",
      "fbuid",
      "_uids"
    ],
    "format": "json",
    "name": "user"
  },
  "status": 200
}

Profile Delete Request

DELETEhttps://api.lytics.io/api/entity/{table}/{fieldname}/{fieldval}

Deletes a single Entity (normally a user).

This API persists a deletion event for the particular profile provided. This operation is asynchronous; it will take

some time for the profile to be removed from downstream databases and indexes. This request returns a "request_id"

which may be used to determine the status of that deletion. While the profile may become unavailable quickly, it may

take a while for the full process to complete since it includes all archived historic data.

``

# Delete user whose "user_id" = "userdeleteme12"

# user_id can be any by-field

curl -s -H "Authorization: $LIOKEY" \

-XDELETE "https://api.lytics.io/api/entity/user/user_id/userdeleteme12" | jq '.'

``

**Use Cases**

* *GDPR* right to be forgotten, a user asks for profile to be deleted.

Sample Response
Status|200 OK
12345678
{
  "status": 200,
  "message": "delete request received",
  "data": {
    "request_id": "e9d5f2d3d2c7a7d0e801-1526083200",
    "complete": false
  }
}

Web Personalization

GEThttps://api.lytics.io/api/entity/{table}/{fieldval}

Get single User Entity using cookie id. This is same as entity api

but you don't specify a fieldname (user_id, email, etc) and instead it only uses the cookie identifier.

Sample Response
Status|200 OK
123456789101112131415161718192021
{
  "data": {
    "segments": [
      "email_us_based",
      "web_users",
      "all"
    ]
  },
  "message": "success",
  "meta": {
    "by_fields": [
      "user_id",
      "email",
      "fbuid",
      "_uids"
    ],
    "format": "json",
    "name": "user"
  },
  "status": 200
}

ProfileDeletion Status

GEThttps://api.lytics.io/api/entity/deletestatus/{request_id}

Retrieves the status of a submitted deletion event.

Sample Response
Status|200 OK
12345678
{
  "status": 200,
  "message": "delete request received",
  "data": {
    "request_id": "e9d5f2d3d2c7a7d0e801-1526083200",
    "complete": false
  }
}
Hide Parameters

URL Parameters

fieldnamerequiredstring

Field name of identity to use as lookup

Example:

email
fieldvalrequiredstring

Field value of identity

Example:

[email protected]

Query Parameters

account_idoptionalstring

Your Lytics account ID.

fieldsoptionalstring

comma delimited field list to be returned

Example:

name,org,city
fieldBlocklistoptionalstring

comma delimited list of fields to exclude

Example:

name,org,city
include_fieldsoptionalstring

if true include all the whitelisted fields

Example:

true
segmentsoptionalstring

Should segments this user is member of be included?

Example:

true
metaoptionalstring

Should Meta Fields be included?

Example:

true
downloadoptionalstring

Should the content-disposition header set to attachment to download the user as a file?

Example:

false

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

fieldnamerequiredstring

fieldvalrequiredstring

Field value of identity

Example:

[email protected]

Query Parameters

account_idoptionalstring

Your Lytics account ID.

fieldsoptionalstring

comma delimited field list to be returned

Example:

name,org,city
fieldBlocklistoptionalstring

comma delimited list of fields to exclude

Example:

name,org,city
include_fieldsoptionalstring

if true include all the whitelisted fields

Example:

true
segmentsoptionalstring

Should segments this user is member of be included?

Example:

true
metaoptionalstring

Should Meta Fields be included?

Example:

true
downloadoptionalstring

Should the content-disposition header set to attachment to download the user as a file?

Example:

false

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

fieldnamerequiredstring

Field name of identity to use as lookup (could be email, user_id, etc)

Example:

_uid
fieldvalrequiredstring

Field value of identity

Example:

[email protected]

Query Parameters

account_idoptionalstring

Your Lytics account ID.

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

tablerequiredstring

Field value of data table

Example:

user
fieldvalrequiredstring

Field value of identity

Example:

[email protected]

Query Parameters

account_idoptionalstring

Your Lytics account ID.

fieldsoptionalstring

comma delimited field list to be returned

Example:

name,org,city
fieldBlocklistoptionalstring

comma delimited list of fields to exclude

Example:

name,org,city
include_fieldsoptionalstring

if true include all the whitelisted fields

Example:

true
segmentsoptionalstring

Should segments this user is member of be included?

Example:

true
metaoptionalstring

Should Meta Fields be included?

Example:

true
downloadoptionalstring

Should the content-disposition header set to attachment to download the user as a file?

Example:

false

Headers

Authorizationoptionalstring

Hide Parameters

URL Parameters

request_idrequiredstring

RequestID of previously submitted deletion event

Example:

e9d5f2d3d2c7a7d0e801-1526083200

Query Parameters

account_idoptionalstring

Your Lytics account ID.

Headers

Authorizationoptionalstring