uploads

Create upload

Open a ticket for a file from the user machine, content the service has not seen. Send the bytes in one raw HTTPS PUT to the returned url with exactly the returned headers, then call complete_upload. Limits: 2 GB, 30 minutes, 4096 px a side, 50 megapixels. An editor asset, the default purpose, needs its kind. Purpose video_reference stores a trend remake's source video: pass the ready ticket's video_reference.source_url to create_generation. Purpose actor turns a portrait photo of the user, or of someone who agreed to be cast, into an actor: it needs a name, takes jpg, png, webp or gif up to 10 MB and 4096 px a side, and the ready ticket carries actor.id for create_generation.

post/uploads

Request

  • Base URL: https://www.socialfaktory.com/v1
  • URL: https://www.socialfaktory.com/v1/uploads
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Request body

filenamestring required
byte_sizeinteger required
content_typestring required
purpose'editor_asset' | 'video_reference' | 'actor'
kind'video' | 'image' | 'audio' | 'font'
namestring

Response

Create upload

upload_idstring required
statusstring required
urlstring required
headersobject required
expires_ininteger required

Changes

No recorded changes to this operation across all 1 revision of this API.