curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/hostedextractors/preview/result \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "my.known.id"
}
'{
"type": "error",
"externalId": "my.known.id",
"kind": "startup_error",
"createdTime": 1730204346000,
"message": "<string>"
}Required capabilities:
hostedExtractors:READ
Get the result of a preview job. Note that previews may be automatically deleted as soon as 1 hour after they are created.
curl --request POST \
--url https://{cluster}.cognitedata.com/api/v1/projects/{project}/hostedextractors/preview/result \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"externalId": "my.known.id"
}
'{
"type": "error",
"externalId": "my.known.id",
"kind": "startup_error",
"createdTime": 1730204346000,
"message": "<string>"
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
External ID of preview job to get result for.
The external ID provided by the client. Must be unique for the resource type.
255"my.known.id"
Current status of the preview.
Result of a failed preview.
Result type
error The external ID provided by the client. Must be unique for the resource type.
255"my.known.id"
The type of error that occured. If the type is transform_error, raw data is usually available in the /download endpoint.
startup_error, connection_error, transform_error The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
Error message.
Was this page helpful?