You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a33c497
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(api): video upload and per-target format in the public API (#196)
* feat(api): video upload and per-target format in the public API
Add the presigned video upload to /api/v1, reusing the StoresPresignedVideo
handshake the web composer already uses:
- POST /api/v1/media/video/upload-url returns a signed URL (absolute) and a
server-generated key under the API key's workspace tmp prefix.
- POST /api/v1/media/video registers the uploaded object (key prefix check,
size ceiling, MP4 sniff) and returns the same shape as POST /api/v1/media.
Both sit in the write-scoped group next to POST /media and authorize
create on Post like the image upload.
POST and PATCH /api/v1/posts now accept an optional targets[].format
(feed/reels/story), validated against PostFormat and the formats the
target's platform offers (PostFormat::forPlatform), and persisted on the
target. createDraft now honours formats carried by DraftData.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(api): validate post target formats in a single account lookup
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com>
0 commit comments