Upload a local audio file
barevalue_uploadFor a recording that is a file on the machine the agent runs on and has no link. Returns an upload_id and a ready curl command that sends the file from that machine (storage answers 204 when the upload worked). The upload_id is then accepted by barevalue_submit_url in place of file_url. One audio file, up to 750 MB and 60 minutes. The upload link works for 15 minutes and an upload can be ordered once. A recording that already has a direct link needs no upload: barevalue_submit_url takes the link itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Barevalue API key (bv_sk_...), as returned by barevalue_register. Not needed when the connection already sends an Authorization: Bearer header. | |
| filename | Yes | Name of the file, with its extension, e.g. "episode-12.mp3" | |
| size_bytes | No | Optional size of the file in bytes. With it, a file that is too large is refused at once |