entities
Lookup Or Create
Find entity by name + type or create a new one. Matching pipeline (in order):
- Exact name match (name_lower = lower(:name))
- Alias match (entity_aliases.alias_lower = lower(:name))
- Trigram similarity >= 0.45 (pg_trgm) — catches typos, spacing variants
- AI disambiguation — if 2+ candidates above threshold, AI picks the best match given type + any available context (city, country)
- Create new entity if no match found
When a fuzzy/AI match is confirmed, the input spelling is automatically saved as an alias so future lookups are instant.
post/api/entities/lookup-or-create
Request
- Base URL: https://api.activitia.net (the document declares no server; this is the origin it was published from)
- URL: https://api.activitia.net/api/entities/lookup-or-create
- Auth: none declared
Headers
authorizationstring
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.