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.
Authorization
ApiKey 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
}Cancel a post
Cancel a scheduled or pending post by ID. Returns 404 if the post does not exist or is not in a cancellable state.
Upload media (direct stream)
Upload one or more files as multipart/form-data. Files are streamed directly to storage without memory buffering. Returns the created media record(s).