← API reference

Developer · API reference

Business entities

Create, read, update and delete segments, offerings, locations and ideal customers.

The entities below make up a company’s Knowledge Base: the segments, offerings, locations and ideal-customer profiles LunaLift turns into schema and uses to steer prompt generation.

Each entity type shares the same shape: a `POST` to upsert (create or update), a `GET` to read one by ID, and a `DELETE` to remove it. Set the optional `update_prompts=true` query flag when you want an edit to refresh the prompts derived from that entity.