Preview analysis products

Preview the products generated by knowledge base file parsing, such as parsing images, in a binary stream.

HTTP
GET $CLOUDSIGMA_API_BASE/semantic-models/{model_id}/artifacts/{file_id}/preview

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. Prepare the personal access token, workspace ID, knowledge base ID and parsed product file ID that have read permissions for the target knowledge base. Confirm that the parsed product is associated with the source file of the target knowledge base.

Request parameters

Shell
curl -L "$CLOUDSIGMA_API_BASE/semantic-models/$MODEL_ID/artifacts/$FILE_ID/preview" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID" \
  -o artifact.bin

file_id must belong to the parsing product of the target knowledge base source file, and any Catalog file ID cannot be used.

Field

Type

Required

Description

model_id

integer

Yes

knowledge base ID.

file_id

string

Yes

The parsing product file ID to preview.

Successful response

Text
HTTP 200 binary stream

Returns 200 and the product binary stream on success, without using a JSON response structure.

Field

Type

Description

Content-Type

HTTP Header

Product MIME type. When not recognized, it is application/octet-stream.

Content-Disposition

HTTP Header

Returns an inline preview of the filename when available.

Last updated on