Unify and manage your data

Create an entity export for a conversation job

Learn more about create an entity export for a conversation job.

Use the Create an entity export for a conversation job to export the per-entity results of a conversation job to a CSV or JSONL file. After the export completes, you can download the file and analyze the results outside Reltio.

HTTP method and endpoint

Use the following HTTP method and endpoint path to create an entity export for a conversation job.

POST {TenantURL}/ai/agentflow/api/v202605/{tenant_id}/lrt/jobs/{conversation_id}/entities/export

The following table describes the endpoint path parameters.

ParameterTypeRequiredDescription
TenantURLStringYesThe base URL for your tenant.
conversation_idStringYesThe unique identifier of the conversation created by the job.
tenant_idStringYesThe tenant identifier.

Request headers

The following request headers must be included.

HeaderValueRequired
Authorization<access_token>Yes
Content-Typeapplication/jsonYes

Request body

The following table describes the request body parameters.

ParameterTypeRequiredDescriptionAccepted values / Default
formatStringNoThe output file format for the export.csv, jsonl. Default: csv
statusStringNoFilters the exported entities by status, for example processed, failed, or needs_review.—
confidenceStringNoFilters the exported entities by confidence band, when the producer emitted one.—
include_conversationBooleanNoWhether to include the full conversation record alongside the exported entities. Set to true to include the record. Set to false to export only the entities.Default: false

Example request

Use the following example to see how a complete request is structured, with headers and a JSON body.

POST {TenantURL}/ai/agentflow/api/v202605/tenant-xyz/lrt/jobs/example-id/entities/export
Authorization: <access_token>
Content-Type: application/json

{
  "format": "<string>",
  "status": "<string>",
  "confidence": "<string>",
  "include_conversation": false
}

Response body

The following table describes the fields returned in the response body.

ParameterTypeDescription
export_idStringThe unique identifier of the entity export.
statusStringThe status of the entity export job: queued, running, completed, or failed.
formatStringThe output file format of the export, as requested.
include_conversationBooleanWhether the export includes the full conversation record, as requested.
filtersObjectThe entity status and confidence filters applied when the export was created.
filters.statusStringThe status filter applied when the export was created, if one was supplied.
filters.confidenceStringThe confidence filter applied when the export was created, if one was supplied.
total_countIntegerThe total number of entities matched for this export.
written_rowsIntegerThe number of entity rows written to the export file.
written_bytesIntegerThe size of the export file, in bytes.
created_atStringThe date and time when the export was created.
completed_atStringThe date and time when the export finished. Empty while the export is in progress.
expires_atStringThe date and time when the download link expires.
filenameStringThe name of the generated export file.
download_urlStringThe URL used to download the completed export file. Empty until the export completes.
email_sent_atStringThe date and time when a completion email was sent. Empty if no email was sent.
error_codeStringThe error code recorded if the export failed. Null if the export did not fail.

Example response

The following example shows the response when an identical export already exists

{
  "export_id": "<string>",
  "status": "<string>",
  "format": "<string>",
  "include_conversation": false,
  "filters": {
    "status": "<string>",
    "confidence": "<string>"
  },
  "total_count": 0,
  "written_rows": 0,
  "written_bytes": 0,
  "created_at": "<string>",
  "completed_at": "<string>",
  "expires_at": "<string>",
  "filename": "<string>",
  "download_url": "<string>",
  "email_sent_at": "<string>",
  "error_code": "<string>"
}

The following table lists the possible error responses returned by this API.

HTTP statusDescriptionRecommended action
404 Not FoundJob not foundVerify the conversation_id value in the request path and resend the request with the identifier of an existing conversation..
409 ConflictThe job is still pending or running.Wait until the job is no longer pending or running, then resend the request.
422 Unprocessable EntityValidation ErrorReview the request parameters or body, correct the invalid values, and resend the request.