Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Jump to examples ↓
    Query

    socialProfileView

    Return a single saved Social Profile View by ID for the current workspace, or null if no such view exists here or it is hidden in the Archive app. Pair with socialProfiles(presetId:) to fetch its social profiles.

    Arguments

    id ID! required
    FilterPreset UUID of the social profile view to fetch.

    Returns

    Returns SocialProfileView.

    Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.

    createdAt DateTimeWithZone!
    When the view was created.
    customAttributeConditions JSON!
    Custom-attribute conditions narrowing the filter set, as stored: operator and type hold the lowercase stored values (e.g. "is_not_empty", "text_list"), not the FilterOperator / CustomAttributeType names. The view create and update mutations accept these stored values when the list is passed back as customAttributeConditions through variables, but they validate it as they would any other input: a list the app saved can be refused (for example a list condition with no values, more conditions or values than the limits allow, or a condition on an attribute the workspace no longer has or whose type no longer matches), so check the userErrors when cloning a view this way.
    displaySettings SocialProfileViewDisplaySettings!
    Which columns the Archive app shows for this view. Set with displaySettings on create or update.
    filters JSON!
    Opaque filter blob, stored and echoed back. socialProfiles(presetId:) applies it only with applyViewFilters: true; otherwise it narrows only by this view's customAttributeConditions and sort. Use customAttributeConditions to filter which social profiles the view returns.
    group ViewGroup
    The primary group of this view: the first entry of groups, which is the oldest group it belongs to. Null when the view is ungrouped.
    groups [ViewGroup!]!
    Every view group this view belongs to, oldest group first. The app lets a view sit in several groups; addViewToGroup and removeViewFromGroup change one membership. Empty when the view is ungrouped.
    id ID!
    Unique identifier of this saved view. Use the returned id with socialProfiles(presetId:) to fetch the view's social profiles.
    name String!
    Display name of the view.
    position Int
    Display slot of this view; lower values come first. Inside a ViewGroup member list, or a list filtered by groupId, it is the slot within that group. Elsewhere it is the slot in the default list of this view kind, set by reorderDefaultViewList. Null when the slot is unset. Hidden views are not exposed through the public API.
    showReportingStats Boolean!
    Whether reporting stats are surfaced in the UI for this view.
    sort JSON!
    Sort directives applied when listing social profiles via this view. Each entry is { field, direction }: field is one of media_items_taken_at_max, followers_count, source_tracking, source_content, source_tracking_until, source_last_pulled_at, account_name; direction is ASC or DESC (case-insensitive).
    updatedAt DateTimeWithZone!
    When the view was last updated.