---
title: "Get revision source"
method: GET
path: "/api/v1/functions/{function_id}/source"
tags: ["Functions"]
---

# Get revision source

`GET /api/v1/functions/{function_id}/source`

Download URL (and inline files for small sources) of a revision's source zip.

## Path parameters

- `function_id` string, required

## Query parameters

- `revision_id` string, uuid

## Response `200`

Source download

- object
  - `success` boolean
  - `data` object
    - `download_url` string
    - `files` FunctionSourceFile[]
      - `name` string, required
      - `content` string, required
    - `inline_truncated` boolean

## Other responses

- `401` — Authentication required
- `404` — Resource not found

## Changes

- **2026-08-20** `efd3c11c5c92` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/rafftechnologies/apis/raff-api/changes/api/v1/functions/:function_id/source/get.md)

---

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