POST /external/v1/studiesUse AI to shape a private Study draft from an intent and an Idea in the API-key workspace. The Study is not started and no participants are invited. Review the guide before use. Managed external connections do not support this operation. Repeat the same request and idempotency key to recover the same draft; changing the request under that key returns a conflict. The key is scoped to the workspace and API key.
Requirements
Request
Parameters
| Name | Type | Description |
|---|---|---|
| context * | object | An Idea reference: { type: "idea", ref: "IDEA-13" }. |
| intent * | string | What the team wants to learn, up to 4,000 characters. |
| moderationMode | enum | self_guided, ai_moderated, or live_interview. |
| idempotencyKey * | string | Stable key for this creation intent, up to 160 characters. |
Responses
The draft was created or returned from an earlier request.
The idempotency key was reused with a different request or its draft no longer exists.
Example Request
/external/v1/studies{
"context": {
"type": "idea",
"ref": "IDEA-13"
},
"intent": "Learn how merchants handle a recent script finding.",
"moderationMode": "live_interview",
"idempotencyKey": "finding-interview-1"
}Example Response
{
"operation": "study_draft_creation",
"deduplicated": false,
"changed": true,
"item": {
"id": "study-uuid",
"publicId": "STUDY-1",
"status": "draft",
"moderationMode": "live_interview",
"participantUrl": null
}
}