Create persona
curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"profile_brand": "<string>",
"profile_archetype": "<string>",
"profile_tag": "<string>",
"demographic_country": "<string>",
"demographic_language": "<string>",
"demographic_age_from": 123,
"demographic_age_to": 123,
"demographic_gender": "",
"demographic_education_level": "",
"demographic_education_field": "",
"demographic_occupation": "",
"demographic_income_from": 123,
"demographic_income_to": 123,
"demographic_living_context": "",
"internal_compass_job_to_be_done": "",
"internal_compass_values_and_personality_traits": "",
"internal_compass_motivations": "",
"internal_compass_strategic_goal": "",
"behavioural_map_lifestyle_and_primary_tasks": "",
"behavioural_map_media_consumption": "",
"behavioural_map_typical_quote": "",
"resistance_pain_points": "",
"resistance_purchase_barriers": "",
"resistance_core_questions": "",
"resistance_key_buying_triggers": "",
"connection_product_need": "",
"connection_why_loves_category": "",
"connection_summary": "",
"picture": ""
}
'import requests
url = "https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas"
payload = {
"profile_brand": "<string>",
"profile_archetype": "<string>",
"profile_tag": "<string>",
"demographic_country": "<string>",
"demographic_language": "<string>",
"demographic_age_from": 123,
"demographic_age_to": 123,
"demographic_gender": "",
"demographic_education_level": "",
"demographic_education_field": "",
"demographic_occupation": "",
"demographic_income_from": 123,
"demographic_income_to": 123,
"demographic_living_context": "",
"internal_compass_job_to_be_done": "",
"internal_compass_values_and_personality_traits": "",
"internal_compass_motivations": "",
"internal_compass_strategic_goal": "",
"behavioural_map_lifestyle_and_primary_tasks": "",
"behavioural_map_media_consumption": "",
"behavioural_map_typical_quote": "",
"resistance_pain_points": "",
"resistance_purchase_barriers": "",
"resistance_core_questions": "",
"resistance_key_buying_triggers": "",
"connection_product_need": "",
"connection_why_loves_category": "",
"connection_summary": "",
"picture": ""
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profile_brand: '<string>',
profile_archetype: '<string>',
profile_tag: '<string>',
demographic_country: '<string>',
demographic_language: '<string>',
demographic_age_from: 123,
demographic_age_to: 123,
demographic_gender: '',
demographic_education_level: '',
demographic_education_field: '',
demographic_occupation: '',
demographic_income_from: 123,
demographic_income_to: 123,
demographic_living_context: '',
internal_compass_job_to_be_done: '',
internal_compass_values_and_personality_traits: '',
internal_compass_motivations: '',
internal_compass_strategic_goal: '',
behavioural_map_lifestyle_and_primary_tasks: '',
behavioural_map_media_consumption: '',
behavioural_map_typical_quote: '',
resistance_pain_points: '',
resistance_purchase_barriers: '',
resistance_core_questions: '',
resistance_key_buying_triggers: '',
connection_product_need: '',
connection_why_loves_category: '',
connection_summary: '',
picture: ''
})
};
fetch('https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas', 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.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas",
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([
'profile_brand' => '<string>',
'profile_archetype' => '<string>',
'profile_tag' => '<string>',
'demographic_country' => '<string>',
'demographic_language' => '<string>',
'demographic_age_from' => 123,
'demographic_age_to' => 123,
'demographic_gender' => '',
'demographic_education_level' => '',
'demographic_education_field' => '',
'demographic_occupation' => '',
'demographic_income_from' => 123,
'demographic_income_to' => 123,
'demographic_living_context' => '',
'internal_compass_job_to_be_done' => '',
'internal_compass_values_and_personality_traits' => '',
'internal_compass_motivations' => '',
'internal_compass_strategic_goal' => '',
'behavioural_map_lifestyle_and_primary_tasks' => '',
'behavioural_map_media_consumption' => '',
'behavioural_map_typical_quote' => '',
'resistance_pain_points' => '',
'resistance_purchase_barriers' => '',
'resistance_core_questions' => '',
'resistance_key_buying_triggers' => '',
'connection_product_need' => '',
'connection_why_loves_category' => '',
'connection_summary' => '',
'picture' => ''
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas"
payload := strings.NewReader("{\n \"profile_brand\": \"<string>\",\n \"profile_archetype\": \"<string>\",\n \"profile_tag\": \"<string>\",\n \"demographic_country\": \"<string>\",\n \"demographic_language\": \"<string>\",\n \"demographic_age_from\": 123,\n \"demographic_age_to\": 123,\n \"demographic_gender\": \"\",\n \"demographic_education_level\": \"\",\n \"demographic_education_field\": \"\",\n \"demographic_occupation\": \"\",\n \"demographic_income_from\": 123,\n \"demographic_income_to\": 123,\n \"demographic_living_context\": \"\",\n \"internal_compass_job_to_be_done\": \"\",\n \"internal_compass_values_and_personality_traits\": \"\",\n \"internal_compass_motivations\": \"\",\n \"internal_compass_strategic_goal\": \"\",\n \"behavioural_map_lifestyle_and_primary_tasks\": \"\",\n \"behavioural_map_media_consumption\": \"\",\n \"behavioural_map_typical_quote\": \"\",\n \"resistance_pain_points\": \"\",\n \"resistance_purchase_barriers\": \"\",\n \"resistance_core_questions\": \"\",\n \"resistance_key_buying_triggers\": \"\",\n \"connection_product_need\": \"\",\n \"connection_why_loves_category\": \"\",\n \"connection_summary\": \"\",\n \"picture\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"profile_brand\": \"<string>\",\n \"profile_archetype\": \"<string>\",\n \"profile_tag\": \"<string>\",\n \"demographic_country\": \"<string>\",\n \"demographic_language\": \"<string>\",\n \"demographic_age_from\": 123,\n \"demographic_age_to\": 123,\n \"demographic_gender\": \"\",\n \"demographic_education_level\": \"\",\n \"demographic_education_field\": \"\",\n \"demographic_occupation\": \"\",\n \"demographic_income_from\": 123,\n \"demographic_income_to\": 123,\n \"demographic_living_context\": \"\",\n \"internal_compass_job_to_be_done\": \"\",\n \"internal_compass_values_and_personality_traits\": \"\",\n \"internal_compass_motivations\": \"\",\n \"internal_compass_strategic_goal\": \"\",\n \"behavioural_map_lifestyle_and_primary_tasks\": \"\",\n \"behavioural_map_media_consumption\": \"\",\n \"behavioural_map_typical_quote\": \"\",\n \"resistance_pain_points\": \"\",\n \"resistance_purchase_barriers\": \"\",\n \"resistance_core_questions\": \"\",\n \"resistance_key_buying_triggers\": \"\",\n \"connection_product_need\": \"\",\n \"connection_why_loves_category\": \"\",\n \"connection_summary\": \"\",\n \"picture\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_brand\": \"<string>\",\n \"profile_archetype\": \"<string>\",\n \"profile_tag\": \"<string>\",\n \"demographic_country\": \"<string>\",\n \"demographic_language\": \"<string>\",\n \"demographic_age_from\": 123,\n \"demographic_age_to\": 123,\n \"demographic_gender\": \"\",\n \"demographic_education_level\": \"\",\n \"demographic_education_field\": \"\",\n \"demographic_occupation\": \"\",\n \"demographic_income_from\": 123,\n \"demographic_income_to\": 123,\n \"demographic_living_context\": \"\",\n \"internal_compass_job_to_be_done\": \"\",\n \"internal_compass_values_and_personality_traits\": \"\",\n \"internal_compass_motivations\": \"\",\n \"internal_compass_strategic_goal\": \"\",\n \"behavioural_map_lifestyle_and_primary_tasks\": \"\",\n \"behavioural_map_media_consumption\": \"\",\n \"behavioural_map_typical_quote\": \"\",\n \"resistance_pain_points\": \"\",\n \"resistance_purchase_barriers\": \"\",\n \"resistance_core_questions\": \"\",\n \"resistance_key_buying_triggers\": \"\",\n \"connection_product_need\": \"\",\n \"connection_why_loves_category\": \"\",\n \"connection_summary\": \"\",\n \"picture\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived": true,
"deleted": true,
"picture": "<string>"
}Personas
Create persona
Create a new persona in a workspace. Required permission: write:analysis.
POST
/
v1
/
organizations
/
{organization_id}
/
workspaces
/
{workspace_id}
/
personas
Create persona
curl --request POST \
--url https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"profile_brand": "<string>",
"profile_archetype": "<string>",
"profile_tag": "<string>",
"demographic_country": "<string>",
"demographic_language": "<string>",
"demographic_age_from": 123,
"demographic_age_to": 123,
"demographic_gender": "",
"demographic_education_level": "",
"demographic_education_field": "",
"demographic_occupation": "",
"demographic_income_from": 123,
"demographic_income_to": 123,
"demographic_living_context": "",
"internal_compass_job_to_be_done": "",
"internal_compass_values_and_personality_traits": "",
"internal_compass_motivations": "",
"internal_compass_strategic_goal": "",
"behavioural_map_lifestyle_and_primary_tasks": "",
"behavioural_map_media_consumption": "",
"behavioural_map_typical_quote": "",
"resistance_pain_points": "",
"resistance_purchase_barriers": "",
"resistance_core_questions": "",
"resistance_key_buying_triggers": "",
"connection_product_need": "",
"connection_why_loves_category": "",
"connection_summary": "",
"picture": ""
}
'import requests
url = "https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas"
payload = {
"profile_brand": "<string>",
"profile_archetype": "<string>",
"profile_tag": "<string>",
"demographic_country": "<string>",
"demographic_language": "<string>",
"demographic_age_from": 123,
"demographic_age_to": 123,
"demographic_gender": "",
"demographic_education_level": "",
"demographic_education_field": "",
"demographic_occupation": "",
"demographic_income_from": 123,
"demographic_income_to": 123,
"demographic_living_context": "",
"internal_compass_job_to_be_done": "",
"internal_compass_values_and_personality_traits": "",
"internal_compass_motivations": "",
"internal_compass_strategic_goal": "",
"behavioural_map_lifestyle_and_primary_tasks": "",
"behavioural_map_media_consumption": "",
"behavioural_map_typical_quote": "",
"resistance_pain_points": "",
"resistance_purchase_barriers": "",
"resistance_core_questions": "",
"resistance_key_buying_triggers": "",
"connection_product_need": "",
"connection_why_loves_category": "",
"connection_summary": "",
"picture": ""
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
profile_brand: '<string>',
profile_archetype: '<string>',
profile_tag: '<string>',
demographic_country: '<string>',
demographic_language: '<string>',
demographic_age_from: 123,
demographic_age_to: 123,
demographic_gender: '',
demographic_education_level: '',
demographic_education_field: '',
demographic_occupation: '',
demographic_income_from: 123,
demographic_income_to: 123,
demographic_living_context: '',
internal_compass_job_to_be_done: '',
internal_compass_values_and_personality_traits: '',
internal_compass_motivations: '',
internal_compass_strategic_goal: '',
behavioural_map_lifestyle_and_primary_tasks: '',
behavioural_map_media_consumption: '',
behavioural_map_typical_quote: '',
resistance_pain_points: '',
resistance_purchase_barriers: '',
resistance_core_questions: '',
resistance_key_buying_triggers: '',
connection_product_need: '',
connection_why_loves_category: '',
connection_summary: '',
picture: ''
})
};
fetch('https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas', 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.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas",
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([
'profile_brand' => '<string>',
'profile_archetype' => '<string>',
'profile_tag' => '<string>',
'demographic_country' => '<string>',
'demographic_language' => '<string>',
'demographic_age_from' => 123,
'demographic_age_to' => 123,
'demographic_gender' => '',
'demographic_education_level' => '',
'demographic_education_field' => '',
'demographic_occupation' => '',
'demographic_income_from' => 123,
'demographic_income_to' => 123,
'demographic_living_context' => '',
'internal_compass_job_to_be_done' => '',
'internal_compass_values_and_personality_traits' => '',
'internal_compass_motivations' => '',
'internal_compass_strategic_goal' => '',
'behavioural_map_lifestyle_and_primary_tasks' => '',
'behavioural_map_media_consumption' => '',
'behavioural_map_typical_quote' => '',
'resistance_pain_points' => '',
'resistance_purchase_barriers' => '',
'resistance_core_questions' => '',
'resistance_key_buying_triggers' => '',
'connection_product_need' => '',
'connection_why_loves_category' => '',
'connection_summary' => '',
'picture' => ''
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas"
payload := strings.NewReader("{\n \"profile_brand\": \"<string>\",\n \"profile_archetype\": \"<string>\",\n \"profile_tag\": \"<string>\",\n \"demographic_country\": \"<string>\",\n \"demographic_language\": \"<string>\",\n \"demographic_age_from\": 123,\n \"demographic_age_to\": 123,\n \"demographic_gender\": \"\",\n \"demographic_education_level\": \"\",\n \"demographic_education_field\": \"\",\n \"demographic_occupation\": \"\",\n \"demographic_income_from\": 123,\n \"demographic_income_to\": 123,\n \"demographic_living_context\": \"\",\n \"internal_compass_job_to_be_done\": \"\",\n \"internal_compass_values_and_personality_traits\": \"\",\n \"internal_compass_motivations\": \"\",\n \"internal_compass_strategic_goal\": \"\",\n \"behavioural_map_lifestyle_and_primary_tasks\": \"\",\n \"behavioural_map_media_consumption\": \"\",\n \"behavioural_map_typical_quote\": \"\",\n \"resistance_pain_points\": \"\",\n \"resistance_purchase_barriers\": \"\",\n \"resistance_core_questions\": \"\",\n \"resistance_key_buying_triggers\": \"\",\n \"connection_product_need\": \"\",\n \"connection_why_loves_category\": \"\",\n \"connection_summary\": \"\",\n \"picture\": \"\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"profile_brand\": \"<string>\",\n \"profile_archetype\": \"<string>\",\n \"profile_tag\": \"<string>\",\n \"demographic_country\": \"<string>\",\n \"demographic_language\": \"<string>\",\n \"demographic_age_from\": 123,\n \"demographic_age_to\": 123,\n \"demographic_gender\": \"\",\n \"demographic_education_level\": \"\",\n \"demographic_education_field\": \"\",\n \"demographic_occupation\": \"\",\n \"demographic_income_from\": 123,\n \"demographic_income_to\": 123,\n \"demographic_living_context\": \"\",\n \"internal_compass_job_to_be_done\": \"\",\n \"internal_compass_values_and_personality_traits\": \"\",\n \"internal_compass_motivations\": \"\",\n \"internal_compass_strategic_goal\": \"\",\n \"behavioural_map_lifestyle_and_primary_tasks\": \"\",\n \"behavioural_map_media_consumption\": \"\",\n \"behavioural_map_typical_quote\": \"\",\n \"resistance_pain_points\": \"\",\n \"resistance_purchase_barriers\": \"\",\n \"resistance_core_questions\": \"\",\n \"resistance_key_buying_triggers\": \"\",\n \"connection_product_need\": \"\",\n \"connection_why_loves_category\": \"\",\n \"connection_summary\": \"\",\n \"picture\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shareofmodel.ai/v1/organizations/{organization_id}/workspaces/{workspace_id}/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"profile_brand\": \"<string>\",\n \"profile_archetype\": \"<string>\",\n \"profile_tag\": \"<string>\",\n \"demographic_country\": \"<string>\",\n \"demographic_language\": \"<string>\",\n \"demographic_age_from\": 123,\n \"demographic_age_to\": 123,\n \"demographic_gender\": \"\",\n \"demographic_education_level\": \"\",\n \"demographic_education_field\": \"\",\n \"demographic_occupation\": \"\",\n \"demographic_income_from\": 123,\n \"demographic_income_to\": 123,\n \"demographic_living_context\": \"\",\n \"internal_compass_job_to_be_done\": \"\",\n \"internal_compass_values_and_personality_traits\": \"\",\n \"internal_compass_motivations\": \"\",\n \"internal_compass_strategic_goal\": \"\",\n \"behavioural_map_lifestyle_and_primary_tasks\": \"\",\n \"behavioural_map_media_consumption\": \"\",\n \"behavioural_map_typical_quote\": \"\",\n \"resistance_pain_points\": \"\",\n \"resistance_purchase_barriers\": \"\",\n \"resistance_core_questions\": \"\",\n \"resistance_key_buying_triggers\": \"\",\n \"connection_product_need\": \"\",\n \"connection_why_loves_category\": \"\",\n \"connection_summary\": \"\",\n \"picture\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"archived": true,
"deleted": true,
"picture": "<string>"
}Authorizations
Path Parameters
A UUID string identifying the organization.
A UUID string identifying the workspace.
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data*/*
Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255ai- aimanual- manualcsv- csv
Available options:
ai, manual, csv Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Was this page helpful?
⌘I