Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.lensmor.com/llms.txt

Use this file to discover all available pages before exploring further.

Apply recommended events (paged results)

Apply profile-matching input and return paged event recommendations. Use this endpoint when you want to submit company or audience context and receive filtered recommended events in one request.

Endpoint

POST /external/profile-matching/actions/apply-recommended-events/paged

Authentication

See Authentication

Success status code

201 Created

Request body

FieldRequiredTypeNotes
company_urlConditionallystringOptional company URL. At least one of company_url or target_audience is required.
target_audienceConditionallystringOptional audience description. At least one of company_url or target_audience is required.
timeout_msNointegerOptional request timeout, min 60000, max 3600000.
pageNointegerDefaults to 1.
pageSizeNointegerDefaults to 20, max 100.
autoRecommendTop3EventsEnabledNobooleanOptional per-request override for immediate top-3 recommendation reasons.
cityNostringExact city filter.
regionNostringExact region filter.
countryNostringExact country filter.
categoryNostring[]Category filters; accepts an array or a comma-separated string.
eventTypeIdsNointeger[]Event type filters; accepts an array or a comma-separated string.
dateStartFromNoYYYY-MM-DD stringLower date bound.
dateStartToNoYYYY-MM-DD stringUpper date bound.
futureNointegerFuture-only flag.
attendeeCountMinNointegerMinimum attendee count.
attendeeCountMaxNointegerMaximum attendee count.

Response body

Top-level fields

FieldTypeNotes
statusstringOne of processing, failed, completed_empty, or completed.
itemsobject[]Recommended events for the current page.
totalintegerTotal recommended events after filtering.
pageintegerCurrent page number.
pageSizeintegerPage size used for this response.
totalPagesinteger0 when total is 0.
hasMorebooleantrue when another page exists.
condition_tagsobjectStructured filter summary for the current result set.
parsed_filters_snapshotobject, optionalNormalized filter summary when available.
relaxed_conditionsobject, optionalRelaxed matching conditions when available.
profile_versionintegerCurrent profile version.
active_result_versioninteger or nullVersion identifier for the recommendation set returned in this response.
is_stalebooleantrue when the response is based on a previous recommendation set while a refreshed set is still being prepared.
empty_reasonstring, optionalEmpty-result reason when status is empty or failed.
failed_filtersstring[], optionalFilters that did not match.
candidate_countinteger, optionalCandidate count before matching.
suggestionsstring[], optionalSuggested filter adjustments.

items[] fields

FieldTypeNotes
idintegerLensmor event identifier.
eventIdstringSource event identifier, when available.
namestring or nullEvent name.
nicknamestring or nullEvent short name.
descriptionstring or nullEvent description.
urlstring or nullEvent website URL.
dateStartYYYY-MM-DD string or nullStart date.
dateEndYYYY-MM-DD string or nullEnd date.
venuestring or nullVenue name.
citystring or nullCity.
regionstring or nullRegion or state.
countrystring or nullCountry.
latitudestring or nullLatitude rendered as a string.
longitudestring or nullLongitude rendered as a string.
attendeeCountintegerAttendance count.
declaredExpectedAttendeesintegerDeclared attendance expectation.
estimatedExpectedAttendeesstring or nullEstimated attendance expectation rendered as a string.
priceLowerstring or nullLower ticket price rendered as a string.
priceUpperstring or nullUpper ticket price rendered as a string.
eventTypestring or nullPrimary event-type label.
categoriesobject[]Category metadata.
topicsstring[]Topic list.
topicsCountintegerTopic count.
verifiedintegerVerification flag.
futureintegerFuture-event flag.
historicintegerHistoric-event flag.
historicEventstring or nullHistoric event marker.
imagestring or nullImage URL.
dataSourcestring or nullSource label.
exhibitorCountintegerExhibitor count.
personnelCountintegerPersonnel count.
eventTypesobject[]Event-type rows.
createTimeinteger-like valueMillisecond timestamp from the event row.
updateTimeinteger-like valueMillisecond timestamp from the event row.
unlockedbooleanUser-specific unlock flag.
matched_exhibitor_countintegerNumber of matched exhibitors at the event.
match_scorenumber or nullRecommendation score for the event.

Response example

{
  "status": "completed",
  "items": [
    {
      "id": 123,
      "eventId": "139574",
      "name": "NRF 2026",
      "nickname": null,
      "description": "Retail technology event",
      "url": "https://example.com/events/nrf-2026",
      "dateStart": "2026-01-12",
      "dateEnd": "2026-01-15",
      "venue": "Javits Center",
      "city": "New York",
      "region": "NY",
      "country": "United States",
      "latitude": null,
      "longitude": null,
      "attendeeCount": 10000,
      "declaredExpectedAttendees": 0,
      "estimatedExpectedAttendees": null,
      "priceLower": null,
      "priceUpper": null,
      "eventType": null,
      "categories": [],
      "topics": [],
      "topicsCount": 0,
      "verified": 1,
      "future": 1,
      "historic": 0,
      "historicEvent": null,
      "image": null,
      "dataSource": "Lensmor",
      "exhibitorCount": 250,
      "personnelCount": 1800,
      "eventTypes": [],
      "createTime": 1711000000000,
      "updateTime": 1711000000000,
      "unlocked": false,
      "matched_exhibitor_count": 12,
      "match_score": 0.82
    }
  ],
  "total": 1,
  "page": 1,
  "pageSize": 20,
  "totalPages": 1,
  "hasMore": false,
  "condition_tags": {},
  "profile_version": 3,
  "active_result_version": 3,
  "is_stale": false
}

Error responses

  • 400 Bad Request when the body fails validation.
  • 401 Unauthorized when the API key is missing, malformed, or invalid.
  • 409 Conflict when a recommendation task is already running for the user.

Notes

  • This is the preferred endpoint for new profile-matching integrations.
  • Responses can include status, condition_tags, and empty-result guidance such as empty_reason, failed_filters, and suggestions.
  • match_score here is the recommendation score; POST /external/events/fit-score separately normalizes it onto a 0-10 style scale.