---
title: "Get Python Function"
method: GET
path: "/workflow/python-functions/{function_id}"
tags: ["workflow-python-functions"]
---

# Get Python Function

`GET /workflow/python-functions/{function_id}`

## Request

- Base URL: `https://api.anyreach.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.anyreach.ai/workflow/python-functions/{function_id}`
- Auth: HTTP bearer

## Path parameters

- `function_id` string, uuid, required

## Headers

- `x-anyreach-org` string, nullable: Organization ID for user PATs (pat_ prefix tokens)

## Response `200`

Successful Response

- PythonFunctionSchema
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `disabled` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `created_by` string, nullable
  - `versions` PythonFunctionVersionSchema[]
    - `id` string, uuid, required
    - `function_id` string, uuid, required
    - `function_name` string, required
    - `hash` string, required
    - `dependencies` object
    - `packages` string[]
    - `signature` string, nullable
    - `parameters` string[]
    - `timeout_ms` integer, nullable
    - `memory_mb` integer, nullable
    - `status` 'active' | 'revoked', required
    - `effective_status` 'active' | 'revoked', required
    - `replaced_by` string, uuid, nullable
    - `revoked_by` string, nullable
    - `revoked_at` string, date-time, nullable
    - `revoked_reason` string, nullable
    - `revoked_until` string, date-time, nullable
    - `created_at` string, date-time, required
    - `created_by` string, nullable
    - `source` string, nullable

## Other responses

- `404`: Not found
- `422`: Validation Error

---

[API](https://skmtc.dev/anyreach/apis/anyreach-api.md) - [All operations](https://skmtc.dev/anyreach/apis/anyreach-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anyreach/apis/anyreach-api/revisions/2eddf40c8c93?raw)
