Skip to content

Generate an evidence package (async)

POST
/api/v1/systems/{system_id}/evidence
curl --request POST \
--url https://example.com/api/v1/systems/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/evidence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "jurisdictions": [ "EU", "IN" ], "include_policy_checks": true, "include_history": false, "refresh_checks": false, "notes": "example" }'

Queue an evidence package.

Rate limited: each run renders a PDF and uploads to object storage.

system_id
required
System Id
string format: uuid
Media typeapplication/json
EvidenceGenerateRequest
object
jurisdictions
Jurisdictions

Default = all jurisdictions currently applicable to the system.

Any of:
Array<string>
include_policy_checks
Include Policy Checks
boolean
default: true
include_history
Include History
boolean
refresh_checks
Refresh Checks

Re-run policy checks before packaging.

boolean
notes
Notes
Any of:
string
<= 2000 characters

Successful Response

Media typeapplication/json
object
success
required
boolean
default: true
data
required
EvidenceAcceptedResponse
object
package_id
required
Package Id
string format: uuid
task_id
required
Task Id
Any of:
string
status
EvidenceStatus
string
default: pending
Allowed values: pending running completed failed
poll_url
required
Poll Url
string

Example

{
"success": true,
"data": {
"status": "pending"
}
}

Unauthorized

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Forbidden

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Not Found

Media typeapplication/json
ErrorResponse
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
details
Details
correlation_id
Correlation Id
Any of:
string

Example

{
"error": {
"code": "not_found",
"correlation_id": "0f4b9a2e-6c2b-4f0e-9a4a-1c2b3d4e5f60",
"message": "AI system not found."
}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}