---
raw: true
search:
  tags:
    - Spaces
    - POST
seo:
  description: >-
    Create named files for chunked or direct HTTPS intake. Keep operationId
    stable when… Reference for the POST /v1/uploads endpoint in the Spacefast
    Partner API.
sidebar:
  label: Create a resumable upload
  badge: POST
title: Create a resumable upload
type: openapi-operation
---
Create named files for chunked or direct HTTPS intake. Keep operationId stable when retrying creation. Uploads expire after 24 hours and survive MCP reconnections.

`POST /v1/uploads`

**Request body** (`application/json`, required)

- `operationId` (string, required) — Stable retry identity for this upload creation.
- `teamId` (string)
- `spaceId` (string)
- `files` (object[], required)

Request body example:

```json
{
  "operationId": "string",
  "teamId": "string",
  "spaceId": "string",
  "files": [
    {
      "path": "string",
      "contentType": "string"
    }
  ]
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "teamId": "string",
    "spaceId": "string",
    "status": "open",
    "acceptedBytes": 0,
    "expiresAt": "string",
    "files": [
      {
        "id": "string",
        "path": "string",
        "contentType": "string",
        "status": "open",
        "acceptedBytes": 0,
        "nextChunkIndex": 0,
        "size": 0,
        "sha256": "string",
        "gitBlobSha": "string"
      }
    ]
  }
}
```
