curl --request POST \
--url https://pria.praxislxp.com/api/user/uploadPicture \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"imageData": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
}
'{
"success": true,
"url": "https://hiimpria.ai/uploads/6430d02554cd4e00403e8b05/profile_1738332000000_abc12345.png",
"message": "Picture has been uploaded to your document collection successfully"
}Upload profile picture
Uploads a profile picture from base64-encoded image data. Saves the file to the user’s home directory, creates a RAG upload record for the file, and updates the user’s profile picture URL. Supported formats are png, jpeg, jpg, gif, and webp. Maximum file size is 5MB.
curl --request POST \
--url https://pria.praxislxp.com/api/user/uploadPicture \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"imageData": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
}
'{
"success": true,
"url": "https://hiimpria.ai/uploads/6430d02554cd4e00403e8b05/profile_1738332000000_abc12345.png",
"message": "Picture has been uploaded to your document collection successfully"
}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
Base64 encoded image data with data URI prefix. Supported formats: png, jpeg, jpg, gif, webp. Maximum decoded size: 5MB.
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="
Response
Picture uploaded successfully. The file is saved to disk, a RAG upload record is created, and the user's profile picture URL is updated.
Was this page helpful?