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

    Interface ListTasksRequest

    Request parameters for the list_tasks AdCP tool. This is a 3.x protocol-namespace alias for the legacy AdCP tasks/list reconciliation surface, not a transport-native MCP/A2A tasks/* method. It lists and filters AdCP application-layer async tasks for state reconciliation while preserving the legacy 3.x payload shape.

    interface ListTasksRequest {
        adcp_version?: string;
        adcp_major_version?: number;
        account?: AccountReference;
        filters?: {
            protocol?: AdCPProtocol;
            protocols?: AdCPProtocol[];
            status?: TaskStatus;
            statuses?: TaskStatus[];
            task_type?: TaskType;
            task_types?: TaskType[];
            created_after?: string;
            created_before?: string;
            updated_after?: string;
            updated_before?: string;
            task_ids?: string[];
            context_contains?: string;
            has_webhook?: boolean;
        };
        sort?: {
            field?: | "status"
            | "created_at"
            | "updated_at"
            | "task_type"
            | "protocol";
            direction?: SortDirection;
        };
        pagination?: PaginationRequest;
        include_history?: boolean;
        context?: ContextObject;
        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.

    filters?: {
        protocol?: AdCPProtocol;
        protocols?: AdCPProtocol[];
        status?: TaskStatus;
        statuses?: TaskStatus[];
        task_type?: TaskType;
        task_types?: TaskType[];
        created_after?: string;
        created_before?: string;
        updated_after?: string;
        updated_before?: string;
        task_ids?: string[];
        context_contains?: string;
        has_webhook?: boolean;
    }

    Filter criteria for querying tasks

    Type Declaration

    • Optionalprotocol?: AdCPProtocol
    • Optionalprotocols?: AdCPProtocol[]

      Filter by multiple AdCP protocols

    • Optionalstatus?: TaskStatus
    • Optionalstatuses?: TaskStatus[]

      Filter by multiple task statuses

    • Optionaltask_type?: TaskType
    • Optionaltask_types?: TaskType[]

      Filter by multiple task types

    • Optionalcreated_after?: string

      Filter tasks created after this date (ISO 8601)

      date-time

    • Optionalcreated_before?: string

      Filter tasks created before this date (ISO 8601)

      date-time

    • Optionalupdated_after?: string

      Filter tasks last updated after this date (ISO 8601)

      date-time

    • Optionalupdated_before?: string

      Filter tasks last updated before this date (ISO 8601)

      date-time

    • Optionaltask_ids?: string[]

      Filter by specific task IDs

      100

    • Optionalcontext_contains?: string

      Filter tasks where context contains this text (searches media_buy_id, signal_id, etc.)

    • Optionalhas_webhook?: boolean

      Filter tasks that have webhook configuration when true

    sort?: {
        field?:
            | "status"
            | "created_at"
            | "updated_at"
            | "task_type"
            | "protocol";
        direction?: SortDirection;
    }

    Sorting parameters

    Type Declaration

    • Optionalfield?: "status" | "created_at" | "updated_at" | "task_type" | "protocol"

      Field to sort by

    • Optionaldirection?: SortDirection
    pagination?: PaginationRequest
    include_history?: boolean

    Include full conversation history for each task (may significantly increase response size)

    context?: ContextObject