---
title: "List Functions"
method: GET
path: "/functions"
tags: ["functions"]
---

# List Functions

`GET /functions`

List existing functions with the most recent revision in the current project

## Query parameters

- `name` string, nullable — Filter functions by name
- `sort` string, nullable — Sort the functions by name or created_at, use '-' to sort in descending order
- `offset` integer, nullable — The offset of the page of functions to return when paginating
- `limit` integer, nullable — The number of functions to return per page when paginating

## Response `200`

Successful Response

- PaginatedResponseListFunctionsResponseItem
  - `meta` Meta, required
    - `total_count` integer, required — Total number of items in the collection
  - `data` ListFunctionsResponseItem[], required — List of items returned in the response
    - `id` string, uuid, required — The ID of the function
    - `name` string, required — The name of the function
    - `description` string, nullable — The description of the function
    - `instructions` string, nullable — The instructions of the function
    - `model` union
      - string
      - Model
        - `name` string, required
        - `extra_headers` object, nullable
        - `options` object, nullable
      - object
      - union[]
        - union
          - string
          - Model
            - `name` string, required
            - `extra_headers` object, nullable
            - `options` object, nullable
          - object
    - `revision_id` string, uuid, required — The ID of the latest revision of the function
    - `is_v3` boolean — Whether this function has been executed through the v3 API

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required (out of credits)
- `404` — Not Found
- `422` — Request Validation Error

---

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