---
title: "POST /searchDocs"
method: POST
path: "/searchDocs"
tags: ["Search"]
---

# POST /searchDocs

`POST /searchDocs`

Returns Search Documents

## Request body

- SearchRequest
  - `AccessToken` string
  - `PageStart` integer
  - `PageSize` string
  - `Phrases` object[]
    - `Text` string
    - `Fields` string[]
    - `MatchPattern` boolean
    - `OtherFields` boolean
    - `Operator` 'and' | 'or'
    - `ExcludeFields` string[]
  - `Filters` object[]
    - `Field` string
    - `Arguments` object[]
      - `Field` string
      - `Terms` string[]
  - `ResultFields` string[]
  - `Highlights` object
    - `Fields` string[]
    - `PreTag` string
    - `PostTag` string
    - `FragSize` integer
    - `FragCount` integer
  - `Type` integer
  - `Aliases` string[]
  - `SortFields` string[]
  - `Facets` object[]
    - `Field` string
    - `DisplayCount` boolean
    - `Type` integer
    - `Order` integer
  - `EventInfo` object
    - `EventType` string
    - `EventSubtype` string
    - `EventOrder` integer
    - `Application` string
    - `UserId` integer
    - `UserName` string
    - `UserType` string
    - `CompanyId` integer
    - `CompanyName` string
    - `SessionId` string
    - `SearchFrom` string
    - `SearchCategories` string
    - `ProductLineIds` string
    - `ProductLineNames` string
    - `ViewedId` integer
    - `ViewedType` string
    - `ViewedTitle` string

## Response `200`

Token and Token Details

- Search
  - `id` integer
  - `email` string
  - `name` string
  - `searchText` string
  - `featuretoggle` boolean
  - `searchby` string
  - `sortingby` string
  - `description` string
  - `position` integer
  - `filters` object
    - `products` string[]

## Other responses

- `204` — No Content
- `401` — Unauthorized

---

[API](https://skmtc.net/infor/apis/infor-docs-api.md) · [All operations](https://skmtc.net/infor/apis/infor-docs-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infor/infor-docs-api/revisions/c8f0d96c040e/schema)
