Skip to main content
POST
/
tasks
/
generate-upload-url
Generate Upload Url
curl --request POST \
  --url https://api.sunbird.ai/tasks/generate-upload-url \
  --header 'Content-Type: application/json' \
  --data '
{
  "file_name": "<string>",
  "content_type": "<string>"
}
'
{
  "upload_url": "<string>",
  "file_id": "<string>",
  "expires_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://sunbirdai.mintlify.app/llms.txt

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

Body

application/json
file_name
string
required
content_type
string
required

Response

Successful Response

upload_url
string
required
file_id
string
required
expires_at
string<date-time>
required