Fetching file results

When file is submitted for processing, it is queued to ensure a stable response even under high load. To obtain the results, send a GET request to the https://api.groupdocs.cloud/v2.0/rewriter/{task}/document/{request ID} GroupDocs.Rewriter Cloud REST API endpoint, where task means what you want to do: detect, paraphrase, simpllify or summarize. This request does not require access token.

Processed files

Processed files are returned in JSON format in the response body and are slightly different according to task.

{
  "status": status code,
  "message": string,
  "probability": float,
  "isParaphrased": boolean
}
PropertyDescription
statusHTTP response status code.
messageVerbose status message.
probabilityProbability that provided file was paraphrased.
isParaphrasedIf provided file was paraphrased.
{
  "status": status code,
  "message": string,
  "url": string
}
PropertyDescription
statusHTTP response status code.
messageVerbose status message.
urlLink to paraphrased file.
{
  "status": status code,
  "message": string,
  "url": string
}
PropertyDescription
statusHTTP response status code.
messageVerbose status message.
urlLink to simplified file.
{
  "status": status code,
  "message": string,
  "url": string
}
PropertyDescription
statusHTTP response status code.
messageVerbose status message.
urlLink to summarized file.
If the file is not yet processed, try fetching the result in a couple of seconds using the same ID.

Note
Files are stored in the GroupDocs cloud and can be obtained by the task ID within 24 hours after the file was sent for processing.

cURL example

curl --location 'https://api.groupdocs.cloud/v2.0/rewriter/paraphrase/document/dae5390e-3658-4bff-85bf-4a77cc04eaa5' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...LxLejtsVFwrZpHA'
{
	"status": 200,
	"message": "Pdf document paraphrased",
	"url": "https://rewriter-groupdocs-app.s3.us-west-2.amazonaws.com/0cd7b09d-4d63-4bcd-a9a5-dfd72897aa17.pdf...ff474526313a24821e98"
}