---
title: "Get function details"
method: GET
path: "/api/functions/{slug}"
tags: ["Admin"]
---

# Get function details

`GET /api/functions/{slug}`

Get a specific function including its code

## Path parameters

- `slug` string, required

## Response `200`

Function details with code

- FunctionDetails
  - `id` string, uuid, required — Unique identifier for the function
  - `slug` string, required — URL-friendly identifier
  - `name` string, required — Display name for the function
  - `description` string, nullable — Description of what the function does
  - `status` 'draft' | 'active' | 'error', required — Current status of the function
  - `created_at` string, date-time, required — When the function was created
  - `updated_at` string, date-time, required — When the function was last updated
  - `deployed_at` string, date-time, nullable — When the function was last deployed (null if never deployed)
  - `code` string, required — The function's JavaScript/TypeScript code

## Other responses

- `401` — Unauthorized
- `403` — Forbidden - Admin only
- `404` — Function not found
- `500` — Failed to get function

---

[API](https://skmtc.net/insforge/apis/insforge-authentication-api.md) · [All operations](https://skmtc.net/insforge/apis/insforge-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insforge/insforge-authentication-api/versions/a935bb49f932/schema)
