> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# knowledgeEntriesSearch

> List and search the store's knowledge entries as the Knowledge page's knowledge tab does: articles and help center links in one list. `productKnowledgeEntriesSearch` is its Products tab's. `knowledgeEntriesSearchCount` is the total. A text search reads a search index, so an entry changed in the last few seconds can be missing or out of place. Pages are positional, so an entry added or removed while paging can shift one between pages; `knowledgeArticles` and `knowledgeHelpCenterLinks` are the lists to sync from. Pages only the first 10100 results: a page past them is BAD_USER_INPUT.

**Required scopes:** [`commerce_agent_knowledge_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-commerce_agent_knowledge_read)

## Arguments

**after** `String`

Forward pagination cursor — returns entries after it.

**before** `String`

Backward pagination cursor — returns entries before it.

**first** `Int`

Forward pagination: returns the first N entries (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**kinds** `[\[KnowledgeEntryKind!\]](/docs/api-reference/v3/reference/commerce-agent/knowledge-entry-kind)`

Which kinds to list, as the Knowledge page's type filter picks them. Omitted or empty: both.

**last** `Int`

Backward pagination: returns the last N entries (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**reverse** `Boolean`

Reverses the sort: oldest first, or least used first. A text search takes no reverse.

**sort** `[KnowledgeEntrySearchSortKey](/docs/api-reference/v3/reference/commerce-agent/knowledge-entry-search-sort-key)`

Which key to sort by, CREATED\_AT when omitted. A text search sorts by match and takes no sort.

**statuses** `[\[KnowledgeArticleStatus!\]](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)`

Only entries in one of these statuses, as the Knowledge page's status filter picks several. Omitted or empty: every status.

**text** `String`

Only entries whose text matches, at most the 200 best matches, best match first, as the knowledge tab's search finds them. At most 200 characters; longer fails with QUERY\_TOO\_LONG.

## Returns

**knowledgeEntriesSearch** `[KnowledgeEntryConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of KnowledgeEntry items.

**fields**

**edges** `[\[KnowledgeEntryEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

**node** `[KnowledgeEntry!](/docs/api-reference/v3/reference/commerce-agent/knowledge-entry)` *required*

The item at this edge.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the entry was added to knowledge.

**effectiveEndAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the entry stops being retrievable. Null means no end.

**effectiveStartAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the entry becomes retrievable, if `status` is ACTIVE. Null means immediately.

**id** `ID!` *required*

The id of this entry.

**status** `[KnowledgeArticleStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)` *required*

Whether Commerce Agent may use this entry. Combine with the effective window.

**title** `String!` *required*

The entry's title, or a help center link's name, as the Knowledge page shows it.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the entry last changed.

**usageCount** `Int!` *required*

How many messages Commerce Agent used the entry in, the Knowledge page's Uses. Unsent draft replies don't count.

**nodes** `[\[KnowledgeEntry!\]!](/docs/api-reference/v3/reference/commerce-agent/knowledge-entry)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the entry was added to knowledge.

**effectiveEndAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the entry stops being retrievable. Null means no end.

**effectiveStartAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the entry becomes retrievable, if `status` is ACTIVE. Null means immediately.

**id** `ID!` *required*

The id of this entry.

**status** `[KnowledgeArticleStatus!](/docs/api-reference/v3/reference/commerce-agent/knowledge-article-status)` *required*

Whether Commerce Agent may use this entry. Combine with the effective window.

**title** `String!` *required*

The entry's title, or a help center link's name, as the Knowledge page shows it.

**updatedAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When the entry last changed.

**usageCount** `Int!` *required*

How many messages Commerce Agent used the entry in, the Knowledge page's Uses. Unsent draft replies don't count.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

## Example

```graphql theme={null}
query {
  knowledgeEntriesSearch(after: "...", before: "...", first: 10, kinds: ARTICLE, last: 10, reverse: true, sort: CREATED_AT, statuses: ACTIVE, text: "...") {
    nodes {
      createdAt
      effectiveEndAt
      effectiveStartAt
      id
      status
      title
      updatedAt
      usageCount
    }
    pageInfo { hasNextPage endCursor }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.