@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface ListCollectionsRequest

    Experimental (media_buy.collection_catalog), added in AdCP 3.3. Read the selling agent's catalog of collection cards: look up specific collections by key, or browse with filters and pages. Returns the same core/response-collection.json copies, under the same authority rules, as include_collections on product and proposal reads, and never returns products. Not to be confused with list_collection_lists, which lists buyer-owned collection targeting lists on a governance agent. Side-effect free: the call never provisions an account. It is the bootstrap and repair read for collection_card.* and collection_catalog.bulk_change webhooks, which are registered only through sync_accounts notification_configs; the request takes no push_notification_config, so a call never creates a subscription. Sellers implementing it MUST list media_buy.collection_catalog and media_buy.collection_cards in experimental_features. A seller MUST NOT serve this task to a caller whose adcp_version is below 3.3; it fails the request with UNSUPPORTED_FEATURE.

    interface ListCollectionsRequest {
        adcp_version?: string;
        adcp_major_version?: number;
        idempotency_key?: string;
        context?: ContextObject;
        account?: CanonicalAccountReference;
        collections?: CollectionSelector[];
        filters?: {
            kinds?: CollectionKind[];
            genres_include?: string[];
            genres_exclude?: string[];
            genre_taxonomy?: GenreTaxonomy;
            statuses?: CollectionStatus[];
            languages?: string[];
            talent?: { domain: string; brand_id?: string }[];
            platforms?: string[];
            name_contains?: string;
        };
        pagination?: PaginationRequest;
        if_collections_version?: string;
        ext?: ExtensionObject;
    }
    Index
    adcp_version?: string

    Release-precision AdCP version (VERSION.RELEASE, e.g. "3.0", "3.1", "3.1-beta"). On a request: the buyer's release pin — the seller validates against its supported_versions and returns VERSION_UNSUPPORTED on cross-major mismatch, or downshifts to the highest supported release within the same major. On a response: the release the seller actually served — clients SHOULD validate the response against that release's schema, not against their pin. Patches are not negotiated; surface them as build_version on capabilities for operational visibility. When omitted, falls back to adcp_major_version (deprecated) or server default. Buyers SHOULD emit both adcp_version and adcp_major_version through 3.x to remain compatible with sellers that only read the legacy field. NORMALIZATION: SDKs that read full-semver values from bundle metadata (e.g. ComplianceIndex.published_version = "3.1.0-beta.1") MUST normalize to release-precision ("3.1-beta.1") before emitting on the wire — meta-field values are NOT valid wire values.

    adcp_major_version?: number

    DEPRECATED in favor of adcp_version (release-precision string). Servers MUST continue to honor this field through 3.x. Removed in 4.0. Original semantics: the AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.

    idempotency_key?: string

    Optional replay key accepted uniformly on read calls.

    16

    255

    ^[A-Za-z0-9_.:-]{16,255}$

    context?: ContextObject
    account?: CanonicalAccountReference

    Optional account scope. Only the set of collections visible to the caller may vary by account; the content of a copy for a given (publisher_domain, collection_id) never does. Without account the response is cache_scope public.

    collections?: CollectionSelector[]

    Optional selectors, the same shape as a product's collections, so a buyer can pass a product's selectors through unchanged. A selector with collection_ids is a key lookup; a selector with only publisher_domain means every collection of that publisher that this seller represents. At most 100 collection_ids in total across all selectors; sellers reject more with VALIDATION_ERROR. A key that is unknown or not visible to the caller is omitted from the response without a per-key error. Omit to browse the whole catalog.

    100

    filters?: {
        kinds?: CollectionKind[];
        genres_include?: string[];
        genres_exclude?: string[];
        genre_taxonomy?: GenreTaxonomy;
        statuses?: CollectionStatus[];
        languages?: string[];
        talent?: { domain: string; brand_id?: string }[];
        platforms?: string[];
        name_contains?: string;
    }

    Optional filters, applied with the selectors before pagination. Values within one filter are alternatives (OR); different filters combine with AND. Filters run on the seller's copy, so a match on genre, status, talent or kind is a discovery hint: buyers confirm those fields against the publisher's adagents.json before relying on them for suitability. A seller that cannot apply a filter it receives fails the request with VALIDATION_ERROR and never returns a broader result.

    Type Declaration

    • Optionalkinds?: CollectionKind[]

      Include only collections of these kinds. Same semantics as kinds in collection/collection-list-filters.json.

    • Optionalgenres_include?: string[]

      Include only collections with any of these genres; collections without genre metadata are excluded. Values are interpreted against genre_taxonomy when present. Same semantics as in collection/collection-list-filters.json.

    • Optionalgenres_exclude?: string[]

      Exclude collections tagged with any of these genres, applied after genres_include. Values are interpreted against genre_taxonomy when present.

    • Optionalgenre_taxonomy?: GenreTaxonomy
    • Optionalstatuses?: CollectionStatus[]

      Include only collections with any of these statuses.

    • Optionallanguages?: string[]

      Include only collections whose language matches any of these BCP 47 language ranges under RFC 4647 basic filtering, compared case-insensitively: 'en' matches 'en' and 'en-US', but 'en-US' does not match 'en'.

    • Optionaltalent?: { domain: string; brand_id?: string }[]

      Include only collections with a talent entry whose brand_ref matches any of these brands. Only domain and brand_id are compared, as on talent; brand_id omitted matches any brand_ref at that domain.

    • Optionalplatforms?: string[]

      Include only collections with a distribution entry whose publisher_domain is any of these domains.

    • Optionalname_contains?: string

      Include only collections whose name contains this string, compared case-insensitively.

      1

    pagination?: PaginationRequest
    if_collections_version?: string

    Opaque collections_version from a prior list_collections response for the same scope: the canonicalized collections selectors and filters (arrays compared as sets, pagination.cursor excluded), plus account identity when that response's cache_scope was account. When it matches, the seller returns outcome unchanged without collections. A token from a different scope is a mismatch and gets a full listed response. Unrelated to feed_version and wholesale_feed_version. A webhook-fed mirror repairing after a gap sends its last applied version, never a newer webhook version.

    1