Get presigned upload URL
Get a presigned URL to upload files directly to cloud storage (up to 5GB). Returns an uploadUrl and publicUrl. PUT your file to the uploadUrl, then use the publicUrl in your posts.
API key authentication - use your Late API key as a Bearer token
In: header
Name of the file to upload
MIME type of the file
"image/jpeg" | "image/jpg" | "image/png" | "image/webp" | "image/gif" | "video/mp4" | "video/mpeg" | "video/quicktime" | "video/avi" | "video/x-msvideo" | "video/webm" | "video/x-m4v" | "application/pdf"Optional file size in bytes for pre-validation (max 5GB)
Response Body
application/json
application/json
application/json
curl -X POST "https://getlate.dev/api/v1/media/presign" \ -H "Content-Type: application/json" \ -d '{ "filename": "my-video.mp4", "contentType": "video/mp4" }'{
"uploadUrl": "<presigned-upload-url>",
"publicUrl": "https://media.getlate.dev/temp/1234567890_abc123_my-video.mp4",
"key": "temp/1234567890_abc123_my-video.mp4",
"type": "video"
}{
"error": "filename and contentType are required"
}{
"error": "Unauthorized"
}Get YouTube daily views GET
Returns daily view counts for a YouTube video including views, watch time, and subscriber changes. Requires yt-analytics.readonly scope (re-authorization may be needed). Data has a 2-3 day delay. Max 90 days, defaults to last 30 days.
List schedules GET
Returns queue schedules for a profile. Use all=true for all queues, or queueId for a specific one. Defaults to the default queue.