---
title: "Publish a small multipart bundle"
method: POST
path: "/temps"
tags: ["Publish"]
---

# Publish a small multipart bundle

`POST /temps`

## Request

- Base URL: `https://api.temp.md`
- URL: `https://api.temp.md/temps`
- Auth: none declared
- TypeScript: <https://skmtc.dev/temp-md/apis/temp-md-public-api/docs/temps/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates an anonymous Temp. Use publish sessions for resumable or larger directory publishing.

## Headers

- `X-Tempmd-Client` string

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: Main artifact, stored as index.html.
  - `title` string
  - `spaMode` boolean

## Response `201`

Published

- CreateTempResult
  - `tempId` string, required
  - `canonicalUrl` string, uri, required
  - `updateToken` string, required
  - `claimToken` string, required
  - `claimLink` string, uri, required
  - `expiresAt` string, date-time, required
  - `hint` string, required

## Other responses

- `400`: Invalid request
- `413`: Request or bundle exceeds an enforced limit
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/temp-md/apis/temp-md-public-api.md) - [All operations](https://skmtc.dev/temp-md/apis/temp-md-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/temp-md/apis/temp-md-public-api/revisions/4753682e1e3a?raw)
