Skip to main content
POST
Deleting and re-analysing evidence is not available to API keys (403; the body is { "error": "Not available for API keys" }, or { "error": "Forbidden" } when the key lacks the endpoint’s permission). Flow and error cases: Per-order origin via ERP.

Authorizations

Authorization
string
header
required

API key generated in Settings > API Keys. Include as Authorization: Bearer <key>.

Body

multipart/form-data
supplierId
string<uuid>
required

The supplier of the supplier link (supplierLinks[].supplierId of the article).

articleId
string<uuid>
required

The article — for per-order origin, the per-order fork's id.

uploadedS3Key
string

The s3Key from POST /api/v1/evidence/upload-url, after the PUT.

uploadedFileName
string

File name; required with uploadedS3Key.

uploadedFileSize
string

Size in bytes (a form field, so a string); required with uploadedS3Key.

uploadedMimeType
string

MIME type; required with uploadedS3Key.

reuseS3Key
string

The s3Key returned by an earlier successful POST /api/v1/evidence. Reuses that company-owned file for this target without another upload; do not send file or uploaded* fields with it.

file
string

The file itself, instead of the uploaded* fields — small files only (at most 4.5 MB, the platform request cap); use the upload URL for anything larger.

evidenceType
enum<string>

Default legal_compliance.

Available options:
legal_compliance,
questionnaire
note
string

Free-text note for the document. It is passed to the document analysis as context.

certificationScheme
string

The certification scheme the document belongs to (e.g. FSC). It is passed to the document analysis as a hint, and the document is then analysed as a risk-mitigation certificate.

allowDuplicate
enum<string>

Send true to store a second copy of a file that a 409 reported as a duplicate.

Available options:
true

Response

Evidence attached

id
string<uuid>
required

The new evidence document's id.

s3Key
string
required

Storage key of the stored file.

fileName
string
required

File name as stored.

fileSize
number
required

Size of the stored file in bytes.

mimeType
string
required

MIME type of the stored file.

message
string
required

Human-readable confirmation, e.g. that the analysis is in progress.