v1

latestOpenAPI 3.0.02026-08-062903562.2 MB
Campaign Studio

Get JavaScript customization for a campaign block

Requires privateEndpoint auth and organization tag 'custom-embedded-code'. When published=true, returns the latest published version; otherwise returns the latest version regardless of status.

get/studio-campaigns/{campaign_id}/js-customizations/{block_id}

Path parameters

campaign_idinteger required

Campaign ID

block_idstring required

Block identifier

Query parameters

publishedboolean

If true, return latest published; else latest regardless of status

Response

Success

_idstring

MongoDB identifier

campaign_idinteger

Associated campaign ID

block_idstring

Block identifier

html_contentstring

Custom HTML/CSS/JS content as a string

status'draft' | 'published' | 'scanning' | 'failed'

Status of the customization

versioninteger

Version number per (campaign_id, block_id)

published_atstring date-time nullable

Timestamp when promoted to published

created_atstring date-time
updated_atstring date-time

Example response

{
  "_id": "650f2a8c1f1a2b3c4d5e6f70",
  "campaign_id": 12345,
  "block_id": "hyVQjxoz9DV-JX6IemnCI",
  "html_content": "<div>...</div>",
  "status": "draft",
  "version": 1
}