Upload documents, trigger parsing, and manage other assessment operations.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AllianceBioversityCIAT/alliance-risk-analysis-tool/llms.txt
Use this file to discover all available pages before exploring further.
Request upload URL
Endpoint
POST /api/assessments/:id/documents
Path parameters
Assessment ID (UUID).
Request body
Name of the file to upload.Maximum length: 255 characters.
MIME type of the file.Currently only
application/pdf is supported. Maximum length: 50 characters.File size in bytes.Maximum: 26,214,400 bytes (25 MB).
Response
Pre-signed S3 URL for uploading the file. Valid for 15 minutes.
Unique document identifier (UUID). Use this to trigger parsing after upload.
Upload workflow
Trigger document parsing
Endpoint
POST /api/assessments/:id/documents/:documentId/parse
Starts an asynchronous job to parse the uploaded document using AWS Bedrock AI models.
Path parameters
Assessment ID (UUID).
Document ID returned from the upload URL request.
Response
Returns a job ID (string) to poll for completion status.Job polling
UseGET /api/jobs/:id to check the parsing status:
PENDING- Job is queuedPROCESSING- AI is analyzing the documentCOMPLETED- Parsing finished successfullyFAILED- Parsing failed (checkerrorfield)
When parsing starts, the assessment status automatically changes to
ANALYZING.Add comment
Endpoint
POST /api/assessments/:id/comments
Path parameters
Assessment ID (UUID).
Request body
Comment text.Maximum length: 2000 characters.
Response
Comment ID (UUID).
Assessment ID this comment belongs to.
ID of the user who created the comment.
Comment text.
ISO 8601 timestamp of creation.
Get comments
Endpoint
GET /api/assessments/:id/comments
Retrieve all comments for an assessment, ordered chronologically.
Path parameters
Assessment ID (UUID).