Compliance Assessment Service API Documentation
  • Overview
  • Core Concepts
  • API Reference
Product
  • Pricing
Company
  • About Us
  • Contact
Legal
  • Privacy Policy

© 2026 Precognox. All rights reserved.

Information
info-controller
    Get application infoget
framework-controller
    List all frameworksgetList framework criteriaget
assessment-controller
    Submit assessmentpostPoll assessment statusgetGet assessment resultsgetCancel assessmentdelete
assessment-feedback-controller
    Submit assessment feedbackpost
content-processing-controller
    Submit file for content processingpostSubmit URL for content processingpostGet content processing statusgetBatch status checkpostGet extracted contentgetCancel content processingdeleteRefresh content processingpost
Schemas
Compliance Manager Backend API
Compliance Manager Backend API

assessment-controller


Submit assessment

POST
https://dev-compliance-assessment.precognox.com
/api/v1/assessments

Submit an asynchronous assessment request with documents, URLs, and assessment configuration. Returns an assessment process ID for polling.

Submit assessment › Headers

KEYCLOAK_SUBJECT
​string · uuid · required

UUID of the authenticated partner (set by the API gateway from the Keycloak access token)

Submit assessment › Request Body

​AssessmentRequestConfiguration · required

Configuration for an assessment request

documents
​string[] · application/octet-stream

Documents to be assessed (PDF, DOCX)

urls
​string[]

URLs to be assessed

Submit assessment › Responses

Accepted — assessment process created. Use the Location header to poll for status.

Response containing the status and results of an assessment process
AssessmentsResponseDTO
assessmentProcessId
​string

Unique identifier of the assessment process

status
​string · enum

Current status of the assessment process

Enum values:
PENDING
RUNNING
COMPLETED
FAILED
CANCELLED
completion
​number · float · min: 0 · max: 1

Completion percentage of the assessment process (0.0 to 1.0)

​AssessmentResponseDTO[]

List of assessment responses (populated when status is COMPLETED)

POST/api/v1/assessments
curl --request POST \ --url https://dev-compliance-assessment.precognox.com/api/v1/assessments \ --header 'Content-Type: multipart/form-data' \ --header 'KEYCLOAK_SUBJECT: <string>' \ --form 'configuration={"expertId":"expertId","frameworkCodeName":"frameworkCodeName","criteriaCodeNames":["string"],"assessmentProcessId":"assessmentProcessId","llmCall":true}' \ --form documents=string \ --form urls=string
shell
Example Request Body
{ "configuration": { "expertId": "expertId", "frameworkCodeName": "frameworkCodeName", "criteriaCodeNames": [ "string" ], "assessmentProcessId": "assessmentProcessId", "llmCall": true }, "documents": [ "string" ], "urls": [ "string" ] }
json
Example Responses
{ "assessmentProcessId": "assessmentProcessId", "status": "PENDING", "completion": 0, "responses": [ { "id": 0, "assessmentProcessId": "assessmentProcessId", "inputTokens": 0, "outputTokens": 0, "processingTimeMs": 0, "expertId": "expertId", "fileNames": [ "string" ], "urls": [ "string" ], "frameworkCodeName": "frameworkCodeName", "criterionCodeName": "criterionCodeName", "category": "category", "rationale": "rationale", "citations": [ { "fileName": "fileName", "content": "content", "heading": "heading", "startIndex": 0, "endIndex": 0 } ] } ] }
json
application/json

Poll assessment status

GET
https://dev-compliance-assessment.precognox.com
/api/v1/assessments/{assessmentProcessId}/status

Poll the current status and completion percentage of an assessment process. Returns 303 See Other with a Location header pointing to the results endpoint when the process is completed.

Poll assessment status › path Parameters

assessmentProcessId
​string · required

Unique identifier of the assessment process

Poll assessment status › Headers

KEYCLOAK_SUBJECT
​string · uuid · required

UUID of the authenticated partner (set by the API gateway from the Keycloak access token)

Poll assessment status › Responses

OK — assessment is still in progress

Response containing the status and results of an assessment process
AssessmentsResponseDTO
assessmentProcessId
​string

Unique identifier of the assessment process

status
​string · enum

Current status of the assessment process

Enum values:
PENDING
RUNNING
COMPLETED
FAILED
CANCELLED
completion
​number · float · min: 0 · max: 1

Completion percentage of the assessment process (0.0 to 1.0)

​AssessmentResponseDTO[]

List of assessment responses (populated when status is COMPLETED)

GET/api/v1/assessments/{assessmentProcessId}/status
curl --request GET \ --url https://dev-compliance-assessment.precognox.com/api/v1/assessments/:assessmentProcessId/status \ --header 'KEYCLOAK_SUBJECT: <string>'
shell
Example Responses
{ "assessmentProcessId": "assessmentProcessId", "status": "PENDING", "completion": 0, "responses": [ { "id": 0, "assessmentProcessId": "assessmentProcessId", "inputTokens": 0, "outputTokens": 0, "processingTimeMs": 0, "expertId": "expertId", "fileNames": [ "string" ], "urls": [ "string" ], "frameworkCodeName": "frameworkCodeName", "criterionCodeName": "criterionCodeName", "category": "category", "rationale": "rationale", "citations": [ { "fileName": "fileName", "content": "content", "heading": "heading", "startIndex": 0, "endIndex": 0 } ] } ] }
json
application/json

Get assessment results

GET
https://dev-compliance-assessment.precognox.com
/api/v1/assessments/{assessmentProcessId}/result

Retrieve the results of a completed assessment process, including category, rationale, and citations for each criterion assessed.

Get assessment results › path Parameters

assessmentProcessId
​string · required

Unique identifier of the assessment process

Get assessment results › Headers

KEYCLOAK_SUBJECT
​string · uuid · required

UUID of the authenticated partner (set by the API gateway from the Keycloak access token)

Get assessment results › Responses

OK

​AssessmentResponseDTO[]
Result of a single criterion assessment
AssessmentResponseDTO
id
​integer · int64

Unique identifier of the assessment result

assessmentProcessId
​string

Unique identifier of the assessment process

inputTokens
​integer · int32

Input tokens used in the assessment

outputTokens
​integer · int32

Output tokens generated by the assessment

processingTimeMs
​integer · int64

Processing time in milliseconds

expertId
​string

Identifier of the expert who performed the assessment

fileNames
​string[]

List of file names associated with the assessment

urls
​string[]

List of URLs associated with the assessment

frameworkCodeName
​string

Code name of the framework used in the assessment

criterionCodeName
​string

Code name of the criterion used in the assessment

category
​string

Category of the assessment result (e.g. SUFFICIENTLY REGULATED, NOT SUFFICIENTLY REGULATED, MISSING)

rationale
​string

Rationale behind the assessment result (markdown formatted)

​CitationDTO[]

List of citations supporting the assessment result

GET/api/v1/assessments/{assessmentProcessId}/result
curl --request GET \ --url https://dev-compliance-assessment.precognox.com/api/v1/assessments/:assessmentProcessId/result \ --header 'KEYCLOAK_SUBJECT: <string>'
shell
Example Responses
[ { "id": 0, "assessmentProcessId": "assessmentProcessId", "inputTokens": 0, "outputTokens": 0, "processingTimeMs": 0, "expertId": "expertId", "fileNames": [ "string" ], "urls": [ "string" ], "frameworkCodeName": "frameworkCodeName", "criterionCodeName": "criterionCodeName", "category": "category", "rationale": "rationale", "citations": [ { "fileName": "fileName", "content": "content", "heading": "heading", "startIndex": 0, "endIndex": 0 } ] } ]
json
application/json

Cancel assessment

DELETE
https://dev-compliance-assessment.precognox.com
/api/v1/assessments/{assessmentProcessId}

Cancel an ongoing assessment process. Only processes in PENDING or RUNNING status can be cancelled.

Cancel assessment › path Parameters

assessmentProcessId
​string · required

Unique identifier of the assessment process

Cancel assessment › Headers

KEYCLOAK_SUBJECT
​string · uuid · required

UUID of the authenticated partner (set by the API gateway from the Keycloak access token)

Cancel assessment › Responses

OK — assessment cancelled

Response containing the status and results of an assessment process
AssessmentsResponseDTO
assessmentProcessId
​string

Unique identifier of the assessment process

status
​string · enum

Current status of the assessment process

Enum values:
PENDING
RUNNING
COMPLETED
FAILED
CANCELLED
completion
​number · float · min: 0 · max: 1

Completion percentage of the assessment process (0.0 to 1.0)

​AssessmentResponseDTO[]

List of assessment responses (populated when status is COMPLETED)

DELETE/api/v1/assessments/{assessmentProcessId}
curl --request DELETE \ --url https://dev-compliance-assessment.precognox.com/api/v1/assessments/:assessmentProcessId \ --header 'KEYCLOAK_SUBJECT: <string>'
shell
Example Responses
{ "assessmentProcessId": "assessmentProcessId", "status": "PENDING", "completion": 0, "responses": [ { "id": 0, "assessmentProcessId": "assessmentProcessId", "inputTokens": 0, "outputTokens": 0, "processingTimeMs": 0, "expertId": "expertId", "fileNames": [ "string" ], "urls": [ "string" ], "frameworkCodeName": "frameworkCodeName", "criterionCodeName": "criterionCodeName", "category": "category", "rationale": "rationale", "citations": [ { "fileName": "fileName", "content": "content", "heading": "heading", "startIndex": 0, "endIndex": 0 } ] } ] }
json
application/json

framework-controllerassessment-feedback-controller