Skip to main content
POST
/
materials
/
search
Get Materials
curl --request POST \
  --url https://api-v2.production.higg.org/pic-api/v1/materials/search \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-developer-request-token: <api-key>' \
  --data '
{
  "from": 123,
  "size": 123,
  "ids": [
    "<string>"
  ],
  "textSearch": "<string>"
}
'
{
  "from": 123,
  "size": 123,
  "total": 123,
  "results": [
    {
      "_id": "<string>",
      "name": "<string>",
      "type": "<string>",
      "version": "<string>",
      "description": "<string>",
      "dataSource": "<string>",
      "isCustomMaterial": true,
      "imported": true,
      "materialMsiId": "<string>",
      "isSelected": true,
      "code": "<string>"
    }
  ]
}
Use this endpoint to search the BOM (Bill of Materials) material catalog. This returns the materials available for use in product compositions, including both default PIC materials and any MSI-linked custom materials.

Request body params

Field NameData TypeDescription
textSearchstringSearch materials by name.
idsArray<string>Filter by specific material IDs.
fromnumber[DEFAULT: 0] Pagination start index.
sizenumber[DEFAULT: 50] Number of results to return (max 50).
sortobjectSorting configuration { field: string, order: "asc" | "desc" }.

Implementation Details

  • Pagination: Maximum page size is capped at 50 results.
  • Material types: Results include both default PIC materials and custom MSI materials that have been imported into your account.

Authorizations

x-api-key
string
header
required
x-developer-request-token
string
header
required

Body

application/json
from
number<double> | null
size
number<double> | null
ids
string[] | null
sort
object

API Search requests

textSearch
string | null

Response

200 - application/json

Ok

API Search responses

from
number<double>
required
size
number<double>
required
total
number<double>
required
results
object[]
required