Skip to main content
POST
/
knowledge-base
/
sources
/
upload
Request KB Source Upload URL
curl --request POST \
  --url https://api.attention.tech/v2/knowledge-base/sources/upload \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Competitive Analysis 2025.pdf"
}
'
{
  "source_id": "f7e8d9c0-b1a2-3456-7890-abcdef123456",
  "upload_url": "https://s3.amazonaws.com/bucket/kb-sources/org-uuid/source-uuid?X-Amz-Algorithm=AWS4-HMAC-SHA256&..."
}

Documentation Index

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

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

Authorizations

Authorization
string
header
required

Body

title
string

Title of the KB source. Optional — if omitted, the server attempts to extract the title from PDF metadata, falling back to 'Untitled upload'.

Maximum string length: 500

Response

Upload URL generated successfully

source_id
string

UUID of the created KB source

upload_url
string

Presigned S3 PUT URL for uploading the file