Create Study And Launch Panel
Create a study and immediately launch a panel for it, in one call. The study
is created as a Panel study and the panel uses the study’s interview language.
Set panel.dry_run to get a cost estimate without creating or fielding anything.
curl --request POST \
--url https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"study": {
"name": "<string>",
"study_type": "in-depth-interview",
"study_plan": {
"objectives": "<string>",
"conversation_flow": "<string>",
"background": "<string>",
"learning_goals": "<string>",
"key_questions": "<string>",
"study_specific_rules": "<string>"
},
"screener_questions": [
{
"text": "<string>",
"type": "single_select",
"options": [
{
"text": "<string>",
"disqualify": false,
"id": "<string>"
}
],
"order": 123,
"id": "<string>",
"text_values": [
"<string>"
],
"disallowed_text_values": [
"<string>"
],
"category": "<string>"
}
],
"targeting_attributes": [
{
"qualification_id": 123,
"allowed_options": [
123
],
"disallowed_options": [
123
]
}
]
},
"panel": {
"target": 123,
"country_code": "US",
"frequency": "one-time",
"dry_run": false
}
}
'import requests
url = "https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel"
payload = {
"study": {
"name": "<string>",
"study_type": "in-depth-interview",
"study_plan": {
"objectives": "<string>",
"conversation_flow": "<string>",
"background": "<string>",
"learning_goals": "<string>",
"key_questions": "<string>",
"study_specific_rules": "<string>"
},
"screener_questions": [
{
"text": "<string>",
"type": "single_select",
"options": [
{
"text": "<string>",
"disqualify": False,
"id": "<string>"
}
],
"order": 123,
"id": "<string>",
"text_values": ["<string>"],
"disallowed_text_values": ["<string>"],
"category": "<string>"
}
],
"targeting_attributes": [
{
"qualification_id": 123,
"allowed_options": [123],
"disallowed_options": [123]
}
]
},
"panel": {
"target": 123,
"country_code": "US",
"frequency": "one-time",
"dry_run": False
}
}
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({
study: {
name: '<string>',
study_type: 'in-depth-interview',
study_plan: {
objectives: '<string>',
conversation_flow: '<string>',
background: '<string>',
learning_goals: '<string>',
key_questions: '<string>',
study_specific_rules: '<string>'
},
screener_questions: [
{
text: '<string>',
type: 'single_select',
options: [{text: '<string>', disqualify: false, id: '<string>'}],
order: 123,
id: '<string>',
text_values: ['<string>'],
disallowed_text_values: ['<string>'],
category: '<string>'
}
],
targeting_attributes: [{qualification_id: 123, allowed_options: [123], disallowed_options: [123]}]
},
panel: {target: 123, country_code: 'US', frequency: 'one-time', dry_run: false}
})
};
fetch('https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel', 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://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel",
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([
'study' => [
'name' => '<string>',
'study_type' => 'in-depth-interview',
'study_plan' => [
'objectives' => '<string>',
'conversation_flow' => '<string>',
'background' => '<string>',
'learning_goals' => '<string>',
'key_questions' => '<string>',
'study_specific_rules' => '<string>'
],
'screener_questions' => [
[
'text' => '<string>',
'type' => 'single_select',
'options' => [
[
'text' => '<string>',
'disqualify' => false,
'id' => '<string>'
]
],
'order' => 123,
'id' => '<string>',
'text_values' => [
'<string>'
],
'disallowed_text_values' => [
'<string>'
],
'category' => '<string>'
]
],
'targeting_attributes' => [
[
'qualification_id' => 123,
'allowed_options' => [
123
],
'disallowed_options' => [
123
]
]
]
],
'panel' => [
'target' => 123,
'country_code' => 'US',
'frequency' => 'one-time',
'dry_run' => false
]
]),
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://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel"
payload := strings.NewReader("{\n \"study\": {\n \"name\": \"<string>\",\n \"study_type\": \"in-depth-interview\",\n \"study_plan\": {\n \"objectives\": \"<string>\",\n \"conversation_flow\": \"<string>\",\n \"background\": \"<string>\",\n \"learning_goals\": \"<string>\",\n \"key_questions\": \"<string>\",\n \"study_specific_rules\": \"<string>\"\n },\n \"screener_questions\": [\n {\n \"text\": \"<string>\",\n \"type\": \"single_select\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"disqualify\": false,\n \"id\": \"<string>\"\n }\n ],\n \"order\": 123,\n \"id\": \"<string>\",\n \"text_values\": [\n \"<string>\"\n ],\n \"disallowed_text_values\": [\n \"<string>\"\n ],\n \"category\": \"<string>\"\n }\n ],\n \"targeting_attributes\": [\n {\n \"qualification_id\": 123,\n \"allowed_options\": [\n 123\n ],\n \"disallowed_options\": [\n 123\n ]\n }\n ]\n },\n \"panel\": {\n \"target\": 123,\n \"country_code\": \"US\",\n \"frequency\": \"one-time\",\n \"dry_run\": false\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://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"study\": {\n \"name\": \"<string>\",\n \"study_type\": \"in-depth-interview\",\n \"study_plan\": {\n \"objectives\": \"<string>\",\n \"conversation_flow\": \"<string>\",\n \"background\": \"<string>\",\n \"learning_goals\": \"<string>\",\n \"key_questions\": \"<string>\",\n \"study_specific_rules\": \"<string>\"\n },\n \"screener_questions\": [\n {\n \"text\": \"<string>\",\n \"type\": \"single_select\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"disqualify\": false,\n \"id\": \"<string>\"\n }\n ],\n \"order\": 123,\n \"id\": \"<string>\",\n \"text_values\": [\n \"<string>\"\n ],\n \"disallowed_text_values\": [\n \"<string>\"\n ],\n \"category\": \"<string>\"\n }\n ],\n \"targeting_attributes\": [\n {\n \"qualification_id\": 123,\n \"allowed_options\": [\n 123\n ],\n \"disallowed_options\": [\n 123\n ]\n }\n ]\n },\n \"panel\": {\n \"target\": 123,\n \"country_code\": \"US\",\n \"frequency\": \"one-time\",\n \"dry_run\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel")
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 \"study\": {\n \"name\": \"<string>\",\n \"study_type\": \"in-depth-interview\",\n \"study_plan\": {\n \"objectives\": \"<string>\",\n \"conversation_flow\": \"<string>\",\n \"background\": \"<string>\",\n \"learning_goals\": \"<string>\",\n \"key_questions\": \"<string>\",\n \"study_specific_rules\": \"<string>\"\n },\n \"screener_questions\": [\n {\n \"text\": \"<string>\",\n \"type\": \"single_select\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"disqualify\": false,\n \"id\": \"<string>\"\n }\n ],\n \"order\": 123,\n \"id\": \"<string>\",\n \"text_values\": [\n \"<string>\"\n ],\n \"disallowed_text_values\": [\n \"<string>\"\n ],\n \"category\": \"<string>\"\n }\n ],\n \"targeting_attributes\": [\n {\n \"qualification_id\": 123,\n \"allowed_options\": [\n 123\n ],\n \"disallowed_options\": [\n 123\n ]\n }\n ]\n },\n \"panel\": {\n \"target\": 123,\n \"country_code\": \"US\",\n \"frequency\": \"one-time\",\n \"dry_run\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"panel": {
"study_id": "<string>",
"panel_status": "<string>",
"dry_run": true,
"target": 123,
"estimated_total_cost_per_interview_usd": 123,
"estimated_total_cost_usd": 123,
"estimated_timeline_hours": 123
},
"study": {
"id": "<string>",
"name": "<string>",
"study_type": "<string>",
"recruiting_method": "<string>",
"language": "<string>",
"byop_config": {
"incentive_amount": 123,
"is_incentives_enabled": true,
"auto_send_incentives": true
},
"study_link": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"study_plan": {
"objectives": "<string>",
"conversation_flow": "<string>",
"background": "<string>",
"learning_goals": "<string>",
"key_questions": "<string>",
"study_specific_rules": "<string>"
},
"screener_questions": [
{
"id": "<string>",
"text": "<string>",
"type": "<string>",
"order": 123,
"options": [
{
"id": "<string>",
"text": "<string>",
"disqualify": true
}
],
"text_values": [
"<string>"
],
"disallowed_text_values": [
"<string>"
],
"category": "<string>"
}
],
"targeting_attributes": [
{
"qualification_id": 123,
"allowed_options": [
123
],
"disallowed_options": [
123
]
}
],
"total_invites": 123,
"total_calls": 123,
"quality_calls": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Authenticate with an API key (prefixed ui_sk_) or a JWT token from the dashboard.
Body
Create a study and immediately field a panel for it. The study is always
created as a Panel study (recruiting_method is forced to panel; incentives
don't apply). Set panel.dry_run to get a cost estimate without creating or
fielding anything.
Study fields for create-and-launch-panel — no incentive config (always a panel study, so incentives don't apply).
Show child attributes
Show child attributes
Field a paid panel for a Panel-type study. The interview language is taken from the study (not set here).
Show child attributes
Show child attributes
Response
Successful Response
Was this page helpful?
curl --request POST \
--url https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"study": {
"name": "<string>",
"study_type": "in-depth-interview",
"study_plan": {
"objectives": "<string>",
"conversation_flow": "<string>",
"background": "<string>",
"learning_goals": "<string>",
"key_questions": "<string>",
"study_specific_rules": "<string>"
},
"screener_questions": [
{
"text": "<string>",
"type": "single_select",
"options": [
{
"text": "<string>",
"disqualify": false,
"id": "<string>"
}
],
"order": 123,
"id": "<string>",
"text_values": [
"<string>"
],
"disallowed_text_values": [
"<string>"
],
"category": "<string>"
}
],
"targeting_attributes": [
{
"qualification_id": 123,
"allowed_options": [
123
],
"disallowed_options": [
123
]
}
]
},
"panel": {
"target": 123,
"country_code": "US",
"frequency": "one-time",
"dry_run": false
}
}
'import requests
url = "https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel"
payload = {
"study": {
"name": "<string>",
"study_type": "in-depth-interview",
"study_plan": {
"objectives": "<string>",
"conversation_flow": "<string>",
"background": "<string>",
"learning_goals": "<string>",
"key_questions": "<string>",
"study_specific_rules": "<string>"
},
"screener_questions": [
{
"text": "<string>",
"type": "single_select",
"options": [
{
"text": "<string>",
"disqualify": False,
"id": "<string>"
}
],
"order": 123,
"id": "<string>",
"text_values": ["<string>"],
"disallowed_text_values": ["<string>"],
"category": "<string>"
}
],
"targeting_attributes": [
{
"qualification_id": 123,
"allowed_options": [123],
"disallowed_options": [123]
}
]
},
"panel": {
"target": 123,
"country_code": "US",
"frequency": "one-time",
"dry_run": False
}
}
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({
study: {
name: '<string>',
study_type: 'in-depth-interview',
study_plan: {
objectives: '<string>',
conversation_flow: '<string>',
background: '<string>',
learning_goals: '<string>',
key_questions: '<string>',
study_specific_rules: '<string>'
},
screener_questions: [
{
text: '<string>',
type: 'single_select',
options: [{text: '<string>', disqualify: false, id: '<string>'}],
order: 123,
id: '<string>',
text_values: ['<string>'],
disallowed_text_values: ['<string>'],
category: '<string>'
}
],
targeting_attributes: [{qualification_id: 123, allowed_options: [123], disallowed_options: [123]}]
},
panel: {target: 123, country_code: 'US', frequency: 'one-time', dry_run: false}
})
};
fetch('https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel', 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://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel",
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([
'study' => [
'name' => '<string>',
'study_type' => 'in-depth-interview',
'study_plan' => [
'objectives' => '<string>',
'conversation_flow' => '<string>',
'background' => '<string>',
'learning_goals' => '<string>',
'key_questions' => '<string>',
'study_specific_rules' => '<string>'
],
'screener_questions' => [
[
'text' => '<string>',
'type' => 'single_select',
'options' => [
[
'text' => '<string>',
'disqualify' => false,
'id' => '<string>'
]
],
'order' => 123,
'id' => '<string>',
'text_values' => [
'<string>'
],
'disallowed_text_values' => [
'<string>'
],
'category' => '<string>'
]
],
'targeting_attributes' => [
[
'qualification_id' => 123,
'allowed_options' => [
123
],
'disallowed_options' => [
123
]
]
]
],
'panel' => [
'target' => 123,
'country_code' => 'US',
'frequency' => 'one-time',
'dry_run' => false
]
]),
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://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel"
payload := strings.NewReader("{\n \"study\": {\n \"name\": \"<string>\",\n \"study_type\": \"in-depth-interview\",\n \"study_plan\": {\n \"objectives\": \"<string>\",\n \"conversation_flow\": \"<string>\",\n \"background\": \"<string>\",\n \"learning_goals\": \"<string>\",\n \"key_questions\": \"<string>\",\n \"study_specific_rules\": \"<string>\"\n },\n \"screener_questions\": [\n {\n \"text\": \"<string>\",\n \"type\": \"single_select\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"disqualify\": false,\n \"id\": \"<string>\"\n }\n ],\n \"order\": 123,\n \"id\": \"<string>\",\n \"text_values\": [\n \"<string>\"\n ],\n \"disallowed_text_values\": [\n \"<string>\"\n ],\n \"category\": \"<string>\"\n }\n ],\n \"targeting_attributes\": [\n {\n \"qualification_id\": 123,\n \"allowed_options\": [\n 123\n ],\n \"disallowed_options\": [\n 123\n ]\n }\n ]\n },\n \"panel\": {\n \"target\": 123,\n \"country_code\": \"US\",\n \"frequency\": \"one-time\",\n \"dry_run\": false\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://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"study\": {\n \"name\": \"<string>\",\n \"study_type\": \"in-depth-interview\",\n \"study_plan\": {\n \"objectives\": \"<string>\",\n \"conversation_flow\": \"<string>\",\n \"background\": \"<string>\",\n \"learning_goals\": \"<string>\",\n \"key_questions\": \"<string>\",\n \"study_specific_rules\": \"<string>\"\n },\n \"screener_questions\": [\n {\n \"text\": \"<string>\",\n \"type\": \"single_select\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"disqualify\": false,\n \"id\": \"<string>\"\n }\n ],\n \"order\": 123,\n \"id\": \"<string>\",\n \"text_values\": [\n \"<string>\"\n ],\n \"disallowed_text_values\": [\n \"<string>\"\n ],\n \"category\": \"<string>\"\n }\n ],\n \"targeting_attributes\": [\n {\n \"qualification_id\": 123,\n \"allowed_options\": [\n 123\n ],\n \"disallowed_options\": [\n 123\n ]\n }\n ]\n },\n \"panel\": {\n \"target\": 123,\n \"country_code\": \"US\",\n \"frequency\": \"one-time\",\n \"dry_run\": false\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.userintuition.ai/api/public/v1/studies/create-and-launch-panel")
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 \"study\": {\n \"name\": \"<string>\",\n \"study_type\": \"in-depth-interview\",\n \"study_plan\": {\n \"objectives\": \"<string>\",\n \"conversation_flow\": \"<string>\",\n \"background\": \"<string>\",\n \"learning_goals\": \"<string>\",\n \"key_questions\": \"<string>\",\n \"study_specific_rules\": \"<string>\"\n },\n \"screener_questions\": [\n {\n \"text\": \"<string>\",\n \"type\": \"single_select\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"disqualify\": false,\n \"id\": \"<string>\"\n }\n ],\n \"order\": 123,\n \"id\": \"<string>\",\n \"text_values\": [\n \"<string>\"\n ],\n \"disallowed_text_values\": [\n \"<string>\"\n ],\n \"category\": \"<string>\"\n }\n ],\n \"targeting_attributes\": [\n {\n \"qualification_id\": 123,\n \"allowed_options\": [\n 123\n ],\n \"disallowed_options\": [\n 123\n ]\n }\n ]\n },\n \"panel\": {\n \"target\": 123,\n \"country_code\": \"US\",\n \"frequency\": \"one-time\",\n \"dry_run\": false\n }\n}"
response = http.request(request)
puts response.read_body{
"panel": {
"study_id": "<string>",
"panel_status": "<string>",
"dry_run": true,
"target": 123,
"estimated_total_cost_per_interview_usd": 123,
"estimated_total_cost_usd": 123,
"estimated_timeline_hours": 123
},
"study": {
"id": "<string>",
"name": "<string>",
"study_type": "<string>",
"recruiting_method": "<string>",
"language": "<string>",
"byop_config": {
"incentive_amount": 123,
"is_incentives_enabled": true,
"auto_send_incentives": true
},
"study_link": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"study_plan": {
"objectives": "<string>",
"conversation_flow": "<string>",
"background": "<string>",
"learning_goals": "<string>",
"key_questions": "<string>",
"study_specific_rules": "<string>"
},
"screener_questions": [
{
"id": "<string>",
"text": "<string>",
"type": "<string>",
"order": 123,
"options": [
{
"id": "<string>",
"text": "<string>",
"disqualify": true
}
],
"text_values": [
"<string>"
],
"disallowed_text_values": [
"<string>"
],
"category": "<string>"
}
],
"targeting_attributes": [
{
"qualification_id": 123,
"allowed_options": [
123
],
"disallowed_options": [
123
]
}
],
"total_invites": 123,
"total_calls": 123,
"quality_calls": 123
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}
