List the personas a user created
curl --request GET \
--url https://api.shareofmodel.ai/v1/personas \
--header 'Authorization: <api-key>'import requests
url = "https://api.shareofmodel.ai/v1/personas"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.shareofmodel.ai/v1/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/personas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shareofmodel.ai/v1/personas"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.shareofmodel.ai/v1/personas")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shareofmodel.ai/v1/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"picture": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_updated": "<string>",
"profile": {
"brand": "<string>",
"archetype": "<string>",
"tag": "<string>"
},
"demographic": {
"age_from": 123,
"age_to": 123,
"gender": "<string>",
"country": "<string>",
"language": "<string>",
"education_level": "<string>",
"education_field": "<string>",
"occupation": "<string>",
"income_from": 123,
"income_to": 123,
"living_context": "<string>"
},
"internal_compass": {
"job_to_be_done": "<string>",
"values_and_personality_traits": "<string>",
"motivations": "<string>",
"strategic_goal": "<string>"
},
"behavioural_map": {
"lifestyle_and_primary_tasks": "<string>",
"media_consumption": "<string>",
"typical_quote": "<string>"
},
"resistance": {
"pain_points": "<string>",
"purchase_barriers": "<string>",
"core_questions": "<string>",
"key_buying_triggers": "<string>"
},
"connection": {
"product_need": "<string>",
"why_loves_category": "<string>",
"summary": "<string>"
},
"version": {
"name": "<string>",
"changes": "<string>",
"source": "ai",
"is_active": true,
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"google_segments_status": "empty"
},
"archived": true
}
],
"count": 123
}Personas
List the personas a user created
Staff only. Lists, across every workspace, what the HAL user given in created_by created, newest first and capped, with the true total in count. Called by the walle admin user profile.
GET
/
v1
/
personas
List the personas a user created
curl --request GET \
--url https://api.shareofmodel.ai/v1/personas \
--header 'Authorization: <api-key>'import requests
url = "https://api.shareofmodel.ai/v1/personas"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.shareofmodel.ai/v1/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/personas",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shareofmodel.ai/v1/personas"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.shareofmodel.ai/v1/personas")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shareofmodel.ai/v1/personas")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"picture": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_updated": "<string>",
"profile": {
"brand": "<string>",
"archetype": "<string>",
"tag": "<string>"
},
"demographic": {
"age_from": 123,
"age_to": 123,
"gender": "<string>",
"country": "<string>",
"language": "<string>",
"education_level": "<string>",
"education_field": "<string>",
"occupation": "<string>",
"income_from": 123,
"income_to": 123,
"living_context": "<string>"
},
"internal_compass": {
"job_to_be_done": "<string>",
"values_and_personality_traits": "<string>",
"motivations": "<string>",
"strategic_goal": "<string>"
},
"behavioural_map": {
"lifestyle_and_primary_tasks": "<string>",
"media_consumption": "<string>",
"typical_quote": "<string>"
},
"resistance": {
"pain_points": "<string>",
"purchase_barriers": "<string>",
"core_questions": "<string>",
"key_buying_triggers": "<string>"
},
"connection": {
"product_need": "<string>",
"why_loves_category": "<string>",
"summary": "<string>"
},
"version": {
"name": "<string>",
"changes": "<string>",
"source": "ai",
"is_active": true,
"created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"google_segments_status": "empty"
},
"archived": true
}
],
"count": 123
}Was this page helpful?
⌘I