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

    Interface GetPrincipalRequest

    Read the authenticated principal's seller-resolved identity and current standing configuration with this AdCP agent: the same caller-scoped state that sync_principal replaces, plus retained superseded and revoked destination generations. Identity is resolved from authenticated transport and MUST NOT be accepted from request-body fields. The read is side-effect free: it never creates a principal record, issues identifiers, sends proof challenges, or advances the configuration version. Use it to verify a recognized durable identity before configuration, bootstrap expected_configuration_version before a guarded sync, reconcile after local-state loss, and observe destination setup-state transitions such as action_required becoming ready. Prefer sync_principal only when changing state; prefer this task for every read.

    interface GetPrincipalRequest {
        adcp_version?: string;
        adcp_major_version?: number;
        reporting_subscription_page?: {
            subscription_id: string;
            list:
                | "accounts_with_exceptions"
                | "accounts_unauthorized"
                | "prior_versions";
            pagination?: PaginationRequest;
        };
        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.

    reporting_subscription_page?: {
        subscription_id: string;
        list:
            | "accounts_with_exceptions"
            | "accounts_unauthorized"
            | "prior_versions";
        pagination?: PaginationRequest;
    }

    Experimental (media_buy.reporting_subscriptions). Page through one reporting subscription's accounts_with_exceptions, accounts_unauthorized, or prior_versions when the inline list in configuration.reporting_subscriptions is shorter than its count. The response carries the usual result plus reporting_subscription_page. An unknown subscription_id fails with INVALID_REQUEST.

    Type Declaration

    • subscription_id: string

      1

      64

      ^[A-Za-z0-9_.:-]{1,64}$

    • list: "accounts_with_exceptions" | "accounts_unauthorized" | "prior_versions"
    • Optionalpagination?: PaginationRequest
    context?: ContextObject