Moonborn — API · personas
Re-run the generation pipeline (optionally from a chosen step)
POST/v1/personas/{id}/regeneratescope · Bearer (API key or session JWT)
Path parameters
| Field | Type | Description |
|---|---|---|
| idreq | string | Persona id (cuid). |
Request body
| Field | Type | Description |
|---|---|---|
| fromStep | string · "intent_parse" | "soul_draft" | "self_enrich" | "mask_build" | "surface_ground" | "audit" | |
| reason | string |
Responses
202Pipeline scheduled
Body
| Field | Type | Description |
|---|---|---|
| pipelineRunIdreq | string | |
| statusreq | string · "queued" | "running" |
404Persona not found
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X POST https://api.moonborn.co/v1/personas/<id>/regenerate \
-H "Authorization: Bearer $MOONBORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"fromStep": "intent_parse",
"reason": "<string>"
}'TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.personas.regeneratePersona({
id: '<id>',
fromStep: "intent_parse",
reason: "<string>",
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.personas.regenerate_persona(
id="<id>",
from_step="intent_parse",
reason="<string>",
)