Create a persona from a blueprint
Authorization
BearerAuth AuthorizationBearer <token>
MagickMind API key (mm_...) or user JWT, sent as Authorization: Bearer <token>. /v1/chat/completions accepts an API key only. JWTs (not mm_ keys) may alternatively be passed as a ?token= query parameter.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/persona/from-blueprint" \ -H "Content-Type: application/json" \ -d '{ "blueprint_id": "string", "name": "string", "role": "string" }'{ "persona": { "active_version": "string", "artifact_id": "string", "background_story": "string", "created_by": "string", "id": "string", "name": "string", "role": "string", "tones": [ "string" ], "traits": [ "string" ], "updated_by": "string" }, "version": { "constraints": [ { "constraint": { "allowed_values": [ "string" ], "learning_rate": 0, "max_bound": 0, "min_bound": 0, "target": { "numeric_value": 0, "string_list_value": [ "string" ], "string_value": "string" } }, "lock": "HARD", "trait_ref": "string", "value": { "numeric_value": 0, "string_list_value": [ "string" ], "string_value": "string" } } ], "created_at": "string", "dyadic": { "confidence_threshold": 0, "enabled": true, "initial_weight": 0, "learnable_traits": [ "string" ], "max_relationships": 0, "max_weight": 0 }, "growth": { "boundaries": [ { "excluded_values": [ "string" ], "max_value": 0, "min_value": 0, "reason": "string", "trait_ref": "string" } ], "domain_rates": { "behavior": 0, "identity": 0, "narrative": 0 }, "goal_states": [ { "attraction_strength": 0, "description": "string", "id": "string", "trait_targets": { "property1": 0, "property2": 0 } } ], "triggers": [ { "affected_traits": [ "string" ], "condition": "string", "direction": "toward_target", "id": "string", "rate_multiplier": 0 } ], "type": "FIXED" }, "id": "string", "is_active": true, "persona_id": "string", "version": "string" }}{ "error": { "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "request_id": "string", "errors": [ { "field": "string", "message": "string" } ] }}{ "error": { "type": "string", "title": "string", "status": 0, "detail": "string", "instance": "string", "request_id": "string", "errors": [ { "field": "string", "message": "string" } ] }}