---
title: "Retrieve a function body"
method: GET
path: "/v1/projects/{ref}/functions/{function_slug}/body"
tags: ["Edge Functions"]
---

# Retrieve a function body

`GET /v1/projects/{ref}/functions/{function_slug}/body`

Retrieves a function body for the specified slug and project.

## Path parameters

- `ref` string, required
- `function_slug` string, required

## Response `200`

- StreamableFile

## Other responses

- `401` — Unauthorized
- `403` — Forbidden action
- `429` — Rate limit exceeded
- `500` — Failed to retrieve function body with given slug

---

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