POST
/
v1
/
namespace
/
{namespaceId}
/
uploads
/
batch
Create presigned URLs for batch file upload
curl --request POST \
  --url https://api.agentset.ai/v1/namespace/{namespaceId}/uploads/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "files": [
    {
      "fileName": "document.pdf",
      "contentType": "application/pdf",
      "fileSize": 1024
    }
  ]
}'
{
  "success": true,
  "data": [
    {
      "url": "<string>",
      "key": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

namespaceId
string
required

The id of the namespace (prefixed with ns_)

Examples:

"ns_123"

Body

application/json
files
object[]
required
Required array length: 1 - 100 elements

Response

Presigned URLs generated successfully

success
boolean
required
data
object[]
required