File links

Take in a file the files Worker stored (the Worker's own call)

Where file links are served from Cloudflare, the files Worker calls this after storing one PUT to an upload link, with the same link and the object's key. The API checks the object in the bucket (its key and size) before taking it in. Callers never need it: the PUT answers with the file.

post/api/files/{id}/stored

Request

  • Base URL: https://audo.ai
  • URL: https://audo.ai/api/files/{id}/stored
  • Auth: none required

Path parameters

idstring required

Query parameters

tstring required

The token from the link

Request body

keystring required

Response

OK

idstring required
kind'original' | 'output' required
status'awaiting_upload' | 'processing' | 'ready' | 'invalid' | 'deleted' required
filenamestring required
contentTypestring required
sizeBytesinteger nullable required
durationSecondsnumber nullable required
formatstring nullable required

The container, such as wav or mp4

hasVideoboolean required
hasAudioboolean required

False for a video without sound, which only replace_audio takes

pricesobject nullable required

Credits each tool costs to process this file, once its length is known

sourceJobIdstring nullable required
createdAtstring required

ISO 8601 time

expiresAtstring required

ISO 8601 time

Changes

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