import { OctosparkClient } from '@octospark/sdk'
const client = new OctosparkClient({
token: process.env.OCTOSPARK_TOKEN
})
const response = await client.personas.createPersona({
teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
body: {},
})import os
from octospark_sdk import OctosparkClient
client = OctosparkClient(token=os.environ["OCTOSPARK_TOKEN"])
response = client.personas.create_persona(
teamId=os.environ.get("OCTOSPARK_TEAM_ID", "teamId"),
body={}
)octospark personas create-persona \
--request '{"path":{"teamId":"teamId"},"body":{}}'use reqwest::Client;
use std::env;
#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
let client = Client::new();
let base_url = env::var("OCTOSPARK_API_URL").unwrap_or_else(|_| "https://api.octospark.ai".to_string());
let team_id = env::var("OCTOSPARK_TEAM_ID").unwrap_or_else(|_| "teamId".to_string());
let url = format!("{}/v1/teams/{}/personas", base_url.trim_end_matches('/'), team_id);
let token = env::var("OCTOSPARK_TOKEN").expect("OCTOSPARK_TOKEN");
let mut request = client.post(url).bearer_auth(token);
request = request.json(&serde_json::json!({}));
let response = request.send().await?;
println!("{}", response.text().await?);
Ok(())
}import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as http;
Future<void> main() async {
final baseUrl = Platform.environment['OCTOSPARK_API_URL'] ?? 'https://api.octospark.ai';
final token = Platform.environment['OCTOSPARK_TOKEN'];
final teamId = Platform.environment['OCTOSPARK_TEAM_ID'] ?? 'teamId';
final url = '${baseUrl.replaceFirst(RegExp(r'/$'), '')}/v1/teams/$teamId/personas';
final uri = Uri.parse(url);
final headers = {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
};
final response = await http.post(
uri,
headers: headers,
body: jsonEncode({}),
);
print(response.body);
}curl --request POST \
--url https://api-staging.octospark.ai/v1/teams/{teamId}/personas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mode": "generated",
"origin": "synthetic_person",
"profile": {
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
}
],
"avatarAttributes": {
"gender": "<string>",
"skinTone": "<string>",
"skinClarity": "<string>",
"faceShape": "<string>",
"jawline": "<string>",
"cheekbones": "<string>",
"chin": "<string>",
"hairStyle": "<string>",
"hairColor": "<string>",
"hairLength": "<string>",
"hairTexture": "<string>",
"eyeShape": "<string>",
"eyeColor": "<string>",
"eyebrowShape": "<string>",
"noseShape": "<string>",
"earShape": "<string>",
"lipShape": "<string>",
"bodyType": "<string>",
"heightImpression": "<string>",
"shoulderWidth": "<string>",
"styleAesthetic": "<string>",
"moles": "<string>",
"underEyes": "<string>",
"freckles": "<string>",
"dimples": "<string>",
"hairHighlights": "<string>",
"tattoos": "<string>",
"beardStyle": "<string>",
"piercings": "<string>",
"glasses": "<string>",
"defaultJewelry": "<string>",
"defaultHeadwear": "<string>",
"scars": "<string>",
"birthmarks": "<string>",
"teethGap": "<string>"
}
},
"idempotencyKey": "<string>",
"referenceAssets": [
{
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"portrayedAge": 45,
"isReference": true,
"isPrimary": true,
"sortOrder": 123
}
]
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.octospark.ai/v1/teams/{teamId}/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([
'mode' => 'generated',
'origin' => 'synthetic_person',
'profile' => [
'displayName' => '<string>',
'dateOfBirth' => '<string>',
'biography' => '<string>',
'careerExperiences' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'summary' => '<string>',
'isCurrent' => true,
'organization' => '<string>',
'industry' => '<string>',
'startedAt' => '<string>',
'endedAt' => '<string>'
]
],
'avatarAttributes' => [
'gender' => '<string>',
'skinTone' => '<string>',
'skinClarity' => '<string>',
'faceShape' => '<string>',
'jawline' => '<string>',
'cheekbones' => '<string>',
'chin' => '<string>',
'hairStyle' => '<string>',
'hairColor' => '<string>',
'hairLength' => '<string>',
'hairTexture' => '<string>',
'eyeShape' => '<string>',
'eyeColor' => '<string>',
'eyebrowShape' => '<string>',
'noseShape' => '<string>',
'earShape' => '<string>',
'lipShape' => '<string>',
'bodyType' => '<string>',
'heightImpression' => '<string>',
'shoulderWidth' => '<string>',
'styleAesthetic' => '<string>',
'moles' => '<string>',
'underEyes' => '<string>',
'freckles' => '<string>',
'dimples' => '<string>',
'hairHighlights' => '<string>',
'tattoos' => '<string>',
'beardStyle' => '<string>',
'piercings' => '<string>',
'glasses' => '<string>',
'defaultJewelry' => '<string>',
'defaultHeadwear' => '<string>',
'scars' => '<string>',
'birthmarks' => '<string>',
'teethGap' => '<string>'
]
],
'idempotencyKey' => '<string>',
'referenceAssets' => [
[
'assetId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'portrayedAge' => 45,
'isReference' => true,
'isPrimary' => true,
'sortOrder' => 123
]
]
]),
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-staging.octospark.ai/v1/teams/{teamId}/personas"
payload := strings.NewReader("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\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://api-staging.octospark.ai/v1/teams/{teamId}/personas")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.octospark.ai/v1/teams/{teamId}/personas")
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 \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api-staging.octospark.ai/v1/teams/{teamId}/personas' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"mode": "generated",
"origin": "synthetic_person",
"profile": {
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
}
],
"avatarAttributes": {
"gender": "<string>",
"skinTone": "<string>",
"skinClarity": "<string>",
"faceShape": "<string>",
"jawline": "<string>",
"cheekbones": "<string>",
"chin": "<string>",
"hairStyle": "<string>",
"hairColor": "<string>",
"hairLength": "<string>",
"hairTexture": "<string>",
"eyeShape": "<string>",
"eyeColor": "<string>",
"eyebrowShape": "<string>",
"noseShape": "<string>",
"earShape": "<string>",
"lipShape": "<string>",
"bodyType": "<string>",
"heightImpression": "<string>",
"shoulderWidth": "<string>",
"styleAesthetic": "<string>",
"moles": "<string>",
"underEyes": "<string>",
"freckles": "<string>",
"dimples": "<string>",
"hairHighlights": "<string>",
"tattoos": "<string>",
"beardStyle": "<string>",
"piercings": "<string>",
"glasses": "<string>",
"defaultJewelry": "<string>",
"defaultHeadwear": "<string>",
"scars": "<string>",
"birthmarks": "<string>",
"teethGap": "<string>"
}
},
"idempotencyKey": "<string>",
"referenceAssets": [
{
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"portrayedAge": 45,
"isReference": true,
"isPrimary": true,
"sortOrder": 123
}
]
}'import Foundation
let parameters = [
"mode": "generated",
"origin": "synthetic_person",
"profile": [
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
[
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
]
],
"avatarAttributes": [
"gender": "<string>",
"skinTone": "<string>",
"skinClarity": "<string>",
"faceShape": "<string>",
"jawline": "<string>",
"cheekbones": "<string>",
"chin": "<string>",
"hairStyle": "<string>",
"hairColor": "<string>",
"hairLength": "<string>",
"hairTexture": "<string>",
"eyeShape": "<string>",
"eyeColor": "<string>",
"eyebrowShape": "<string>",
"noseShape": "<string>",
"earShape": "<string>",
"lipShape": "<string>",
"bodyType": "<string>",
"heightImpression": "<string>",
"shoulderWidth": "<string>",
"styleAesthetic": "<string>",
"moles": "<string>",
"underEyes": "<string>",
"freckles": "<string>",
"dimples": "<string>",
"hairHighlights": "<string>",
"tattoos": "<string>",
"beardStyle": "<string>",
"piercings": "<string>",
"glasses": "<string>",
"defaultJewelry": "<string>",
"defaultHeadwear": "<string>",
"scars": "<string>",
"birthmarks": "<string>",
"teethGap": "<string>"
]
],
"idempotencyKey": "<string>",
"referenceAssets": [
[
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"portrayedAge": 45,
"isReference": true,
"isPrimary": true,
"sortOrder": 123
]
]
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api-staging.octospark.ai/v1/teams/{teamId}/personas")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))using RestSharp;
var options = new RestClientOptions("https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer <token>");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer <token>");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}")
val request = Request.Builder()
.url("https://api-staging.octospark.ai/v1/teams/{teamId}/personas")
.post(body)
.addHeader("Authorization", "Bearer <token>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute(){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "real_person",
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
}
],
"avatarAttributes": {},
"selectedElevenLabsVoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"archivedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"issues": [
{
"_tag": "Pointer",
"path": [
"<string>"
],
"message": "<string>"
}
],
"message": "<string>",
"_tag": "HttpApiDecodeError"
}{
"message": "<string>",
"_tag": "Unauthorized"
}{
"message": "<string>",
"_tag": "PaymentRequired"
}{
"message": "<string>",
"_tag": "Forbidden"
}{
"message": "<string>",
"_tag": "NotFound"
}{
"message": "<string>",
"_tag": "Conflict",
"code": "<string>",
"currentRevision": 123
}{
"message": "<string>",
"code": "<string>",
"_tag": "UnprocessableEntity"
}{
"message": "<string>",
"_tag": "TooManyRequests",
"code": "<string>",
"retryAfterSeconds": 123
}{
"message": "<string>",
"_tag": "InternalError"
}Create persona
Create an imported or generated persona and retain its original references. Generated creation uses the payload idempotencyKey; imported creation can send Idempotency-Key. Reuse the original body after a lost response to resume setup or return the same current persona without another identity pack. Changed requests return 409; archived or deleted personas return 404.
import { OctosparkClient } from '@octospark/sdk'
const client = new OctosparkClient({
token: process.env.OCTOSPARK_TOKEN
})
const response = await client.personas.createPersona({
teamId: process.env.OCTOSPARK_TEAM_ID ?? "teamId",
body: {},
})import os
from octospark_sdk import OctosparkClient
client = OctosparkClient(token=os.environ["OCTOSPARK_TOKEN"])
response = client.personas.create_persona(
teamId=os.environ.get("OCTOSPARK_TEAM_ID", "teamId"),
body={}
)octospark personas create-persona \
--request '{"path":{"teamId":"teamId"},"body":{}}'use reqwest::Client;
use std::env;
#[tokio::main]
async fn main() -> Result<(), reqwest::Error> {
let client = Client::new();
let base_url = env::var("OCTOSPARK_API_URL").unwrap_or_else(|_| "https://api.octospark.ai".to_string());
let team_id = env::var("OCTOSPARK_TEAM_ID").unwrap_or_else(|_| "teamId".to_string());
let url = format!("{}/v1/teams/{}/personas", base_url.trim_end_matches('/'), team_id);
let token = env::var("OCTOSPARK_TOKEN").expect("OCTOSPARK_TOKEN");
let mut request = client.post(url).bearer_auth(token);
request = request.json(&serde_json::json!({}));
let response = request.send().await?;
println!("{}", response.text().await?);
Ok(())
}import 'dart:convert';
import 'dart:io';
import 'package:http/http.dart' as http;
Future<void> main() async {
final baseUrl = Platform.environment['OCTOSPARK_API_URL'] ?? 'https://api.octospark.ai';
final token = Platform.environment['OCTOSPARK_TOKEN'];
final teamId = Platform.environment['OCTOSPARK_TEAM_ID'] ?? 'teamId';
final url = '${baseUrl.replaceFirst(RegExp(r'/$'), '')}/v1/teams/$teamId/personas';
final uri = Uri.parse(url);
final headers = {
'Authorization': 'Bearer $token',
'Content-Type': 'application/json',
};
final response = await http.post(
uri,
headers: headers,
body: jsonEncode({}),
);
print(response.body);
}curl --request POST \
--url https://api-staging.octospark.ai/v1/teams/{teamId}/personas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mode": "generated",
"origin": "synthetic_person",
"profile": {
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
}
],
"avatarAttributes": {
"gender": "<string>",
"skinTone": "<string>",
"skinClarity": "<string>",
"faceShape": "<string>",
"jawline": "<string>",
"cheekbones": "<string>",
"chin": "<string>",
"hairStyle": "<string>",
"hairColor": "<string>",
"hairLength": "<string>",
"hairTexture": "<string>",
"eyeShape": "<string>",
"eyeColor": "<string>",
"eyebrowShape": "<string>",
"noseShape": "<string>",
"earShape": "<string>",
"lipShape": "<string>",
"bodyType": "<string>",
"heightImpression": "<string>",
"shoulderWidth": "<string>",
"styleAesthetic": "<string>",
"moles": "<string>",
"underEyes": "<string>",
"freckles": "<string>",
"dimples": "<string>",
"hairHighlights": "<string>",
"tattoos": "<string>",
"beardStyle": "<string>",
"piercings": "<string>",
"glasses": "<string>",
"defaultJewelry": "<string>",
"defaultHeadwear": "<string>",
"scars": "<string>",
"birthmarks": "<string>",
"teethGap": "<string>"
}
},
"idempotencyKey": "<string>",
"referenceAssets": [
{
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"portrayedAge": 45,
"isReference": true,
"isPrimary": true,
"sortOrder": 123
}
]
}
'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-staging.octospark.ai/v1/teams/{teamId}/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([
'mode' => 'generated',
'origin' => 'synthetic_person',
'profile' => [
'displayName' => '<string>',
'dateOfBirth' => '<string>',
'biography' => '<string>',
'careerExperiences' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'summary' => '<string>',
'isCurrent' => true,
'organization' => '<string>',
'industry' => '<string>',
'startedAt' => '<string>',
'endedAt' => '<string>'
]
],
'avatarAttributes' => [
'gender' => '<string>',
'skinTone' => '<string>',
'skinClarity' => '<string>',
'faceShape' => '<string>',
'jawline' => '<string>',
'cheekbones' => '<string>',
'chin' => '<string>',
'hairStyle' => '<string>',
'hairColor' => '<string>',
'hairLength' => '<string>',
'hairTexture' => '<string>',
'eyeShape' => '<string>',
'eyeColor' => '<string>',
'eyebrowShape' => '<string>',
'noseShape' => '<string>',
'earShape' => '<string>',
'lipShape' => '<string>',
'bodyType' => '<string>',
'heightImpression' => '<string>',
'shoulderWidth' => '<string>',
'styleAesthetic' => '<string>',
'moles' => '<string>',
'underEyes' => '<string>',
'freckles' => '<string>',
'dimples' => '<string>',
'hairHighlights' => '<string>',
'tattoos' => '<string>',
'beardStyle' => '<string>',
'piercings' => '<string>',
'glasses' => '<string>',
'defaultJewelry' => '<string>',
'defaultHeadwear' => '<string>',
'scars' => '<string>',
'birthmarks' => '<string>',
'teethGap' => '<string>'
]
],
'idempotencyKey' => '<string>',
'referenceAssets' => [
[
'assetId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'portrayedAge' => 45,
'isReference' => true,
'isPrimary' => true,
'sortOrder' => 123
]
]
]),
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-staging.octospark.ai/v1/teams/{teamId}/personas"
payload := strings.NewReader("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\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://api-staging.octospark.ai/v1/teams/{teamId}/personas")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.octospark.ai/v1/teams/{teamId}/personas")
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 \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}"
response = http.request(request)
puts response.read_body$headers=@{}
$headers.Add("Authorization", "Bearer <token>")
$headers.Add("Content-Type", "application/json")
$response = Invoke-WebRequest -Uri 'https://api-staging.octospark.ai/v1/teams/{teamId}/personas' -Method POST -Headers $headers -ContentType 'application/json' -Body '{
"mode": "generated",
"origin": "synthetic_person",
"profile": {
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
}
],
"avatarAttributes": {
"gender": "<string>",
"skinTone": "<string>",
"skinClarity": "<string>",
"faceShape": "<string>",
"jawline": "<string>",
"cheekbones": "<string>",
"chin": "<string>",
"hairStyle": "<string>",
"hairColor": "<string>",
"hairLength": "<string>",
"hairTexture": "<string>",
"eyeShape": "<string>",
"eyeColor": "<string>",
"eyebrowShape": "<string>",
"noseShape": "<string>",
"earShape": "<string>",
"lipShape": "<string>",
"bodyType": "<string>",
"heightImpression": "<string>",
"shoulderWidth": "<string>",
"styleAesthetic": "<string>",
"moles": "<string>",
"underEyes": "<string>",
"freckles": "<string>",
"dimples": "<string>",
"hairHighlights": "<string>",
"tattoos": "<string>",
"beardStyle": "<string>",
"piercings": "<string>",
"glasses": "<string>",
"defaultJewelry": "<string>",
"defaultHeadwear": "<string>",
"scars": "<string>",
"birthmarks": "<string>",
"teethGap": "<string>"
}
},
"idempotencyKey": "<string>",
"referenceAssets": [
{
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"portrayedAge": 45,
"isReference": true,
"isPrimary": true,
"sortOrder": 123
}
]
}'import Foundation
let parameters = [
"mode": "generated",
"origin": "synthetic_person",
"profile": [
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
[
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
]
],
"avatarAttributes": [
"gender": "<string>",
"skinTone": "<string>",
"skinClarity": "<string>",
"faceShape": "<string>",
"jawline": "<string>",
"cheekbones": "<string>",
"chin": "<string>",
"hairStyle": "<string>",
"hairColor": "<string>",
"hairLength": "<string>",
"hairTexture": "<string>",
"eyeShape": "<string>",
"eyeColor": "<string>",
"eyebrowShape": "<string>",
"noseShape": "<string>",
"earShape": "<string>",
"lipShape": "<string>",
"bodyType": "<string>",
"heightImpression": "<string>",
"shoulderWidth": "<string>",
"styleAesthetic": "<string>",
"moles": "<string>",
"underEyes": "<string>",
"freckles": "<string>",
"dimples": "<string>",
"hairHighlights": "<string>",
"tattoos": "<string>",
"beardStyle": "<string>",
"piercings": "<string>",
"glasses": "<string>",
"defaultJewelry": "<string>",
"defaultHeadwear": "<string>",
"scars": "<string>",
"birthmarks": "<string>",
"teethGap": "<string>"
]
],
"idempotencyKey": "<string>",
"referenceAssets": [
[
"assetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"portrayedAge": 45,
"isReference": true,
"isPrimary": true,
"sortOrder": 123
]
]
] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://api-staging.octospark.ai/v1/teams/{teamId}/personas")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = [
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))using RestSharp;
var options = new RestClientOptions("https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
using RestSharp;
var options = new RestClientOptions("https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
request.AddJsonBody("{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer <token>");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, stdout);
curl_easy_setopt(hnd, CURLOPT_URL, "https://api-staging.octospark.ai/v1/teams/{teamId}/personas");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Authorization: Bearer <token>");
headers = curl_slist_append(headers, "Content-Type: application/json");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}");
CURLcode ret = curl_easy_perform(hnd);val client = OkHttpClient()
val mediaType = MediaType.parse("application/json")
val body = RequestBody.create(mediaType, "{\n \"mode\": \"generated\",\n \"origin\": \"synthetic_person\",\n \"profile\": {\n \"displayName\": \"<string>\",\n \"dateOfBirth\": \"<string>\",\n \"biography\": \"<string>\",\n \"careerExperiences\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"summary\": \"<string>\",\n \"isCurrent\": true,\n \"organization\": \"<string>\",\n \"industry\": \"<string>\",\n \"startedAt\": \"<string>\",\n \"endedAt\": \"<string>\"\n }\n ],\n \"avatarAttributes\": {\n \"gender\": \"<string>\",\n \"skinTone\": \"<string>\",\n \"skinClarity\": \"<string>\",\n \"faceShape\": \"<string>\",\n \"jawline\": \"<string>\",\n \"cheekbones\": \"<string>\",\n \"chin\": \"<string>\",\n \"hairStyle\": \"<string>\",\n \"hairColor\": \"<string>\",\n \"hairLength\": \"<string>\",\n \"hairTexture\": \"<string>\",\n \"eyeShape\": \"<string>\",\n \"eyeColor\": \"<string>\",\n \"eyebrowShape\": \"<string>\",\n \"noseShape\": \"<string>\",\n \"earShape\": \"<string>\",\n \"lipShape\": \"<string>\",\n \"bodyType\": \"<string>\",\n \"heightImpression\": \"<string>\",\n \"shoulderWidth\": \"<string>\",\n \"styleAesthetic\": \"<string>\",\n \"moles\": \"<string>\",\n \"underEyes\": \"<string>\",\n \"freckles\": \"<string>\",\n \"dimples\": \"<string>\",\n \"hairHighlights\": \"<string>\",\n \"tattoos\": \"<string>\",\n \"beardStyle\": \"<string>\",\n \"piercings\": \"<string>\",\n \"glasses\": \"<string>\",\n \"defaultJewelry\": \"<string>\",\n \"defaultHeadwear\": \"<string>\",\n \"scars\": \"<string>\",\n \"birthmarks\": \"<string>\",\n \"teethGap\": \"<string>\"\n }\n },\n \"idempotencyKey\": \"<string>\",\n \"referenceAssets\": [\n {\n \"assetId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"portrayedAge\": 45,\n \"isReference\": true,\n \"isPrimary\": true,\n \"sortOrder\": 123\n }\n ]\n}")
val request = Request.Builder()
.url("https://api-staging.octospark.ai/v1/teams/{teamId}/personas")
.post(body)
.addHeader("Authorization", "Bearer <token>")
.addHeader("Content-Type", "application/json")
.build()
val response = client.newCall(request).execute(){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"teamId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"origin": "real_person",
"displayName": "<string>",
"dateOfBirth": "<string>",
"biography": "<string>",
"careerExperiences": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"summary": "<string>",
"isCurrent": true,
"organization": "<string>",
"industry": "<string>",
"startedAt": "<string>",
"endedAt": "<string>"
}
],
"avatarAttributes": {},
"selectedElevenLabsVoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": 123,
"archivedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"issues": [
{
"_tag": "Pointer",
"path": [
"<string>"
],
"message": "<string>"
}
],
"message": "<string>",
"_tag": "HttpApiDecodeError"
}{
"message": "<string>",
"_tag": "Unauthorized"
}{
"message": "<string>",
"_tag": "PaymentRequired"
}{
"message": "<string>",
"_tag": "Forbidden"
}{
"message": "<string>",
"_tag": "NotFound"
}{
"message": "<string>",
"_tag": "Conflict",
"code": "<string>",
"currentRevision": 123
}{
"message": "<string>",
"code": "<string>",
"_tag": "UnprocessableEntity"
}{
"message": "<string>",
"_tag": "TooManyRequests",
"code": "<string>",
"retryAfterSeconds": 123
}{
"message": "<string>",
"_tag": "InternalError"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Reuse this key and the original body after a lost response. Changed requests return 409. For generated creation, this header must match the payload idempotencyKey.
1 - 512Path Parameters
Team (workspace) id (UUID). Discover ids via the list teams endpoint or the agent context.
Body
- Option 1
- Option 2
generated synthetic_person Show child attributes
Show child attributes
a string at most 512 character(s) long
1 - 512a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$an array of at most 100 item(s)
100Show child attributes
Show child attributes
Persona image requests use google/gemini-3.1-pro-image. Omit modelId or provide that value. New requests for another model are rejected before setup or generation; matching accepted requests retain their original replay behaviour.
1 - 512Response
Success
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$real_person, synthetic_person a string matching the pattern ^\d{4}-\d{2}-\d{2}$
^\d{4}-\d{2}-\d{2}$an array of at most 100 item(s)
100Show child attributes
Show child attributes
Show child attributes
Show child attributes
a Universally Unique Identifier
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$an integer