Lexicon UI vs Lexicon Schemas APIThe data returned from the Lexicon Schemas API is most likely not 1:1 with the data you see in Lexicon. This because schemas are a subset of the data that appears in Lexicon. The Lexicon UI shows you events & properties that either:
- have an associated schema or
- have been sent to your project in the last 30 days (sometimes the look-back period is shorter depending on your data volume).
When is a Lexicon Schema created?A schema is created and associated to an event in a few different ways:
- By uploading a schema through this API
- By importing Lexicon entries via CSV
- By adding metadata in the UI (such as adding a description, hiding/showing, adding tags, etc.)
How can I export all of my data from Lexicon?As mentioned above, the Lexicon Schemas API is unlikely to return all of the data you see in Lexicon. If you want all of the data, you can do a CSV export from the Lexicon UI. The resulting CSV will contain events and properties that have associated schemas and events and properties that were sent in the last 30 days even if they do not have associated schemas.