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
}
]
}
]
}'{
"success": true,
"data": {
"submission": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "tally",
"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"
}
]
}
],
"metadata": {},
"processed": false,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}Manually create a form submission record. Useful for importing data from external sources or creating test data.
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
}
]
}
]
}'{
"success": true,
"data": {
"submission": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_type": "tally",
"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"
}
]
}
],
"metadata": {},
"processed": false,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}