---
title: "Report the project's source-of-truth state"
method: GET
path: "/projects/{id}/source-export"
tags: ["Projects", "Git Connections"]
---

# Report the project's source-of-truth state

`GET /projects/{id}/source-export`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/source-export`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Volcano stores the source of the functions and frontend it runs for a
project. This reports whether that source has been written to the
connected repository, and whether the repository has taken over as the
project's source of truth.

`mode` is `platform`, `git_exporting`, `git_pending`, or `git`. Export
enters `git_exporting` before reading stored source. GitHub's signed
push event confirms that the initial commit reached the production
branch. That push or a newer production push changes the mode to
`git_pending` when it starts a deployment. `exported_at` records that
transition.

A successful Git run completes the transition when it matches the
recorded repository, production branch, and root directory and actually
dispatches every recorded resource. Ordinary production-branch pushes
deploy without changing a platform-managed project's source ownership.

## Path parameters

- `id` string, uuid, required

## Response `200`

The project's source-of-truth state

- ProjectSourceExportState: The project's source of truth and any pending Git transition.
  - `mode` 'platform' | 'git_exporting' | 'git_pending' | 'git', required
  - `transition_started_at` string, date-time, nullable, required: When source export started, cleared if an incomplete transition is canceled.
  - `exported_at` string, date-time, nullable, required: When the initial export push entered deployment, or when a transition was canceled after its commit was reserved. Once set, the one-time export is consumed.
  - `handed_over_at` string, date-time, nullable, required: When a complete production-branch deployment first proved the repository could drive the project, null until then. Once set, the repository is the project's source of truth.

## Other responses

- `401`: Unauthorized - invalid or missing token
- `403`: Forbidden - project not owned by the caller
- `404`: Project not found
- `500`: Internal server error
- `501`: Source export is not available in this deployment mode

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 6 breaking, 10 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `404`
  - …12 more
- **2026-09-04** `c2ec82fb8ce8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/source-export/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
