Skip to main content
POST
/
v1
/
media
/
input
Get upload URL
curl --request POST \
  --url https://api.pyannote.ai/v1/media/input \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "url": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.pyannote.ai/llms.txt

Use this file to discover all available pages before exploring further.

For cases when your file is not public accessible, you can upload your file to the pyannoteAI servers using this endpoint. For a complete guide on uploading files, see the How to Upload Files tutorial.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

The url should be in the form media://object-key where the object-key can be any alpha-numeric string. The object-key is unique to your account API token so there is no risk of collision with other users.

Maximum string length: 255
Pattern: /^media:\/\/[a-zA-Z0-9\-_\.\/]+$/

Response

url
string
required