---
title: "✨ Get custom metric code"
method: GET
path: "/api/projects/{id}/custom-function"
tags: ["Projects"]
---

# ✨ Get custom metric code

`GET /api/projects/{id}/custom-function`

<Card href="https://humansignal.com/goenterprise">
        <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/>
        <p style="margin-top: 10px; font-size: 14px;">
            This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise)
        </p>
    </Card>
Get the custom metric function code for this project. The server routes to the active cloud provider (AWS Lambda or GCP Cloud Functions) based on the CUSTOM_METRIC_PROVIDER setting.

## Path parameters

- `id` integer, required

## Response `200`

Function code and deployment status

- object
  - `code` string, required
  - `status` 'NotDeployed' | 'Active' | 'Pending' | 'Failed' | 'NotFound' | 'Error', required

---

[API](https://skmtc.net/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.net/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/versions/1b113b8df950/schema)
