Lytics Schema API

Manage how data sources populate profile fields.

Business capability
Data Architecture Management BC-610.40

Operations 28

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /schema List tables with their schemas · List tables #
Ask an LLM
“Which data tables does my account have a schema for?”
“Can I list every table along with its schema?”
Tell an agent
List all my schema tables.
Show the tables and schemas on account {account_id}.
POST /schema/bulk Bulk upsert schema objects (POST) · Schema Bulk Upsert #
Ask an LLM
“Is there a POST version of the bulk schema upsert?”
“How do I post a batch of schema fields and ranks without deleting anything?”
Tell an agent
POST bulk schema changes with fields {fields} and ranks {ranks} for table {table}.
Send a POST bulk schema upsert for {table} with retention settings {retention_settings}.
PUT /schema/bulk Bulk upsert schema objects (PUT) · Schema Bulk Upsert #
Ask an LLM
“Can I create or update many schema fields and mappings in one PUT request?”
“Does the PUT bulk schema upsert leave existing objects in place?”
Tell an agent
PUT a bulk upsert of fields {fields} and mappings {mappings} into table {table}.
Use the PUT bulk endpoint to upsert schema for {table} as a patch {is_patch}.
POST /schema/expression/evaluate Test a mapping expression on one event · Evaluate Expression #
Ask an LLM
“What would a mapping expression produce for a sample event?”
“Can I try out an ad hoc mapping expression before saving it?”
Tell an agent
Evaluate expression {expression} against event {data}.
Test mapping expression {expression} on a single event.
POST /schema/lql Update the schema from an LQL query · Update schema with LQL query #
Ask an LLM
“Can I upload an LQL query to add fields and mappings to my schema?”
“Is there a way to migrate legacy LQL into the schema?”
Tell an agent
Upload this LQL query to update my schema fields and mappings.
Apply an LQL file to the schema of account {account_id}.
GET /schema/{table} Get a table's schema · Get schema #
Ask an LLM
“What fields, mappings and ranks make up the user table schema?”
“Can I read the schema of a table at a specific draft version?”
Tell an agent
Show the current schema for table {table}.
Get the schema of {table} at version {version_id}.
GET /schema/{table}/compare Diff two schema versions · Get schema comparison #
Ask an LLM
“What changed between two versions of my schema?”
“Can I see a diff of my draft schema against another version?”
Tell an agent
Compare schema version {version_id} with {compare_id} on table {table}.
Diff the {table} schema versions.
POST /schema/{table}/evaluate Evaluate a schema against test events · Evaluate Schema #
Ask an LLM
“Will my published schema map test events the way I expect?”
“Can I run sample events through a table's schema?”
Tell an agent
Evaluate the {table} schema against test events.
Run test events through schema version {version_id} of {table}.
GET /schema/{table}/field List the fields in a table schema · Get fields #
Ask an LLM
“Which fields are defined on my user table?”
“Can I filter the list of schema fields?”
Tell an agent
List the fields of table {table}.
List fields in {table} matching {filter}.
POST /schema/{table}/field Add or update a field in the draft schema · Post field #
Ask an LLM
“How do I add a new field to my draft schema?”
“Can I mark a schema field as PII or as an identifier?”
Tell an agent
Add field {id} of type {type} to the {table} draft schema.
Upsert field {id} in {table} with PII set to {is_pii} and identifier {is_identifier}.
DELETE /schema/{table}/field/{field_id} Delete a field from the draft schema · Delete field #
Ask an LLM
“Can I remove a field from my draft schema?”
“Is a deleted schema field soft-deleted or gone for good?”
Tell an agent destructive · confirm first
Delete field {field_id} from the {table} draft schema.
Drop schema field {field_id} on {table}.
GET /schema/{table}/field/{field_id} Get one schema field · Get a field #
Ask an LLM
“What type and merge behaviour does a particular field have?”
“Can I look up one schema field by its id?”
Tell an agent
Show field {field_id} in table {table}.
Get the definition of {table} field {field_id} at version {version_id}.
GET /schema/{table}/idconfig List identity merge settings for all fields · List all identity config #
Ask an LLM
“How are graph compaction and many-to-one merging set up across my identity fields?”
“Can I see the identity config of every identifier at once?”
Tell an agent
List identity config for all fields in {table}.
Show graph compaction settings across {table} identity fields.
POST /schema/{table}/idconfig Set identity merge config for a field · Post ID config #
Ask an LLM
“Can I change how one identity field is compacted or merged?”
“How do I configure many-to-one merging for an identifier?”
Tell an agent
Create or update identity merge config for a field in {table}.
Save many-to-one merging settings for an identifier on {table}.
DELETE /schema/{table}/idconfig/{field_id} Remove identity merge config from a field · Delete ID Settings #
Ask an LLM
“Can I clear the compaction and merge settings on one identifier?”
“How do I delete the ID settings from a schema field?”
Tell an agent destructive · confirm first
Delete the identity config of field {field_id} in {table}.
Clear ID settings on {table} field {field_id}.
GET /schema/{table}/idconfig/{field_id} Get identity merge config for one field · Get identity field config #
Ask an LLM
“What merge settings apply to one particular identity field?”
“Is graph compaction turned on for a given identifier?”
Tell an agent
Show identity config for field {field_id} in {table}.
Get the merging settings of identifier {field_id} on {table}.
GET /schema/{table}/mapping List the mappings in a table schema · Get mappings #
Ask an LLM
“Which data mappings feed my user table?”
“Can I see every mapping in the schema at a given version?”
Tell an agent
List the mappings of table {table}.
Show {table} mappings at version {version_id}.
POST /schema/{table}/mapping Add or update a mapping in the draft schema · Post mapping #
Ask an LLM
“How do I map an incoming stream field into a schema field?”
“Can a mapping have a guard expression so it only applies sometimes?”
Tell an agent
Map stream {stream} into field {field} of {table} using {expr}.
Upsert a mapping for field {field} on {table} guarded by {guard_expr}.
DELETE /schema/{table}/mapping/{mapping_id} Delete a mapping from the draft schema · Delete mapping #
Ask an LLM
“Can I remove a data mapping I added by mistake?”
“Is a deleted mapping soft-deleted from the draft?”
Tell an agent destructive · confirm first
Delete mapping {mapping_id} from the {table} draft schema.
Drop data mapping {mapping_id} on {table}.
GET /schema/{table}/mapping/{mapping_id} Get one schema mapping · Get a mapping #
Ask an LLM
“What expression does a particular mapping use?”
“Can I look up one mapping by its id?”
Tell an agent
Show mapping {mapping_id} in table {table}.
Get the definition of {table} mapping {mapping_id}.
POST /schema/{table}/publish Publish draft schema changes · Publish schema #
Ask an LLM
“How do I make my draft schema changes go live?”
“Can I tag a schema version when publishing it?”
Tell an agent
Publish the draft schema for {table}.
Publish {table} schema changes with tag {tag} and note {description}.
GET /schema/{table}/rank Get the identifier rank list · Get rank #
Ask an LLM
“In what order are identifiers ranked when resolving profiles?”
“Which identity field ranks highest in my schema?”
Tell an agent
Show the identifier rank list for {table}.
Get {table} identifier ranks at version {version_id}.
POST /schema/{table}/rank Set the identifier rank list · Post ID rank list #
Ask an LLM
“Can I reorder which identifiers take priority?”
“How do I change the identifier ranking in my draft schema?”
Tell an agent
Set the identifier rank order of {table} to {fields}.
Apply rank changes {changes} to {table}.
GET /schema/{table}/retentionsettings Get data retention settings · Get retention settings #
Ask an LLM
“How long is profile data kept for my table?”
“What retention capacity is set on a schema?”
Tell an agent
Show retention settings for {table}.
Get {table} retention at version {version_id}.
POST /schema/{table}/retentionsettings Change data retention settings · Post retention settings #
Ask an LLM
“Can I shorten how many days of data a table keeps?”
“How do I set a retention capacity on my schema?”
Tell an agent
Keep {keep_days} days of data in {table}.
Set retention capacity of {table} to {capacity}.
POST /schema/{table}/revert Revert a draft schema to the live version · Revert schema changes #
Ask an LLM
“Can I throw away my draft schema edits and go back to what is live?”
“How do I undo every unpublished change to a schema?”
Tell an agent destructive · confirm first
Revert the {table} draft schema to the live schema.
Discard changes in schema version {version_id} of {table}.
GET /schema/{table}/validate Validate a schema · Validate schema #
Ask an LLM
“Is my draft schema valid before I publish it?”
“What validation errors does a schema version have?”
Tell an agent
Validate the schema of {table}.
Check schema version {version_id} of {table} for errors.
GET /schema/{table}/version List a schema's version history · Get schema history #
Ask an LLM
“Who published which schema versions, and when?”
“Can I see the full history of a table's schema?”
Tell an agent
List every schema version of {table}.
Show the publish history for the {table} schema.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lytics:lytics-schema-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lytics-schema-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: support@lytics.com
    name: Lytics Support
    url: https://support.lytics.com/hc/en-us
  description: Version 2 of the Lytics API
  termsOfService: https://www.lytics.com/terms-of-service/
  title: Lytics Schema API
  version: '2.0'
servers:
- url: https://api.lytics.io/v2
tags:


# --- truncated at 32 KB (58 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/lytics/refs/heads/main/openapi/lytics-schema-api-openapi.yml