Events
Unlock event visitor access
Unlock visitor records for an event that already has base event access. The first successful visitor unlock consumes 3,000 credits, requires an active subscription and available visitor data, and repeated unlocks are idempotent.
POST
/
external
/
events
/
{id}
/
visitors
/
unlock
Unlock event visitor access
curl --request POST \
--url https://platform.lensmor.com/external/events/{id}/visitors/unlock \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform.lensmor.com/external/events/{id}/visitors/unlock"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.lensmor.com/external/events/{id}/visitors/unlock', 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/{id}/visitors/unlock",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platform.lensmor.com/external/events/{id}/visitors/unlock"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/{id}/visitors/unlock")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.lensmor.com/external/events/{id}/visitors/unlock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"alreadyUnlocked": false,
"creditsSpent": 3000,
"balanceAfter": {
"totalAmount": 45050,
"totalBalance": 35050,
"subscriptionAmount": 35000,
"subscriptionBalance": 27000,
"addonAmount": 10000,
"addonBalance": 8000,
"addonExpireAt": 1784851200000,
"giftAmount": 50,
"giftBalance": 50,
"resetAt": 1785542400000
},
"event": {
"id": "26855",
"eventId": "26855",
"name": "CES 2025"
}
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}Authorizations
Send the full Business API key from Settings -> API Keys, for example Authorization: Bearer sk_your_api_key.
Headers
Available options:
api, agent Path Parameters
Required string length:
1 - 100⌘I
Unlock event visitor access
curl --request POST \
--url https://platform.lensmor.com/external/events/{id}/visitors/unlock \
--header 'Authorization: Bearer <token>'import requests
url = "https://platform.lensmor.com/external/events/{id}/visitors/unlock"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.lensmor.com/external/events/{id}/visitors/unlock', 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/{id}/visitors/unlock",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://platform.lensmor.com/external/events/{id}/visitors/unlock"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/{id}/visitors/unlock")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform.lensmor.com/external/events/{id}/visitors/unlock")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"alreadyUnlocked": false,
"creditsSpent": 3000,
"balanceAfter": {
"totalAmount": 45050,
"totalBalance": 35050,
"subscriptionAmount": 35000,
"subscriptionBalance": 27000,
"addonAmount": 10000,
"addonBalance": 8000,
"addonExpireAt": 1784851200000,
"giftAmount": 50,
"giftBalance": 50,
"resetAt": 1785542400000
},
"event": {
"id": "26855",
"eventId": "26855",
"name": "CES 2025"
}
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}{
"code": 123,
"message": "<string>",
"errorKey": "<string>",
"traceId": "<string>"
}