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

    items

    Search and paginate archived items (social content) for the current workspace. Order results with the sorting argument, for example by engagement or earned media value: items(sorting: [{sortKey: EARNED_MEDIA_VALUE, sortOrder: DESC}]). Narrow by engagement ranges with filter.engagement.

    Arguments

    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.

    after String
    Cursor for fetching the next page of results.
    customAttributeConditions [CustomAttributeConditionInput!] default []
    Custom attribute filter conditions.
    filter ItemFilterInput default {}
    Filter criteria to narrow down results.
    first Int default 20
    Number of items to return (page size).
    presetId ID
    Filter preset ID. When provided, sorting, filter, and customAttributeConditions are ignored. Must reference a preset with accessor media_deck or collections; pass IDs returned by contentViews / collections queries. Unknown, cross-workspace, or wrong-accessor preset IDs raise a GraphQL error with extensions.code = "WRONG_VIEW_TYPE_FOR_ITEMS".
    sorting [ItemSortingInput!] default [{sortKey: TAKEN_AT, sortOrder: DESC}]
    Sorting instructions to apply to the result set. Defaults to TAKEN_AT DESC. Sort by engagement or earned media value with an ItemSortKey, for example sorting: [{sortKey: EARNED_MEDIA_VALUE, sortOrder: DESC}] or LIKE_COUNT. To limit results to an engagement range, use filter.engagement.

    Returns

    A paginated connection of Item nodes. See Pagination for the connection shape.

    edges [ItemEdge!]!
    List of edges with cursors.
    nodes [Item!]!
    List of items.
    pageInfo PageInfo!
    Pagination information.
    totalCount Int
    Total number of items available.