Skip to content
AiventicDeveloper Docs
Esc
↑↓navigate↵open⌘Jpreview

Search parts

Search a brand’s parts, optionally for one model and unit.

With model, the search covers the model’s documents for its variant, or for every variant still to choose; serial (needs model) picks the variant when the model has variants to choose from, which can take a few seconds. variantResolved is false when variants are left to choose, when the serial could not confirm a variant that has a single document, when the serial falls outside every option of a group (that group’s documents are left out), or when nothing matched in the variant and the search widened to all of them: the items may then not apply to the unit. A search without a model is always true, since it names no unit to settle: its items are the brand’s, checked against no unit. Each item’s match is strong when the query holds a digit and the part number, letters and digits only, equals it or, from four characters, one contains the other; or when the query has at least one word of three or more characters other than the model and brand, and every such word is a word of the item’s name. Otherwise suggestion: a candidate to check, not a confirmed answer.

Scope: parts:read

GET/v1/part
Authorization
AuthorizationBearer token (aiv_sk_) · headerrequired

An Aiventic API key, sent as Authorization: Bearer aiv_sk_....

Query parameters
qstringrequired

Part number or words to search for.

brandstringrequired

The brand whose parts to search.

modelstring

Only this model's parts.

serialstring

The unit's serial number, to pick the model's variant. Needs model.

limitinteger | string

At most this many results, 1 to 50. Default 20.

matches ^-?(?:0|[1-9]\d*)$
Responses
200

OK

itemsPublicPartHit[]required
Show properties
Array of PublicPartHit
brandstringrequired
partNumberstringrequired
namestring | nullrequired
descriptionstring | nullrequired
modelsstring[]required
modelsTruncatedbooleanrequired
matchPublicPartMatchrequired
Allowed:strongsuggestion
truncatedbooleanrequired
variantResolvedbooleanrequired
400

Bad Request

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
401

Unauthorized

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
403

Forbidden

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
404

Not Found

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
429

Too Many Requests

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
500

Internal Server Error

typestring | null
titlestring | null
statusinteger | string | null
matches ^-?(?:0|[1-9]\d*)$
detailstring | null
instancestring | null
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.aiventic.ai/v1/part?q=string&brand=string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "items": [
    {
      "brand": "string",
      "partNumber": "string",
      "name": null,
      "description": null,
      "models": [
        "string"
      ],
      "modelsTruncated": true,
      "match": "strong"
    }
  ],
  "truncated": true,
  "variantResolved": true
}