Create a shared link
curl --request POST \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Series A Portfolio for ABC Capital",
"description": "Selection of our top Series A companies for review",
"password": "secure123",
"expires_at": "2024-06-01T00:00:00Z",
"companies": [
{
"company_id": "company-uuid-1",
"permissions": "view_deck"
},
{
"company_id": "company-uuid-2",
"permissions": "view"
},
{
"company_id": "company-uuid-3",
"permissions": "full"
}
]
}
'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links"
payload = {
"name": "Series A Portfolio for ABC Capital",
"description": "Selection of our top Series A companies for review",
"password": "secure123",
"expires_at": "2024-06-01T00:00:00Z",
"companies": [
{
"company_id": "company-uuid-1",
"permissions": "view_deck"
},
{
"company_id": "company-uuid-2",
"permissions": "view"
},
{
"company_id": "company-uuid-3",
"permissions": "full"
}
]
}
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({
name: 'Series A Portfolio for ABC Capital',
description: 'Selection of our top Series A companies for review',
password: 'secure123',
expires_at: '2024-06-01T00:00:00Z',
companies: [
{company_id: 'company-uuid-1', permissions: 'view_deck'},
{company_id: 'company-uuid-2', permissions: 'view'},
{company_id: 'company-uuid-3', permissions: 'full'}
]
})
};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links', 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",
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([
'name' => 'Series A Portfolio for ABC Capital',
'description' => 'Selection of our top Series A companies for review',
'password' => 'secure123',
'expires_at' => '2024-06-01T00:00:00Z',
'companies' => [
[
'company_id' => 'company-uuid-1',
'permissions' => 'view_deck'
],
[
'company_id' => 'company-uuid-2',
'permissions' => 'view'
],
[
'company_id' => 'company-uuid-3',
'permissions' => 'full'
]
]
]),
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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links"
payload := strings.NewReader("{\n \"name\": \"Series A Portfolio for ABC Capital\",\n \"description\": \"Selection of our top Series A companies for review\",\n \"password\": \"secure123\",\n \"expires_at\": \"2024-06-01T00:00:00Z\",\n \"companies\": [\n {\n \"company_id\": \"company-uuid-1\",\n \"permissions\": \"view_deck\"\n },\n {\n \"company_id\": \"company-uuid-2\",\n \"permissions\": \"view\"\n },\n {\n \"company_id\": \"company-uuid-3\",\n \"permissions\": \"full\"\n }\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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Series A Portfolio for ABC Capital\",\n \"description\": \"Selection of our top Series A companies for review\",\n \"password\": \"secure123\",\n \"expires_at\": \"2024-06-01T00:00:00Z\",\n \"companies\": [\n {\n \"company_id\": \"company-uuid-1\",\n \"permissions\": \"view_deck\"\n },\n {\n \"company_id\": \"company-uuid-2\",\n \"permissions\": \"view\"\n },\n {\n \"company_id\": \"company-uuid-3\",\n \"permissions\": \"full\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links")
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 \"name\": \"Series A Portfolio for ABC Capital\",\n \"description\": \"Selection of our top Series A companies for review\",\n \"password\": \"secure123\",\n \"expires_at\": \"2024-06-01T00:00:00Z\",\n \"companies\": [\n {\n \"company_id\": \"company-uuid-1\",\n \"permissions\": \"view_deck\"\n },\n {\n \"company_id\": \"company-uuid-2\",\n \"permissions\": \"view\"\n },\n {\n \"company_id\": \"company-uuid-3\",\n \"permissions\": \"full\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"link": {
"id": "new-link-uuid",
"short_code": "xyz789ab",
"short_url": "https://www.useroulette.com/s/xyz789ab"
}
}
}{
"success": false,
"error": "Invalid request body",
"data": null
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}Shared Links
Create a shared link
Create a new shared link with selected companies. You can configure password protection, expiration, and per-company access permissions.
POST
/
accounts
/
{account_id}
/
shared-links
Create a shared link
curl --request POST \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Series A Portfolio for ABC Capital",
"description": "Selection of our top Series A companies for review",
"password": "secure123",
"expires_at": "2024-06-01T00:00:00Z",
"companies": [
{
"company_id": "company-uuid-1",
"permissions": "view_deck"
},
{
"company_id": "company-uuid-2",
"permissions": "view"
},
{
"company_id": "company-uuid-3",
"permissions": "full"
}
]
}
'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links"
payload = {
"name": "Series A Portfolio for ABC Capital",
"description": "Selection of our top Series A companies for review",
"password": "secure123",
"expires_at": "2024-06-01T00:00:00Z",
"companies": [
{
"company_id": "company-uuid-1",
"permissions": "view_deck"
},
{
"company_id": "company-uuid-2",
"permissions": "view"
},
{
"company_id": "company-uuid-3",
"permissions": "full"
}
]
}
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({
name: 'Series A Portfolio for ABC Capital',
description: 'Selection of our top Series A companies for review',
password: 'secure123',
expires_at: '2024-06-01T00:00:00Z',
companies: [
{company_id: 'company-uuid-1', permissions: 'view_deck'},
{company_id: 'company-uuid-2', permissions: 'view'},
{company_id: 'company-uuid-3', permissions: 'full'}
]
})
};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links', 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",
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([
'name' => 'Series A Portfolio for ABC Capital',
'description' => 'Selection of our top Series A companies for review',
'password' => 'secure123',
'expires_at' => '2024-06-01T00:00:00Z',
'companies' => [
[
'company_id' => 'company-uuid-1',
'permissions' => 'view_deck'
],
[
'company_id' => 'company-uuid-2',
'permissions' => 'view'
],
[
'company_id' => 'company-uuid-3',
'permissions' => 'full'
]
]
]),
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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links"
payload := strings.NewReader("{\n \"name\": \"Series A Portfolio for ABC Capital\",\n \"description\": \"Selection of our top Series A companies for review\",\n \"password\": \"secure123\",\n \"expires_at\": \"2024-06-01T00:00:00Z\",\n \"companies\": [\n {\n \"company_id\": \"company-uuid-1\",\n \"permissions\": \"view_deck\"\n },\n {\n \"company_id\": \"company-uuid-2\",\n \"permissions\": \"view\"\n },\n {\n \"company_id\": \"company-uuid-3\",\n \"permissions\": \"full\"\n }\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://www.useroulette.com/api/v1/accounts/{account_id}/shared-links")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Series A Portfolio for ABC Capital\",\n \"description\": \"Selection of our top Series A companies for review\",\n \"password\": \"secure123\",\n \"expires_at\": \"2024-06-01T00:00:00Z\",\n \"companies\": [\n {\n \"company_id\": \"company-uuid-1\",\n \"permissions\": \"view_deck\"\n },\n {\n \"company_id\": \"company-uuid-2\",\n \"permissions\": \"view\"\n },\n {\n \"company_id\": \"company-uuid-3\",\n \"permissions\": \"full\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links")
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 \"name\": \"Series A Portfolio for ABC Capital\",\n \"description\": \"Selection of our top Series A companies for review\",\n \"password\": \"secure123\",\n \"expires_at\": \"2024-06-01T00:00:00Z\",\n \"companies\": [\n {\n \"company_id\": \"company-uuid-1\",\n \"permissions\": \"view_deck\"\n },\n {\n \"company_id\": \"company-uuid-2\",\n \"permissions\": \"view\"\n },\n {\n \"company_id\": \"company-uuid-3\",\n \"permissions\": \"full\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"link": {
"id": "new-link-uuid",
"short_code": "xyz789ab",
"short_url": "https://www.useroulette.com/s/xyz789ab"
}
}
}{
"success": false,
"error": "Invalid request body",
"data": null
}{
"success": false,
"error": "Invalid or expired API key",
"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
Body
application/json
⌘I

