Skip to main content
GET
/
api
/
v1
/
campaigns
/
{campaign_id}
/
playground
/
drafts
Playground Drafts
curl --request GET \
  --url https://api.example.com/api/v1/campaigns/{campaign_id}/playground/drafts \
  --header 'Authorization: Bearer <token>'
{
  "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "batch_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "drafts": [
    {
      "campaign_lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "subject": "<string>",
      "body": "<string>",
      "generated_at": "2023-11-07T05:31:56Z",
      "prompt_version_hash": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://bavlio.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaign_id
string<uuid>
required

Query Parameters

batch_id
string<uuid>
required

Batch ID produced by POST /playground/generate.

Response

Successful Response

Response model for GET /campaigns/:id/playground/drafts?batch_id=....

One-shot fetch — frontend calls this when the batch reaches terminal-all OR on explicit "refresh drafts" user action. Response size can legitimately be large (50 leads × 50KB body = 2.5MB) because it is user-initiated, not a polling endpoint.

campaign_id
string<uuid>
required
batch_id
string<uuid> | null
drafts
PlaygroundDraft · object[]