---
title: "Get Workspace Sync Package"
method: GET
path: "/workspaces/{workspace_id}/workflows/sync/package"
tags: ["workflows"]
---

# Get Workspace Sync Package

`GET /workspaces/{workspace_id}/workflows/sync/package`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/workflows/sync/package`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Read the managed resources package selection of the source workspace.

## Path parameters

- `workspace_id` string, uuid, required

## Query parameters

- `ref` string, nullable

## Response `200`

Successful Response

- WorkspacePackageRead: The managed resources package selection of the source workspace.
  - `is_source` boolean, required: Whether this workspace is the managed resources source.
  - `ref` string, nullable: Branch the include file was read from.
  - `patterns` string[]: Include file patterns in file order.
  - `resources` WorkspacePackageResource[]: Every syncable resource with its package status.
    - `resource_type` 'workflow' | 'agent_preset' | 'skill' | 'table' | 'case_tag' | 'case_field' | 'case_dropdown' | 'case_duration' | 'variable' | 'secret_metadata', required: Kind of workspace resource that can be synced to and from Git. Every member is adapter-backed: it can be projected to and imported from repository files.
    - `source_id` string, required: Stable Git source id.
    - `local_id` string, uuid, required: Workspace-local resource id.
    - `name` string, required: Human-readable resource name.
    - `path` string, required: Primary repository path of the resource.
    - `pattern` string, required: Include pattern that selects the resource.
    - `status` 'explicit' | 'implied' | 'excluded', required
    - `implied_by` string[]: Names of the explicit resources that need an implied one.
  - `warnings` string[]: Include file problems worth fixing.

## Other responses

- `400`: Bad Request
- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
