Skip to main content

Summarization Async - Endpoint

Endpoint Overview

Endpoint:
POST /api/companies/{companyCuid}/orchestrators/{orchestratorCuid}/summarization-async

This endpoint asynchronously processes a text summarization request and provides a process ID to check the status and result later. checkout the result using the endpoint presented Here.


Request Body

The request body includes the text to summarize, the summary type, and an optional external reference.

FieldDescriptionTypeRequiredExample
contentThe content to summarize.ObjectYes{ "text": "Mandela served 27 years in prison, split between Robben Island..." }
typeThe type of summary requested.StringYes"detailed_summary"
external_refOptional external reference ID to track the request.StringNo"1234-abcd-56ef-7891"
external_metadataOptional metadata related to the request. Can be used for tracking or providing context.ObjectNo{ "user_id": "98765", "session_id": "abcd1234" }

Supported type values

  • factual_summary
  • detailed_summary
  • technical_summary
  • custom_summary

Example Request

{
"content": {
"text": "Mandela served 27 years in prison, split between Robben Island, Pollsmoor Prison, and Victor Verster Prison..."
},
"type": "detailed_summary",
"external_ref": "1234-abcd-56ef-7891",
"external_metadata": {
"user_id": "98765",
"session_id": "abcd1234"
}
}

Response

The response includes a process cuid, which is a unique identifier for the asynchronous summarization process. Use this ID to check the status of the process and retrieve the summary.

FieldDescriptionTypeExample
process_cuidunique process identifierString"123e4567"

Example Response

{
"process_cuid": "123e4567"
}