Static Ads Lab
Concepts

Design packs

Curated sets of swipe files. Make your own, or start from the StaticAds.ai packs.

A design pack is an ordered set of swipe files, such as "Winter sale" or "Founder story". Packs make it easy to build a campaign from a consistent family of designs. ID prefix: dp_. Scopes: design_packs:read / design_packs:write.

StaticAds.ai publishes its own packs (is_managed: true). They are read-only and appear while the StaticAds.ai Design Packs data source is on (see Swipe files). Duplicate one to get an editable copy.

Fields

FieldTypeNotes
idstringdp_…
title, descriptionstring
is_managedbooleantrue for StaticAds.ai packs
item_countnumberDesigns in the pack (up to 500)
previewsarray[{ swipe_file_id, image_url, width, height }]
matched_item_countnumberPresent when you filter the list by swipe file attributes
created_byobject or null{ profile_id, name }
archived_at, created_at, updated_atstring

Endpoints

MethodPathWhat it does
GET/v1/design-packsList. Filters: search, ids, archived, order_by, order, and swipe file filters (industry, ad_format, aspect_ratio, awareness_stage, swipe_file_ids, …) to find packs containing matching designs
POST/v1/design-packsCreate (title, optional description, swipe_file_ids)
GET/v1/design-packs/{id}Get
PATCH/v1/design-packs/{id}Rename or change the description
POST/v1/design-packs/{id}/archive / unarchive
POST/v1/design-packs/{id}/duplicateCopy any pack into one you own
DELETE/v1/design-packs/{id}Delete the pack. Its designs stay in your swipe file
GET/v1/design-packs/{id}/itemsThe pack's designs, with the same filters and pagination as GET /v1/swipe-files
POST/v1/design-packs/{id}/itemsAdd swipe_file_ids. Designs already in the pack come back in already_present
DELETE/v1/design-packs/{id}/itemsRemove swipe_file_ids

Build one ad per design in a pack

const { data: designs } = await sal(`/v1/design-packs/${packId}/items?aspect_ratio=4:5&limit=6`);

await sal(`/v1/campaigns/${campaignId}/ads`, {
  method: "POST",
  idempotencyKey: crypto.randomUUID(),
  body: {
    ads: designs.map((design) => ({
      product_id: productId,
      audience_id: audienceId,
      reference: { swipe_file_id: design.id },
    })),
  },
});

To pick the closest designs in a pack for an idea, search inside it: POST /v1/swipe-files/search with design_pack_id.