Skip to main content
POST
/
external
/
datastores
/
file-upload
/
generate-link
/
{id}
Genera un link prefirmado de S3 para subida directa
curl --request POST \
  --url https://app.braviloai.com/api/external/datastores/file-upload/generate-link/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "<string>",
  "fileName": "<string>"
}
'
{
  "id": "<string>",
  "link": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.braviloai.com/llms.txt

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

Genera un URL prefirmado de S3 (válido por 15 minutos) para subir un archivo directamente a S3 sin pasar por el servidor de Bravilo. Ideal para subidas grandes desde el cliente.
Si el datastore es público, no se requiere token de autorización.

Ejemplo

curl -X POST https://app.braviloai.com/api/external/datastores/file-upload/generate-link/${datastoreId} \
-H "Authorization: Bearer ${API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"fileName": "mi-documento.pdf",
"type": "application/pdf"
}'
Después de subir a S3, llamá a /api/external/datastores/file-upload/process/{id} para iniciar el procesamiento.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

ID del datastore

Body

application/json
type
string
required

MIME type del archivo

fileName
string

Response

Link generado exitosamente

id
string