---
title: "POST /v1/search-functions/{functionId}/invoke"
method: POST
path: "/v1/search-functions/{functionId}/invoke"
tags: ["V1Search"]
---

# POST /v1/search-functions/{functionId}/invoke

`POST /v1/search-functions/{functionId}/invoke`

## Path parameters

- `functionId` string, required

## Query parameters

- `sampleCount` integer
- `includeData` boolean

## Request body

- SearchInvokeInput
  - `sampleId` string, nullable
  - `data` IFunctionInput
    - `size` integer

## Response `200`

Invoke succeeded

- SearchSample[]
  - `sampleId` string, nullable
  - `distance` number, double
  - `externalId` string, nullable
  - `data` IFunctionInput
    - `size` integer

---

[API](https://skmtc.dev/nyckel/apis/nyckel-v1-api.md) · [All operations](https://skmtc.dev/nyckel/apis/nyckel-v1-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nyckel/nyckel-v1-api/revisions/b183d0887428/schema)
