Swarms
Create a journey
Creates one goal: a persona pursuing a task against one or more environments. To draft several with a model first, use POST /projects/{projectId}/goals/generate — that route persists nothing.
personaId and swarmId must belong to THIS project. Naming one from another project is a 404, not a silent cross-project reference.
Creating a goal does not run it. Launch it with POST /projects/{projectId}/goals/{goalId}/runs.
post/projects/{projectId}/goals
Headers
Idempotency-Keystring
Retry-safe create key. Replaying the SAME key with the SAME body returns the original resource instead of creating a second one; reusing it with a DIFFERENT body is a 409.
Request body
Response
The created goal.