Skip to main content
POST
Get a url to upload a recording

Authorizations

X-API-Key
string
header
required

Your Phrase Platform API token in the X-API-Key header. A missing, invalid or expired token is answered with 401. 403 means the token is valid but the action is not allowed for it.

Path Parameters

projectId
string<uuid>
required

Project ID.

Body

application/json

The file you are going to upload.

fileName
string
required

Name of the file with its extension: mp4, mov, mp3, wav or m4a. No path.

Maximum string length: 255
Pattern: ^[^/\\\u0000]+\.[A-Za-z0-9]{2,5}$
contentType
string

Media type of the file, for example video/mp4 or audio/mpeg. Taken from the extension when left out.

Response

Upload url

Where to upload the file.

recordingId
string<uuid>
required

ID of the recording that will be made from the file. Send it back when you add the recording.

uploadUrl
string<uri>
required

Signed url to PUT the file to.

method
enum<string>
required

Always PUT.

Available options:
PUT
headers
object
required

Headers to send with the upload. They must match, or storage refuses the file.

expiresAt
string<date-time>
required

When the url stops working, 30 minutes after it was made.

maxSizeBytes
integer<int64>
required

Largest file that is accepted.