When to use this endpoint
UsePOST /external/events/rank when another part of your workflow has already produced a shortlist and you need Lensmor to sort it.
Typical sources of a shortlist:
- events selected by a user
- events found from Events list
- events related to an exhibitor or contact
- events imported from a CRM or spreadsheet
Endpoint
POST /external/events/rank
Authentication
See AuthenticationSuccess status code
201 Created
Request body
| Name | Required | Type | Notes |
|---|---|---|---|
event_ids | Yes | string[] | List of event identifiers to rank. |
Request example
Response example
Response fields
| Field | Description |
|---|---|
items | Ranked event results ordered from best to lowest fit. |
event_id | Event identifier from the submitted shortlist. |
name | Event name when available. |
rank | One-based rank position in the result set. |
match_score | Fit score used for ranking. |
reasons | Explanation list when available. Currently may be empty. |
Integration guidance
- Preserve the original submitted event IDs in your client if you need to reconcile ranked results with local records.
- Display
rankandmatch_scoretogether when showing ordered recommendations. - Treat the endpoint as shortlist ordering, not a complete recommendation report by itself.
- Live responses can return low or zero
match_scorevalues and emptyreasons. Combine returned order with event metadata, matched counts, and follow-up detail or list calls before making a final business recommendation. - If
reasonsis empty, use event metadata and evidence from follow-up calls rather than showing a blank explanation block.
Error responses
400 Bad Request401 Unauthorized404 Not Found409 Conflict429 Too Many Requests
Notes
- This endpoint uses
POSTbecause the request body contains an array of event IDs that does not fit cleanly in query parameters. It does not create a persistent resource. - The current service returns an ordered
itemsarray withrankandmatch_score. reasonsis currently emitted as an empty array by the live service.