---
title: "Get a draft"
method: GET
path: "/spaces/{spaceId}/drafts/{draftSpaceId}/merge"
tags: ["spaces"]
---

# Get a draft

`GET /spaces/{spaceId}/drafts/{draftSpaceId}/merge`

Gets a draft by the space id and draft space id

## Path parameters

- `spaceId` string, required — Space ID
- `draftSpaceId` string, required — Space ID

## Headers

- `Authorization` string, required
- `X-Disable-Hooks` 'true', required

## Response `200`

Response with status 200

- TypeSpacesSpaceDraftMergeOperationsResponse
  - `data` TypeSpacesSpaceDraftMergeOperations, required
    - `space` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown
    - `workbook` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown
    - `sheet` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown
    - `guidance` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown
    - `document` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown
    - `action` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown
    - `agent` TypeSpacesSpaceDraftMergeOperation[], required
      - `action` string, required
      - `id` string
      - `mergeId` string
      - `jsonPatch` TypeSpacesJSONPatchOperation[]
        - `op` 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test', required
        - `from` string
        - `path` string
        - `value` unknown

## Other responses

- `400` — Error response with status 400
- `404` — Error response with status 404

---

[API](https://skmtc.net/flatfile/apis/api-reference.md) · [All operations](https://skmtc.net/flatfile/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/flatfile/api-reference/revisions/9d3a9979cd96/schema)
