Skip to main content
POST
/
api
/
agents
/
{id}
/
upload-pdf
Upload source PDF
curl --request POST \
  --url https://agent-evalserver-production.up.railway.app/api/agents/{id}/upload-pdf \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file'
{
  "success": true,
  "message": "PDF processed successfully",
  "knowledge": {
    "qaPairsStored": 12,
    "usedDefaultFallback": false
  }
}

Authorizations

x-api-key
string
header
required

Platform API key for authenticated account-level API access

Path Parameters

id
string<uuid>
required

Evaluation agent ID.

Body

multipart/form-data
file
file
required

PDF file to process.

Response

PDF processed successfully

success
boolean

Whether the PDF was processed successfully.

Example:

true

message
string

Human-readable processing summary.

Example:

"PDF processed successfully"

knowledge
object

Summary of extracted evaluation knowledge.