---
title: "Get JavaScript customization for a campaign block"
method: GET
path: "/studio-campaigns/{campaign_id}/js-customizations/{block_id}"
tags: ["Campaign Studio"]
---

# Get JavaScript customization for a campaign block

`GET /studio-campaigns/{campaign_id}/js-customizations/{block_id}`

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.

## Path parameters

- `campaign_id` integer, required
- `block_id` string, required

## Query parameters

- `published` boolean

## Response `200`

Success

- JavaScriptCustomization — Versioned custom HTML/CSS/JS snippet attached to a Campaign.
  - `_id` string — MongoDB identifier
  - `campaign_id` integer — Associated campaign ID
  - `block_id` string — Block identifier
  - `html_content` string — Custom HTML/CSS/JS content as a string
  - `status` 'draft' | 'published' | 'scanning' | 'failed' — Status of the customization
  - `version` integer — Version number per (campaign_id, block_id)
  - `published_at` string, date-time, nullable — Timestamp when promoted to published
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `403` — Forbidden or feature not enabled
- `404` — Not found

---

[API](https://skmtc.net/gofundme/apis/gofundme-pro-api.md) · [All operations](https://skmtc.net/gofundme/apis/gofundme-pro-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gofundme/gofundme-pro-api/versions/d22bb925eeed/schema)
