Create a form submission
curl --request POST \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"key": "company_name",
"label": "Company Name",
"type": "INPUT_TEXT",
"value": "New Venture Co"
},
{
"key": "website",
"label": "Website",
"type": "INPUT_LINK",
"value": "https://newventure.co"
},
{
"key": "pitch_deck",
"label": "Pitch Deck",
"type": "FILE_UPLOAD",
"value": [
{
"id": "file-1",
"name": "pitch.pdf",
"url": "https://storage.example.com/pitch.pdf",
"size": 2048000
}
]
}
]
}
'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions"
payload = { "data": [
{
"key": "company_name",
"label": "Company Name",
"type": "INPUT_TEXT",
"value": "New Venture Co"
},
{
"key": "website",
"label": "Website",
"type": "INPUT_LINK",
"value": "https://newventure.co"
},
{
"key": "pitch_deck",
"label": "Pitch Deck",
"type": "FILE_UPLOAD",
"value": [
{
"id": "file-1",
"name": "pitch.pdf",
"url": "https://storage.example.com/pitch.pdf",
"size": 2048000
}
]
}
] }
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({
data: [
{
key: 'company_name',
label: 'Company Name',
type: 'INPUT_TEXT',
value: 'New Venture Co'
},
{
key: 'website',
label: 'Website',
type: 'INPUT_LINK',
value: 'https://newventure.co'
},
{
key: 'pitch_deck',
label: 'Pitch Deck',
type: 'FILE_UPLOAD',
value: [
{
id: 'file-1',
name: 'pitch.pdf',
url: 'https://storage.example.com/pitch.pdf',
size: 2048000
}
]
}
]
})
};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions', 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}/form-submissions",
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([
'data' => [
[
'key' => 'company_name',
'label' => 'Company Name',
'type' => 'INPUT_TEXT',
'value' => 'New Venture Co'
],
[
'key' => 'website',
'label' => 'Website',
'type' => 'INPUT_LINK',
'value' => 'https://newventure.co'
],
[
'key' => 'pitch_deck',
'label' => 'Pitch Deck',
'type' => 'FILE_UPLOAD',
'value' => [
[
'id' => 'file-1',
'name' => 'pitch.pdf',
'url' => 'https://storage.example.com/pitch.pdf',
'size' => 2048000
]
]
]
]
]),
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}/form-submissions"
payload := strings.NewReader("{\n \"data\": [\n {\n \"key\": \"company_name\",\n \"label\": \"Company Name\",\n \"type\": \"INPUT_TEXT\",\n \"value\": \"New Venture Co\"\n },\n {\n \"key\": \"website\",\n \"label\": \"Website\",\n \"type\": \"INPUT_LINK\",\n \"value\": \"https://newventure.co\"\n },\n {\n \"key\": \"pitch_deck\",\n \"label\": \"Pitch Deck\",\n \"type\": \"FILE_UPLOAD\",\n \"value\": [\n {\n \"id\": \"file-1\",\n \"name\": \"pitch.pdf\",\n \"url\": \"https://storage.example.com/pitch.pdf\",\n \"size\": 2048000\n }\n ]\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}/form-submissions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"key\": \"company_name\",\n \"label\": \"Company Name\",\n \"type\": \"INPUT_TEXT\",\n \"value\": \"New Venture Co\"\n },\n {\n \"key\": \"website\",\n \"label\": \"Website\",\n \"type\": \"INPUT_LINK\",\n \"value\": \"https://newventure.co\"\n },\n {\n \"key\": \"pitch_deck\",\n \"label\": \"Pitch Deck\",\n \"type\": \"FILE_UPLOAD\",\n \"value\": [\n {\n \"id\": \"file-1\",\n \"name\": \"pitch.pdf\",\n \"url\": \"https://storage.example.com/pitch.pdf\",\n \"size\": 2048000\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions")
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 \"data\": [\n {\n \"key\": \"company_name\",\n \"label\": \"Company Name\",\n \"type\": \"INPUT_TEXT\",\n \"value\": \"New Venture Co\"\n },\n {\n \"key\": \"website\",\n \"label\": \"Website\",\n \"type\": \"INPUT_LINK\",\n \"value\": \"https://newventure.co\"\n },\n {\n \"key\": \"pitch_deck\",\n \"label\": \"Pitch Deck\",\n \"type\": \"FILE_UPLOAD\",\n \"value\": [\n {\n \"id\": \"file-1\",\n \"name\": \"pitch.pdf\",\n \"url\": \"https://storage.example.com/pitch.pdf\",\n \"size\": 2048000\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"submission": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": [
{
"key": "question_abc123",
"label": "Company Name",
"type": "INPUT_TEXT",
"value": "Acme Corp"
},
{
"key": "question_def456",
"label": "Contact Email",
"type": "INPUT_EMAIL",
"value": "founder@acme.com"
},
{
"key": "question_ghi789",
"label": "Funding Stage",
"type": "MULTIPLE_CHOICE",
"value": "seed",
"options": [
{
"id": "opt1",
"text": "Pre-seed"
},
{
"id": "opt2",
"text": "Seed"
},
{
"id": "opt3",
"text": "Series A"
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"processed": false,
"updated_at": "2023-11-07T05:31:56Z"
}
}
}{
"success": false,
"error": "Invalid request body",
"data": null
}{
"success": false,
"error": "Invalid or expired API key",
"data": null
}Form Submissions
Create a form submission
Manually create a form submission record. Useful for importing data from external sources or creating test data.
POST
/
accounts
/
{account_id}
/
form-submissions
Create a form submission
curl --request POST \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"data": [
{
"key": "company_name",
"label": "Company Name",
"type": "INPUT_TEXT",
"value": "New Venture Co"
},
{
"key": "website",
"label": "Website",
"type": "INPUT_LINK",
"value": "https://newventure.co"
},
{
"key": "pitch_deck",
"label": "Pitch Deck",
"type": "FILE_UPLOAD",
"value": [
{
"id": "file-1",
"name": "pitch.pdf",
"url": "https://storage.example.com/pitch.pdf",
"size": 2048000
}
]
}
]
}
'import requests
url = "https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions"
payload = { "data": [
{
"key": "company_name",
"label": "Company Name",
"type": "INPUT_TEXT",
"value": "New Venture Co"
},
{
"key": "website",
"label": "Website",
"type": "INPUT_LINK",
"value": "https://newventure.co"
},
{
"key": "pitch_deck",
"label": "Pitch Deck",
"type": "FILE_UPLOAD",
"value": [
{
"id": "file-1",
"name": "pitch.pdf",
"url": "https://storage.example.com/pitch.pdf",
"size": 2048000
}
]
}
] }
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({
data: [
{
key: 'company_name',
label: 'Company Name',
type: 'INPUT_TEXT',
value: 'New Venture Co'
},
{
key: 'website',
label: 'Website',
type: 'INPUT_LINK',
value: 'https://newventure.co'
},
{
key: 'pitch_deck',
label: 'Pitch Deck',
type: 'FILE_UPLOAD',
value: [
{
id: 'file-1',
name: 'pitch.pdf',
url: 'https://storage.example.com/pitch.pdf',
size: 2048000
}
]
}
]
})
};
fetch('https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions', 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}/form-submissions",
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([
'data' => [
[
'key' => 'company_name',
'label' => 'Company Name',
'type' => 'INPUT_TEXT',
'value' => 'New Venture Co'
],
[
'key' => 'website',
'label' => 'Website',
'type' => 'INPUT_LINK',
'value' => 'https://newventure.co'
],
[
'key' => 'pitch_deck',
'label' => 'Pitch Deck',
'type' => 'FILE_UPLOAD',
'value' => [
[
'id' => 'file-1',
'name' => 'pitch.pdf',
'url' => 'https://storage.example.com/pitch.pdf',
'size' => 2048000
]
]
]
]
]),
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}/form-submissions"
payload := strings.NewReader("{\n \"data\": [\n {\n \"key\": \"company_name\",\n \"label\": \"Company Name\",\n \"type\": \"INPUT_TEXT\",\n \"value\": \"New Venture Co\"\n },\n {\n \"key\": \"website\",\n \"label\": \"Website\",\n \"type\": \"INPUT_LINK\",\n \"value\": \"https://newventure.co\"\n },\n {\n \"key\": \"pitch_deck\",\n \"label\": \"Pitch Deck\",\n \"type\": \"FILE_UPLOAD\",\n \"value\": [\n {\n \"id\": \"file-1\",\n \"name\": \"pitch.pdf\",\n \"url\": \"https://storage.example.com/pitch.pdf\",\n \"size\": 2048000\n }\n ]\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}/form-submissions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"key\": \"company_name\",\n \"label\": \"Company Name\",\n \"type\": \"INPUT_TEXT\",\n \"value\": \"New Venture Co\"\n },\n {\n \"key\": \"website\",\n \"label\": \"Website\",\n \"type\": \"INPUT_LINK\",\n \"value\": \"https://newventure.co\"\n },\n {\n \"key\": \"pitch_deck\",\n \"label\": \"Pitch Deck\",\n \"type\": \"FILE_UPLOAD\",\n \"value\": [\n {\n \"id\": \"file-1\",\n \"name\": \"pitch.pdf\",\n \"url\": \"https://storage.example.com/pitch.pdf\",\n \"size\": 2048000\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.useroulette.com/api/v1/accounts/{account_id}/form-submissions")
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 \"data\": [\n {\n \"key\": \"company_name\",\n \"label\": \"Company Name\",\n \"type\": \"INPUT_TEXT\",\n \"value\": \"New Venture Co\"\n },\n {\n \"key\": \"website\",\n \"label\": \"Website\",\n \"type\": \"INPUT_LINK\",\n \"value\": \"https://newventure.co\"\n },\n {\n \"key\": \"pitch_deck\",\n \"label\": \"Pitch Deck\",\n \"type\": \"FILE_UPLOAD\",\n \"value\": [\n {\n \"id\": \"file-1\",\n \"name\": \"pitch.pdf\",\n \"url\": \"https://storage.example.com/pitch.pdf\",\n \"size\": 2048000\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"submission": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"data": [
{
"key": "question_abc123",
"label": "Company Name",
"type": "INPUT_TEXT",
"value": "Acme Corp"
},
{
"key": "question_def456",
"label": "Contact Email",
"type": "INPUT_EMAIL",
"value": "founder@acme.com"
},
{
"key": "question_ghi789",
"label": "Funding Stage",
"type": "MULTIPLE_CHOICE",
"value": "seed",
"options": [
{
"id": "opt1",
"text": "Pre-seed"
},
{
"id": "opt2",
"text": "Seed"
},
{
"id": "opt3",
"text": "Series A"
}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"processed": false,
"updated_at": "2023-11-07T05:31:56Z"
}
}
}{
"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

