Postato Docs
API ReferenceMedia

Generate presigned upload URL

Request a presigned PUT URL to upload a media file directly to storage. Call POST /media/:id/confirm after the upload completes.

POST
/v1/workspaces/{workspaceId}/media/upload-url
AuthorizationBearer <token>

API key in the format smcp_<64 hex chars>.

In: header

Path Parameters

workspaceId*string

Workspace ULID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.postato.com.br/v1/workspaces/string/media/upload-url" \  -H "Content-Type: application/json" \  -d '{    "mimeType": "string"  }'
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "details": null
}
{
  "error": "string",
  "message": "string",
  "details": null
}