Skip to main content
POST
Upload a voice sample

Authorizations

Authorization
string
header
required

Send your API key in the Authorization header:

Create keys in the Followr app under Settings > API keys. A key acts as its user, with that user's role in each company.

Path Parameters

id
integer
required

The ID of the saved voice.

Required range: x >= 1

Body

application/json

Send url for the server to fetch the file, or leave it out to get an upload URL.

filename
string
required

The file name with extension, for example holiday-latte.png. The stored file keeps the extension; folders and anything after ? or # are dropped.

Maximum string length: 255
Example:

"holiday-latte.png"

visibility
enum<string>
default:private

public: a permanent URL. private: a signed URL that expires after 12 hours. Use public for media you publish.

Available options:
private,
public
Example:

"public"

url
string<uri>

A public http or https URL to download during the request (50 MB, 15 seconds, 5 redirects max; image, video, audio or application/octet-stream content type). Leave it out to get a presigned_url.

Example:

"https://images.example.com/press/holiday-latte.png"

mime_type
string | null

Only used for the extension when filename has none. The stored mime_type is measured at analysis.

Maximum string length: 255
Pattern: ^[\w\-.+]+\/[\w\-.+]+$
Example:

"image/png"

width
integer

Width in pixels (pictures and videos), kept until analysis. Send it with height.

Example:

1080

height
integer

Height in pixels (pictures and videos), kept until analysis. Send it with width.

Example:

1350

Response

Created. Has presigned_url when you didn't send url.

data
object
required

A stored file: an image, a video, an audio track or a document. Files belong to other resources (a user's avatar, an asset's image, a post's cover) and are returned with include.