entity-lookup
Entity Lookup
Purpose
Look up individual user profiles by identity field. Returns the full profile including all fields, segment memberships, and metadata.
Environment
Requires authenticated API access. See ../references/auth.md for credential resolution.
API Endpoints
V2 Identity Lookup
curl -s "${LYTICS_API_URL:-https://api.lytics.io}/v2/identity/${TABLE}/${FIELD}/${VALUE}" \
-H "Authorization: ${LYTICS_API_TOKEN}"
Example: GET /v2/identity/user/email/user@example.com
Data API Entity Lookup
curl -s "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/${TABLE}/${FIELD}/${VALUE}" \
-H "Authorization: ${LYTICS_API_TOKEN}"
Entity Lookup by Value Only
curl -s "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/${TABLE}/${VALUE}" \
-H "Authorization: ${LYTICS_API_TOKEN}"
Searches across all identity fields.
Entity Segment Memberships
curl -s "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/${TABLE}/segments/${FIELD}/${VALUE}" \
-H "Authorization: ${LYTICS_API_TOKEN}"
Identity Lookup (POST)
curl -s -X POST "${LYTICS_API_URL:-https://api.lytics.io}/v2/identity/lookup" \
-H "Authorization: ${LYTICS_API_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"field": "email", "value": "user@example.com", "table": "user"}'
Delete Entity
# Hard delete
curl -s -X DELETE "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/${TABLE}/${FIELD}/${VALUE}" \
-H "Authorization: ${LYTICS_API_TOKEN}"
# Soft delete
curl -s -X DELETE "${LYTICS_API_URL:-https://api.lytics.io}/api/entity/softdelete/${TABLE}/${FIELD}/${VALUE}" \
-H "Authorization: ${LYTICS_API_TOKEN}"
Common Identity Fields
email-- Email address_uid-- Lytics user IDuser_id-- External user ID- Check
GET /v2/schema/{table}/idconfigfor account-specific identity fields
Behavior
For Lookups (read)
Execute immediately. Display the profile in a structured format:
- Identity: All identity fields and values
- Key attributes: High-value profile fields (name, location, engagement scores)
- Segment memberships: Which segments this user belongs to
- Recent activity: Latest event timestamps
For Deletes (write)
Use the confirmation-gate pattern. Warn that:
- Hard deletes are irreversible
- Soft deletes can be undone but affect data processing
Error Handling
- Profile not found (404): Suggest trying different identity fields or checking spelling
- URL encoding: URL-encode the value if it contains special characters (e.g.,
@in emails) - Multiple matches: If multiple profiles match, present all and ask user to select
Dependencies
- Uses:
../references/auth.md,../references/api-client.md,../references/confirmation-gate.md(for deletes only)
More from lytics/agent-skills
audience-advisor
Strategic audience guidance -- helps users build the right audience for their business goal or improve an existing segment. Use when the user needs help choosing the right audience strategy, wants advice on segment design, or needs to improve an existing segment.
28integration-setup
Guided setup for data integrations -- connection, auth, and job creation. Use when the user wants to set up, configure, or connect a new data integration end-to-end.
28audience-snapshot
Analyze what an audience looks like -- demographic breakdowns, top field values, coverage rates, and distributions. Use when the user wants to understand audience composition, view segment demographics, or analyze field coverage for a segment.
28data-health-monitor
Single-command data health check -- streams, jobs, schema, and quota status in one report. Use when the user wants to check data health, view system status, or get an overview of streams, jobs, and schema health.
28schema-manager
Browse and modify schema fields, mappings, identity config, and field rankings. Use when the user wants to list, view, create, or modify schema fields, mappings, identity configuration, or field rankings.
27lytics-agent
Top-level Lytics CDP agent - routes user intent to the appropriate skill for audience management, profile exploration, data integration, and schema browsing. Use when the user has a general Lytics question or request that doesn't clearly map to a specific skill.
27