---
title: "Search"
method: POST
path: "/api/v1/functions/{function_id}/invocations/search"
tags: ["Function Invocation"]
---

# Search

`POST /api/v1/functions/{function_id}/invocations/search`

Search searches for function invocations with filtering and ordering support
 Each invocation carries its input/output payloads, which can be large — request a small page_size (≤10) to keep responses small.

## Path parameters

- `function_id` string, required — The function ID to search invocations for.

## Request body

- C1ApiFunctionsV1FunctionsInvocationSearchRequestInput — FunctionsInvocationSearchRequest is the request for searching function invocations. Results are returned in descending order by created_at (newest first).
  - `pageSize` integer — The number of results to return per page.
  - `pageToken` string — The pagination token for fetching the next page.

## Response `200`

FunctionsInvocationSearchResponse is the response for searching function invocations.

- C1ApiFunctionsV1FunctionsInvocationSearchResponse — FunctionsInvocationSearchResponse is the response for searching function invocations.
  - `list` C1ApiFunctionsV1FunctionInvocation[], nullable — The list of function invocations, ordered by created_at descending.
    - `commitId` string — The commitId field.
    - `createdAt` string, date-time, nullable
    - `error` string — The error field.
    - `functionId` string — The functionId field.
    - `id` string — The id field.
    - `input` object, nullable
    - `output` object, nullable
    - `status` 'FUNCTION_INVOCATION_STATUS_UNSPECIFIED' | 'FUNCTION_INVOCATION_STATUS_PENDING' | 'FUNCTION_INVOCATION_STATUS_RUNNING' | 'FUNCTION_INVOCATION_STATUS_SUCCESS' | 'FUNCTION_INVOCATION_STATUS_ERROR' — The status field.
    - `updatedAt` string, date-time, nullable
  - `nextPageToken` string — The pagination token for fetching the next page.

## Changes

> 33 revisions in range; 1 could not be searched.

- **2026-03-10** `7fa698b04b81` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/conductorone/apis/c1-api/changes/api/v1/functions/:function_id/invocations/search/post.md)

---

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