Rank events
Rank a caller-supplied shortlist of event identifiers against the authenticated user’s current profile.
Use this endpoint after another workflow has produced candidate events—for example event search, CRM input, exhibitor/personnel history, or a user-curated shortlist. The response orders the candidates and returns match scores and reasons where available.
This endpoint ranks only the identifiers supplied; it is not a database-wide discovery call and it does not unlock event data. Invalid or unavailable identifiers can prevent a complete ranking, so retain the original shortlist and handle missing candidates explicitly.
curl --request POST \
--url https://platform.lensmor.com/external/events/rank \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_ids": [
"139574",
"139575"
]
}
'import requests
url = "https://platform.lensmor.com/external/events/rank"
payload = { "event_ids": ["139574", "139575"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_ids: ['139574', '139575']})
};
fetch('https://platform.lensmor.com/external/events/rank', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.lensmor.com/external/events/rank",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'event_ids' => [
'139574',
'139575'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.lensmor.com/external/events/rank"
payload := strings.NewReader("{\n \"event_ids\": [\n \"139574\",\n \"139575\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.lensmor.com/external/events/rank")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event_ids\": [\n \"139574\",\n \"139575\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.lensmor.com/external/events/rank")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"event_ids\": [\n \"139574\",\n \"139575\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"event_id": "139574",
"name": "NRF 2026",
"rank": 1,
"match_score": 0.86,
"reasons": []
},
{
"event_id": "139575",
"name": "Shoptalk 2026",
"rank": 2,
"match_score": 0.79,
"reasons": []
}
]
}{
"code": 400,
"message": "Invalid request",
"errorKey": "INVALID_REQUEST",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 401,
"message": "Invalid API key",
"errorKey": "INVALID_API_KEY",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 404,
"message": "Resource not found",
"errorKey": "NOT_FOUND",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 409,
"message": "Request conflicts with the current resource state",
"errorKey": "STATE_CONFLICT",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 429,
"message": "Rate limit exceeded",
"errorKey": "RATE_LIMIT_EXCEEDED",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}Authorizations
Send the full Business API key from Settings -> API Keys, for example Authorization: Bearer sk_your_api_key.
Body
Event identifiers to rank against the authenticated user's current profile. Runtime validation permits an empty array.
["26855", "139574"]
Response
Ranked events
Show child attributes
Show child attributes
curl --request POST \
--url https://platform.lensmor.com/external/events/rank \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"event_ids": [
"139574",
"139575"
]
}
'import requests
url = "https://platform.lensmor.com/external/events/rank"
payload = { "event_ids": ["139574", "139575"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({event_ids: ['139574', '139575']})
};
fetch('https://platform.lensmor.com/external/events/rank', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.lensmor.com/external/events/rank",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'event_ids' => [
'139574',
'139575'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platform.lensmor.com/external/events/rank"
payload := strings.NewReader("{\n \"event_ids\": [\n \"139574\",\n \"139575\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platform.lensmor.com/external/events/rank")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"event_ids\": [\n \"139574\",\n \"139575\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.lensmor.com/external/events/rank")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"event_ids\": [\n \"139574\",\n \"139575\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"event_id": "139574",
"name": "NRF 2026",
"rank": 1,
"match_score": 0.86,
"reasons": []
},
{
"event_id": "139575",
"name": "Shoptalk 2026",
"rank": 2,
"match_score": 0.79,
"reasons": []
}
]
}{
"code": 400,
"message": "Invalid request",
"errorKey": "INVALID_REQUEST",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 401,
"message": "Invalid API key",
"errorKey": "INVALID_API_KEY",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 404,
"message": "Resource not found",
"errorKey": "NOT_FOUND",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 409,
"message": "Request conflicts with the current resource state",
"errorKey": "STATE_CONFLICT",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}{
"code": 429,
"message": "Rate limit exceeded",
"errorKey": "RATE_LIMIT_EXCEEDED",
"traceId": "2be6d7f4-3b2d-4d11-8e2d-7a2e4c3e9a10"
}