Has events by entity
API Reference
Has events by entity
Fast boolean check whether an entity has any linked user events β same linkage scope as list-by-entity without returning event rows or counts.
GET
Has events by entity
Overview
Use this endpoint when you only need to know if an entity has user events (for UI badges, tab visibility, or preflight checks), not the full timeline. It uses the same matching scope as List by Entity:entity_id, entity_external_id, or tax_id within your organization.
Entity identifiers: you can query by query parameter without the internal UUID. Lookup priority:
entity_id β entity_external_id β tax_id (when multiple are sent, the highest-priority wins). For tax_id, the DB comparison normalizes non-alphanumeric characters (e.g. 20-24245549-6 and 20242455496).The legacy route GET β¦/entity/{entityId}/has-events remains available when you already have the UUID.Performance
Designed for low latency:
Typical latency is dominated by network and auth, not by scanning large event histories.
Endpoint
Authentication
Requires a valid API key in the Authorization header:Query Parameters
At least one is required. If you send multiple, priority isentity_id β entity_external_id β tax_id.
string
Entity UUID (highest priority)Example:
?entity_id=550e8400-e29b-41d4-a716-446655440000string
Your external entity identifierExample:
?entity_external_id=user_12345string
Tax ID (CUIT/CUIL/CPF/CNPJ, etc.). Exact and normalized match (alphanumeric only)Example:
?tax_id=20242455496Response
boolean
Indicates if the request was successful
boolean
true if at least one user event is linked to this entity (same scope as list-by-entity); otherwise falsestring
Resolved internal entity UUID (useful when you queried by
entity_external_id or tax_id)Example β has events
Example β no events
Errors
Examples
Next Steps
List by Entity
Full event timeline when
hasEvents is trueList Events
Query events with filters
Event Statistics
Aggregated counts by event type
Events Overview
User events API overview