Create a question template
curl --request POST \
--url https://app.autousers.ai/api/v1/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"teamId": "<string>",
"name": "<string>",
"description": "<string>",
"type": "TEXT_SXS",
"scaleType": "SEVEN_POINT",
"scaleMin": 1,
"scaleMax": 7,
"scaleLabels": {},
"guidelines": "<string>",
"criteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"icon": "star",
"scaleQuestion": "<string>",
"sseQuestion": "<string>",
"factors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseCriteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseScaleLabels": [
"<string>"
],
"sxsScaleLabels": [
"<string>"
],
"sseScaleDescriptions": [
"<string>"
],
"sxsScaleDescriptions": [
"<string>"
],
"contexts": [],
"scoringMode": "holistic",
"sseAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sseAnchorLabels": [
"<string>"
],
"sseAnchorDescriptions": [
"<string>"
],
"sxsScoringMode": "holistic",
"sxsAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sxsAnchorLabels": [
"<string>"
],
"sxsAnchorDescriptions": [
"<string>"
],
"isPrimary": false,
"sourceBuiltInId": "<string>",
"openTextEnabled": false,
"customQuestions": [
{
"id": "<string>",
"text": "<string>",
"category": "<string>"
}
]
}
'import requests
url = "https://app.autousers.ai/api/v1/templates"
payload = {
"teamId": "<string>",
"name": "<string>",
"description": "<string>",
"type": "TEXT_SXS",
"scaleType": "SEVEN_POINT",
"scaleMin": 1,
"scaleMax": 7,
"scaleLabels": {},
"guidelines": "<string>",
"criteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"icon": "star",
"scaleQuestion": "<string>",
"sseQuestion": "<string>",
"factors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseCriteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseScaleLabels": ["<string>"],
"sxsScaleLabels": ["<string>"],
"sseScaleDescriptions": ["<string>"],
"sxsScaleDescriptions": ["<string>"],
"contexts": [],
"scoringMode": "holistic",
"sseAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sseAnchorLabels": ["<string>"],
"sseAnchorDescriptions": ["<string>"],
"sxsScoringMode": "holistic",
"sxsAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sxsAnchorLabels": ["<string>"],
"sxsAnchorDescriptions": ["<string>"],
"isPrimary": False,
"sourceBuiltInId": "<string>",
"openTextEnabled": False,
"customQuestions": [
{
"id": "<string>",
"text": "<string>",
"category": "<string>"
}
]
}
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({
teamId: '<string>',
name: '<string>',
description: '<string>',
type: 'TEXT_SXS',
scaleType: 'SEVEN_POINT',
scaleMin: 1,
scaleMax: 7,
scaleLabels: {},
guidelines: '<string>',
criteria: [{id: '<string>', label: '<string>', description: '<string>'}],
icon: 'star',
scaleQuestion: '<string>',
sseQuestion: '<string>',
factors: [{id: '<string>', label: '<string>', description: '<string>'}],
sseCriteria: [{id: '<string>', label: '<string>', description: '<string>'}],
sseScaleLabels: ['<string>'],
sxsScaleLabels: ['<string>'],
sseScaleDescriptions: ['<string>'],
sxsScaleDescriptions: ['<string>'],
contexts: [],
scoringMode: 'holistic',
sseAnchors: [{id: '<string>', label: '<string>', description: '<string>', weight: 1}],
sseAnchorLabels: ['<string>'],
sseAnchorDescriptions: ['<string>'],
sxsScoringMode: 'holistic',
sxsAnchors: [{id: '<string>', label: '<string>', description: '<string>', weight: 1}],
sxsAnchorLabels: ['<string>'],
sxsAnchorDescriptions: ['<string>'],
isPrimary: false,
sourceBuiltInId: '<string>',
openTextEnabled: false,
customQuestions: [{id: '<string>', text: '<string>', category: '<string>'}]
})
};
fetch('https://app.autousers.ai/api/v1/templates', 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://app.autousers.ai/api/v1/templates",
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([
'teamId' => '<string>',
'name' => '<string>',
'description' => '<string>',
'type' => 'TEXT_SXS',
'scaleType' => 'SEVEN_POINT',
'scaleMin' => 1,
'scaleMax' => 7,
'scaleLabels' => [
],
'guidelines' => '<string>',
'criteria' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>'
]
],
'icon' => 'star',
'scaleQuestion' => '<string>',
'sseQuestion' => '<string>',
'factors' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>'
]
],
'sseCriteria' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>'
]
],
'sseScaleLabels' => [
'<string>'
],
'sxsScaleLabels' => [
'<string>'
],
'sseScaleDescriptions' => [
'<string>'
],
'sxsScaleDescriptions' => [
'<string>'
],
'contexts' => [
],
'scoringMode' => 'holistic',
'sseAnchors' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>',
'weight' => 1
]
],
'sseAnchorLabels' => [
'<string>'
],
'sseAnchorDescriptions' => [
'<string>'
],
'sxsScoringMode' => 'holistic',
'sxsAnchors' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>',
'weight' => 1
]
],
'sxsAnchorLabels' => [
'<string>'
],
'sxsAnchorDescriptions' => [
'<string>'
],
'isPrimary' => false,
'sourceBuiltInId' => '<string>',
'openTextEnabled' => false,
'customQuestions' => [
[
'id' => '<string>',
'text' => '<string>',
'category' => '<string>'
]
]
]),
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://app.autousers.ai/api/v1/templates"
payload := strings.NewReader("{\n \"teamId\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"type\": \"TEXT_SXS\",\n \"scaleType\": \"SEVEN_POINT\",\n \"scaleMin\": 1,\n \"scaleMax\": 7,\n \"scaleLabels\": {},\n \"guidelines\": \"<string>\",\n \"criteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"icon\": \"star\",\n \"scaleQuestion\": \"<string>\",\n \"sseQuestion\": \"<string>\",\n \"factors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseCriteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseScaleLabels\": [\n \"<string>\"\n ],\n \"sxsScaleLabels\": [\n \"<string>\"\n ],\n \"sseScaleDescriptions\": [\n \"<string>\"\n ],\n \"sxsScaleDescriptions\": [\n \"<string>\"\n ],\n \"contexts\": [],\n \"scoringMode\": \"holistic\",\n \"sseAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sseAnchorLabels\": [\n \"<string>\"\n ],\n \"sseAnchorDescriptions\": [\n \"<string>\"\n ],\n \"sxsScoringMode\": \"holistic\",\n \"sxsAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sxsAnchorLabels\": [\n \"<string>\"\n ],\n \"sxsAnchorDescriptions\": [\n \"<string>\"\n ],\n \"isPrimary\": false,\n \"sourceBuiltInId\": \"<string>\",\n \"openTextEnabled\": false,\n \"customQuestions\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"category\": \"<string>\"\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://app.autousers.ai/api/v1/templates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"teamId\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"type\": \"TEXT_SXS\",\n \"scaleType\": \"SEVEN_POINT\",\n \"scaleMin\": 1,\n \"scaleMax\": 7,\n \"scaleLabels\": {},\n \"guidelines\": \"<string>\",\n \"criteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"icon\": \"star\",\n \"scaleQuestion\": \"<string>\",\n \"sseQuestion\": \"<string>\",\n \"factors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseCriteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseScaleLabels\": [\n \"<string>\"\n ],\n \"sxsScaleLabels\": [\n \"<string>\"\n ],\n \"sseScaleDescriptions\": [\n \"<string>\"\n ],\n \"sxsScaleDescriptions\": [\n \"<string>\"\n ],\n \"contexts\": [],\n \"scoringMode\": \"holistic\",\n \"sseAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sseAnchorLabels\": [\n \"<string>\"\n ],\n \"sseAnchorDescriptions\": [\n \"<string>\"\n ],\n \"sxsScoringMode\": \"holistic\",\n \"sxsAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sxsAnchorLabels\": [\n \"<string>\"\n ],\n \"sxsAnchorDescriptions\": [\n \"<string>\"\n ],\n \"isPrimary\": false,\n \"sourceBuiltInId\": \"<string>\",\n \"openTextEnabled\": false,\n \"customQuestions\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"category\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.autousers.ai/api/v1/templates")
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 \"teamId\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"type\": \"TEXT_SXS\",\n \"scaleType\": \"SEVEN_POINT\",\n \"scaleMin\": 1,\n \"scaleMax\": 7,\n \"scaleLabels\": {},\n \"guidelines\": \"<string>\",\n \"criteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"icon\": \"star\",\n \"scaleQuestion\": \"<string>\",\n \"sseQuestion\": \"<string>\",\n \"factors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseCriteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseScaleLabels\": [\n \"<string>\"\n ],\n \"sxsScaleLabels\": [\n \"<string>\"\n ],\n \"sseScaleDescriptions\": [\n \"<string>\"\n ],\n \"sxsScaleDescriptions\": [\n \"<string>\"\n ],\n \"contexts\": [],\n \"scoringMode\": \"holistic\",\n \"sseAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sseAnchorLabels\": [\n \"<string>\"\n ],\n \"sseAnchorDescriptions\": [\n \"<string>\"\n ],\n \"sxsScoringMode\": \"holistic\",\n \"sxsAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sxsAnchorLabels\": [\n \"<string>\"\n ],\n \"sxsAnchorDescriptions\": [\n \"<string>\"\n ],\n \"isPrimary\": false,\n \"sourceBuiltInId\": \"<string>\",\n \"openTextEnabled\": false,\n \"customQuestions\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"category\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"isSystem": true,
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"teamId": "<string>"
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}Templates
Create a question template
POST
/
api
/
v1
/
templates
Create a question template
curl --request POST \
--url https://app.autousers.ai/api/v1/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"teamId": "<string>",
"name": "<string>",
"description": "<string>",
"type": "TEXT_SXS",
"scaleType": "SEVEN_POINT",
"scaleMin": 1,
"scaleMax": 7,
"scaleLabels": {},
"guidelines": "<string>",
"criteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"icon": "star",
"scaleQuestion": "<string>",
"sseQuestion": "<string>",
"factors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseCriteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseScaleLabels": [
"<string>"
],
"sxsScaleLabels": [
"<string>"
],
"sseScaleDescriptions": [
"<string>"
],
"sxsScaleDescriptions": [
"<string>"
],
"contexts": [],
"scoringMode": "holistic",
"sseAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sseAnchorLabels": [
"<string>"
],
"sseAnchorDescriptions": [
"<string>"
],
"sxsScoringMode": "holistic",
"sxsAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sxsAnchorLabels": [
"<string>"
],
"sxsAnchorDescriptions": [
"<string>"
],
"isPrimary": false,
"sourceBuiltInId": "<string>",
"openTextEnabled": false,
"customQuestions": [
{
"id": "<string>",
"text": "<string>",
"category": "<string>"
}
]
}
'import requests
url = "https://app.autousers.ai/api/v1/templates"
payload = {
"teamId": "<string>",
"name": "<string>",
"description": "<string>",
"type": "TEXT_SXS",
"scaleType": "SEVEN_POINT",
"scaleMin": 1,
"scaleMax": 7,
"scaleLabels": {},
"guidelines": "<string>",
"criteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"icon": "star",
"scaleQuestion": "<string>",
"sseQuestion": "<string>",
"factors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseCriteria": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>"
}
],
"sseScaleLabels": ["<string>"],
"sxsScaleLabels": ["<string>"],
"sseScaleDescriptions": ["<string>"],
"sxsScaleDescriptions": ["<string>"],
"contexts": [],
"scoringMode": "holistic",
"sseAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sseAnchorLabels": ["<string>"],
"sseAnchorDescriptions": ["<string>"],
"sxsScoringMode": "holistic",
"sxsAnchors": [
{
"id": "<string>",
"label": "<string>",
"description": "<string>",
"weight": 1
}
],
"sxsAnchorLabels": ["<string>"],
"sxsAnchorDescriptions": ["<string>"],
"isPrimary": False,
"sourceBuiltInId": "<string>",
"openTextEnabled": False,
"customQuestions": [
{
"id": "<string>",
"text": "<string>",
"category": "<string>"
}
]
}
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({
teamId: '<string>',
name: '<string>',
description: '<string>',
type: 'TEXT_SXS',
scaleType: 'SEVEN_POINT',
scaleMin: 1,
scaleMax: 7,
scaleLabels: {},
guidelines: '<string>',
criteria: [{id: '<string>', label: '<string>', description: '<string>'}],
icon: 'star',
scaleQuestion: '<string>',
sseQuestion: '<string>',
factors: [{id: '<string>', label: '<string>', description: '<string>'}],
sseCriteria: [{id: '<string>', label: '<string>', description: '<string>'}],
sseScaleLabels: ['<string>'],
sxsScaleLabels: ['<string>'],
sseScaleDescriptions: ['<string>'],
sxsScaleDescriptions: ['<string>'],
contexts: [],
scoringMode: 'holistic',
sseAnchors: [{id: '<string>', label: '<string>', description: '<string>', weight: 1}],
sseAnchorLabels: ['<string>'],
sseAnchorDescriptions: ['<string>'],
sxsScoringMode: 'holistic',
sxsAnchors: [{id: '<string>', label: '<string>', description: '<string>', weight: 1}],
sxsAnchorLabels: ['<string>'],
sxsAnchorDescriptions: ['<string>'],
isPrimary: false,
sourceBuiltInId: '<string>',
openTextEnabled: false,
customQuestions: [{id: '<string>', text: '<string>', category: '<string>'}]
})
};
fetch('https://app.autousers.ai/api/v1/templates', 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://app.autousers.ai/api/v1/templates",
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([
'teamId' => '<string>',
'name' => '<string>',
'description' => '<string>',
'type' => 'TEXT_SXS',
'scaleType' => 'SEVEN_POINT',
'scaleMin' => 1,
'scaleMax' => 7,
'scaleLabels' => [
],
'guidelines' => '<string>',
'criteria' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>'
]
],
'icon' => 'star',
'scaleQuestion' => '<string>',
'sseQuestion' => '<string>',
'factors' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>'
]
],
'sseCriteria' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>'
]
],
'sseScaleLabels' => [
'<string>'
],
'sxsScaleLabels' => [
'<string>'
],
'sseScaleDescriptions' => [
'<string>'
],
'sxsScaleDescriptions' => [
'<string>'
],
'contexts' => [
],
'scoringMode' => 'holistic',
'sseAnchors' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>',
'weight' => 1
]
],
'sseAnchorLabels' => [
'<string>'
],
'sseAnchorDescriptions' => [
'<string>'
],
'sxsScoringMode' => 'holistic',
'sxsAnchors' => [
[
'id' => '<string>',
'label' => '<string>',
'description' => '<string>',
'weight' => 1
]
],
'sxsAnchorLabels' => [
'<string>'
],
'sxsAnchorDescriptions' => [
'<string>'
],
'isPrimary' => false,
'sourceBuiltInId' => '<string>',
'openTextEnabled' => false,
'customQuestions' => [
[
'id' => '<string>',
'text' => '<string>',
'category' => '<string>'
]
]
]),
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://app.autousers.ai/api/v1/templates"
payload := strings.NewReader("{\n \"teamId\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"type\": \"TEXT_SXS\",\n \"scaleType\": \"SEVEN_POINT\",\n \"scaleMin\": 1,\n \"scaleMax\": 7,\n \"scaleLabels\": {},\n \"guidelines\": \"<string>\",\n \"criteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"icon\": \"star\",\n \"scaleQuestion\": \"<string>\",\n \"sseQuestion\": \"<string>\",\n \"factors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseCriteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseScaleLabels\": [\n \"<string>\"\n ],\n \"sxsScaleLabels\": [\n \"<string>\"\n ],\n \"sseScaleDescriptions\": [\n \"<string>\"\n ],\n \"sxsScaleDescriptions\": [\n \"<string>\"\n ],\n \"contexts\": [],\n \"scoringMode\": \"holistic\",\n \"sseAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sseAnchorLabels\": [\n \"<string>\"\n ],\n \"sseAnchorDescriptions\": [\n \"<string>\"\n ],\n \"sxsScoringMode\": \"holistic\",\n \"sxsAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sxsAnchorLabels\": [\n \"<string>\"\n ],\n \"sxsAnchorDescriptions\": [\n \"<string>\"\n ],\n \"isPrimary\": false,\n \"sourceBuiltInId\": \"<string>\",\n \"openTextEnabled\": false,\n \"customQuestions\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"category\": \"<string>\"\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://app.autousers.ai/api/v1/templates")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"teamId\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"type\": \"TEXT_SXS\",\n \"scaleType\": \"SEVEN_POINT\",\n \"scaleMin\": 1,\n \"scaleMax\": 7,\n \"scaleLabels\": {},\n \"guidelines\": \"<string>\",\n \"criteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"icon\": \"star\",\n \"scaleQuestion\": \"<string>\",\n \"sseQuestion\": \"<string>\",\n \"factors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseCriteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseScaleLabels\": [\n \"<string>\"\n ],\n \"sxsScaleLabels\": [\n \"<string>\"\n ],\n \"sseScaleDescriptions\": [\n \"<string>\"\n ],\n \"sxsScaleDescriptions\": [\n \"<string>\"\n ],\n \"contexts\": [],\n \"scoringMode\": \"holistic\",\n \"sseAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sseAnchorLabels\": [\n \"<string>\"\n ],\n \"sseAnchorDescriptions\": [\n \"<string>\"\n ],\n \"sxsScoringMode\": \"holistic\",\n \"sxsAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sxsAnchorLabels\": [\n \"<string>\"\n ],\n \"sxsAnchorDescriptions\": [\n \"<string>\"\n ],\n \"isPrimary\": false,\n \"sourceBuiltInId\": \"<string>\",\n \"openTextEnabled\": false,\n \"customQuestions\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"category\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.autousers.ai/api/v1/templates")
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 \"teamId\": \"<string>\",\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"type\": \"TEXT_SXS\",\n \"scaleType\": \"SEVEN_POINT\",\n \"scaleMin\": 1,\n \"scaleMax\": 7,\n \"scaleLabels\": {},\n \"guidelines\": \"<string>\",\n \"criteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"icon\": \"star\",\n \"scaleQuestion\": \"<string>\",\n \"sseQuestion\": \"<string>\",\n \"factors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseCriteria\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\"\n }\n ],\n \"sseScaleLabels\": [\n \"<string>\"\n ],\n \"sxsScaleLabels\": [\n \"<string>\"\n ],\n \"sseScaleDescriptions\": [\n \"<string>\"\n ],\n \"sxsScaleDescriptions\": [\n \"<string>\"\n ],\n \"contexts\": [],\n \"scoringMode\": \"holistic\",\n \"sseAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sseAnchorLabels\": [\n \"<string>\"\n ],\n \"sseAnchorDescriptions\": [\n \"<string>\"\n ],\n \"sxsScoringMode\": \"holistic\",\n \"sxsAnchors\": [\n {\n \"id\": \"<string>\",\n \"label\": \"<string>\",\n \"description\": \"<string>\",\n \"weight\": 1\n }\n ],\n \"sxsAnchorLabels\": [\n \"<string>\"\n ],\n \"sxsAnchorDescriptions\": [\n \"<string>\"\n ],\n \"isPrimary\": false,\n \"sourceBuiltInId\": \"<string>\",\n \"openTextEnabled\": false,\n \"customQuestions\": [\n {\n \"id\": \"<string>\",\n \"text\": \"<string>\",\n \"category\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"isSystem": true,
"version": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"teamId": "<string>"
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}{
"error": {
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"doc_url": "<string>"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Client-generated idempotency key (≤255 chars). Replays the cached response when the same (team, key) pair sees an identical request body within 24h; returns 409 idempotency_key_reused if the body differs. Recommended for every billable POST.
Maximum string length:
255Date-pinned API version (e.g. 2026-05-04). Omit to receive the latest stable version. Behaves like Stripe's Stripe-Version — pinning a version freezes payload shapes against breaking changes during the 12-month sunset window.
Body
application/json
Required string length:
1 - 200Maximum string length:
2000Available options:
TEXT_SXS, TEXT_SSE, MEDIA_SXS, MEDIA_SSE Available options:
THREE_POINT, FIVE_POINT, SEVEN_POINT Show child attributes
Show child attributes
Maximum string length:
50000Show child attributes
Show child attributes
Required string length:
1 - 100Maximum string length:
500Maximum string length:
500Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum string length:
500Maximum string length:
500Maximum string length:
2000Maximum string length:
2000Available options:
ui-ux, llm-ai, design-system, generic Available options:
holistic, rubric Show child attributes
Show child attributes
Maximum string length:
500Maximum string length:
2000Available options:
holistic, rubric Show child attributes
Show child attributes
Maximum string length:
500Maximum string length:
2000Maximum string length:
200Show child attributes
Show child attributes
Was this page helpful?
⌘I