---
title: "Get UDF"
method: GET
path: "/v1/organizations/{organizationId}/udfs/{functionName}"
tags: ["UDF"]
---

# Get UDF

`GET /v1/organizations/{organizationId}/udfs/{functionName}`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/udfs/{functionName}`
- Auth: HTTP basic

Returns the latest version of a UDF.

## Path parameters

- `organizationId` string, uuid, required: ID of the requested organization.
- `functionName` string, required: Name of the UDF.

## Response `200`

Successful response.

- object
  - `status` integer, required: HTTP status code.
  - `requestId` string, uuid, required: Unique id assigned to every request. UUIDv4
  - `result` Udf, required
    - `functionName` string, required: Name of the UDF. Unique within the organization.
    - `version` integer, required: Version number of the UDF.
    - `status` 'building' | 'error' | 'ready', required: Build state of this UDF version.
    - `runtime` 'python3.11' | 'native', required: Runtime used to execute the UDF command.
    - `type` 'executable' | 'executable_pool', required: Executable UDF type.
    - `arguments` UdfArgumentOutput[], required: Arguments passed to the UDF command.
      - `name` string, required: Name of the argument. Required for Native and JSONEachRow formats.
      - `type` string, required: ClickHouse data type of the argument.
    - `returnType` string, required: ClickHouse data type of the returned value.
    - `returnName` string, nullable, required: Name of the returned value, or null when unnamed.
    - `poolSize` integer, nullable, required: Command pool size for executable_pool UDFs.
    - `commandReadTimeout` integer, required: Command stdout read timeout in milliseconds.
    - `commandWriteTimeout` integer, required: Command stdin write timeout in milliseconds.
    - `maxCommandExecutionTime` integer, nullable, required: Maximum command execution time in seconds for executable_pool UDFs.
    - `memoryLimitMib` integer, nullable, required: Maximum memory, in MiB, available to each UDF sandbox process. Null uses the sandbox default.
    - `sendChunkHeader` boolean, required: Whether ClickHouse sends a row-count chunk header.
    - `deterministic` boolean, required: Whether ClickHouse may reuse cached query results for this UDF.
    - `format` string, required: Input and output format used by the UDF command.
    - `sandboxType` 'basic' | 'netenable', required: Sandbox isolation level.
    - `sandboxVersion` 'v1' | 'v2' | 'v3', required: Sandbox runtime version.
    - `error` string, nullable, required: Build error, or null when no build error is present.
    - `createdAt` string, date-time, required: Creation timestamp.
    - `updatedAt` string, date-time, required: Last-update timestamp.

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `404`: UDF not found.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-16** `4e1eec98567b`: 2 info
  - the security scope `control-plane:organization:view-udfs` was added to the endpoint's security scheme `basicAuth`
  - the security scope `control-plane:organization:view` was removed from the endpoint's security scheme `basicAuth`

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/udfs/:functionName/get.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
