curl --request POST \
--url https://pria.praxislxp.com/api/user/url \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"url": "https://example.com/document.pdf",
"confidential": false,
"skipIndexing": false,
"scrape": false,
"institution": "6631915765bb0a94cfd6ca99",
"selectedCourse": {
"course_id": 123,
"course_name": "<string>",
"assistant": {
"_id": "<string>"
}
},
"selectedAssistant": "6856fa89cbafcff8d98680f5",
"collection": "6631915765bb0a94cfd6ca99",
"account_shared": false
}
'{
"success": true,
"message": "URL ingested successfully",
"code": 1
}Upload content from URL
Downloads or scrapes content from a URL and ingests it into the user’s IP Vault via RAG. Google document URLs (Docs, Sheets, Slides) are automatically detected and read via Google OAuth instead of plain HTTP download. The URL is validated against SSRF in non-dev mode. When an institution is provided, the user’s membership is verified before proceeding.
curl --request POST \
--url https://pria.praxislxp.com/api/user/url \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"url": "https://example.com/document.pdf",
"confidential": false,
"skipIndexing": false,
"scrape": false,
"institution": "6631915765bb0a94cfd6ca99",
"selectedCourse": {
"course_id": 123,
"course_name": "<string>",
"assistant": {
"_id": "<string>"
}
},
"selectedAssistant": "6856fa89cbafcff8d98680f5",
"collection": "6631915765bb0a94cfd6ca99",
"account_shared": false
}
'{
"success": true,
"message": "URL ingested successfully",
"code": 1
}Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT token passed in x-access-token header
Body
URL to download and ingest content from
"https://example.com/document.pdf"
Whether the content is confidential. Only applied when institution is provided; ignored for personal uploads.
When true, the file is stored in the vault but RAG embedding generation is skipped. The file is set to status 'active' (visible in vault) with no embeddings. Default: false.
When true, scrapes webpage content. When false, downloads the file directly.
Institution ID to associate the upload with. Must match the user's institution for regular users.
"6631915765bb0a94cfd6ca99"
Course context for the upload history record
Show child attributes
Show child attributes
Assistant ID for the upload history record (used as fallback if selectedCourse.assistant._id is not set)
"6856fa89cbafcff8d98680f5"
Collection ID to associate the uploaded file with. When provided, the Upload record is linked to this collection.
"6631915765bb0a94cfd6ca99"
When true and institution is set, marks the file as shared across the institution's account
Was this page helpful?