---
title: "Upload a stored object"
method: POST
path: "/v1/spaces/{spaceId}/storage"
tags: ["Spaces"]
---

# Upload a stored object

`POST /v1/spaces/{spaceId}/storage`

## Request

- Base URL: `https://api.spacefast.com`
- URL: `https://api.spacefast.com/v1/spaces/{spaceId}/storage`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Stores one object for the space from the raw request body. The request's `Content-Type` becomes the object's; `filename` is what a person sees in a list and what a download is saved as. The same content policy as a visitor upload applies: executable and active web content is refused.

## Path parameters

- `spaceId` string, required

## Query parameters

- `public` 'true' | 'false'
- `filename` string: Name to store the object under, for display and downloads.

## Response `201`

Response for status 201

- object
  - `$schema` string, uri: Canonical JSON Schema URL for this response body. The server also sends it in the `Link: rel="describedby"` response header.
  - `data` object, required
    - `id` string, required
    - `public` boolean, required
    - `protection` 'commerce'
    - `contentType` string, required
    - `createdAt` string, date-time, required
    - `filename` string
    - `size` integer, required
    - `uploaderId` string, required
    - `sha256` string, required
    - `url` string, required

## Other responses

- `default`: Problem details (RFC 9457). Any 4xx/5xx response is one `application/problem+json` document.

---

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