---
title: "POST /api/v1/uploads/sessions/complete"
method: POST
path: "/api/v1/uploads/sessions/complete"
---

# POST /api/v1/uploads/sessions/complete

`POST /api/v1/uploads/sessions/complete`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/uploads/sessions/complete`
- Auth: none declared

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- CompleteUploadSessionRequest
  - `uploadToken` string, required

## Response `200`

The session was already completed

- UploadedMedia
  - `id` string, required: Upload id. For file attachments this is the referenceId used in document content and attachment metadata.
  - `kind` 'image' | 'video' | 'file', required
  - `url` string, required
  - `filename` string, required
  - `mimeType` string, required
  - `size` number, required
  - `snippet` string, required: Markdown snippet to insert into document content: an image, a video element, or a ![f>][referenceId] attachment reference.

## Other responses

- `201`: Uploaded media or file attachment
- `400`: Bad request

---

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