Skip to content
OpenPostDocs
OpenPostDocs
Media

Create a streaming media upload session

POST/media/upload-session

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Header Parameters

Idempotency-Key?string

Replay key scoped to the caller, Workspace, and operation

Lengthlength <= 200

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/media/upload-session" \  -H "Content-Type: application/json" \  -d '{    "filename": "string",    "size": 0,    "workspace_id": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/CreateMediaUploadSessionResponse.json",  "complete_url": "string",  "deduped": true,  "media_id": "string",  "project_asset_id": "string",  "upload": {    "expires_at": "string",    "headers": {      "property1": "string",      "property2": "string"    },    "method": "string",    "object_key": "string",    "url": "string"  }}