Get shared link access logs
curl --request GET \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs', 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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs"
req, _ := http.NewRequest("GET", 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.get("https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"access_logs": [
{
"id": "log-uuid-1",
"shared_link_id": "link-uuid",
"ip_address": "192.168.x.x",
"user_agent": "Mozilla/5.0...",
"country": "US",
"accessed_at": "2024-01-20T15:30:00Z"
},
{
"id": "log-uuid-2",
"shared_link_id": "link-uuid",
"ip_address": "10.0.x.x",
"user_agent": "Chrome/120...",
"country": "UK",
"accessed_at": "2024-01-19T10:15:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 42,
"total_pages": 3
}
}
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}{
"success": false,
"error": "Resource not found",
"data": null
}Shared Links
Get shared link access logs
Retrieve access logs for a shared link showing who viewed it, when, and from where.
GET
/
accounts
/
{account_id}
/
shared-links
/
{id}
/
access-logs
Get shared link access logs
curl --request GET \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs', 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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs"
req, _ := http.NewRequest("GET", 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.get("https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id}/access-logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"access_logs": [
{
"id": "log-uuid-1",
"shared_link_id": "link-uuid",
"ip_address": "192.168.x.x",
"user_agent": "Mozilla/5.0...",
"country": "US",
"accessed_at": "2024-01-20T15:30:00Z"
},
{
"id": "log-uuid-2",
"shared_link_id": "link-uuid",
"ip_address": "10.0.x.x",
"user_agent": "Chrome/120...",
"country": "UK",
"accessed_at": "2024-01-19T10:15:00Z"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 42,
"total_pages": 3
}
}
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}{
"success": false,
"error": "Resource not found",
"data": null
}Authorizations
API key authentication. Generate keys from your account settings.
Include in header: Authorization: Bearer YOUR_API_KEY
Path Parameters
The unique identifier of the account/team
Query Parameters
Page number for pagination (starts at 1)
Required range:
x >= 1Number of items per page (max 100)
Required range:
1 <= x <= 100⌘I

