---
title: WriteText.ai API - Get text generation history
description: This is the documentation for the Generate Endpoints - 'Get text generation history' for WriteText.ai API. WriteText.ai API helps businesses automate content creation for ecommerce (including keyword analysis), integrating seamlessly with PIM and ERP systems to generate SEO-optimized product descriptions, meta content, and more.
image: https://writetext.ai/hubfs/OG-api-Jul-17-2025-06-29-08-8846-AM.jpg
---

<https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history#top>

<https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history#>

# Get text generation history

get /text/Generate/History

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy.svg)

This method retrieves a history of text generation requests based on various filter criteria such as type, storeId, recordId, start and end dates, and more. It allows you to paginate through the results using a continuation token.

## Requirements

**Authentication Required**

Bearer access_token

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy.svg)

**Request Headers**

Authorization: Bearer access_token

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy.svg)

## Request parameters

| Parameter Name | Type | Description |
| --- | --- | --- |
| type | string, required | Specifies the type of history to retrieve (e.g., "Product", "Category"). |
| storeId | string, required | Filters results by the store ID. |
| recordId | string, optional | A single or comma-separated list of record IDs to filter by. |
| startDate | string, date-time, optional | The inclusive start date for filtering history results. |
| endDate | string, date-time, optional | The exclusive end date for filtering history results. |
| userName | string, optional | Filters results by the username who performed the request. |
| language | string, optional | Filters results by language. |
| continuationToken | string, optional | The token used to retrieve the next page of results. |
| pageSize | integer, optional | Specifies the number of results per page (default=100, min=100). |

## Response

 200

 401

 404

 500

//This status is returned when the history is successfully retrieved.

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy2.svg)

<p>{<br>  "continuationToken": "string",<br>  "histories": [<br>    {<br>      "timestamp": "2024-09-06T07:01:23.211Z",<br>      "textType": "string",<br>      "value": "string",<br>      "textId": "string",<br>      "action": "string",<br>      "recordId": "string",<br>      "editor": "string",<br>      "language": "string",<br>      "actionDisplay": "string",<br>      "textTypeDisplay": "string",<br>      "name": "string"<br>    }<br>  ]<br>}</p>

//This status is returned if the API key is missing or invalid.

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy2.svg)

//This status is returned if no history matching the filters is found.

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy2.svg)

{<br>  "type": "string",<br>  "storeId": "string",<br>  "recordId": "string",<br>  "userName": "string",<br>  "language": "string",<br>  "additionalProp1": "string",<br>  "additionalProp2": "string",<br>  "additionalProp3": "string"<br>}

//The server encountered an error when processing the request.

![Copy text to clipboard](https://writetext.ai/hubfs/ci_copy2.svg)

| Parameter Name | Type | Description |
| --- | --- | --- |
| continuationToken | string | The token used to retrieve the next page of results if there are more available. |
| histories | array of objects | The list of history records, each containing: - timestamp (string, date-time): The timestamp of when the request was made. - textType (string): The text type (e.g., "product description"). - value (string): The text produced by the action. - textId (string): The ID of the text. - action (string): Action performed. - recordId (string): The ID of the record. - editor (string): The username who made the request. - language (string): The language used in the request. - actionDisplay (string): The action text for display. - textTypeDisplay (string): The text type text for display. - name (string): The name of the user who made the request. |

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://writetext.ai/#organization",
  "@type" : "Organization",
  "address" : {
    "@type" : "PostalAddress",
    "addressCountry" : {
      "@type" : "Country",
      "name" : "PH"
    },
    "addressLocality" : "Muntinlupa City",
    "addressRegion" : "Metro Manila",
    "postalCode" : "1781",
    "streetAddress" : "15/F Asian Star Building, Asean Drive corner Singapura Lane, Filinvest Corporate City, Alabang"
  },
  "contactPoint" : {
    "@type" : "ContactPoint",
    "availableLanguage" : "English",
    "contactType" : "Customer Service",
    "email" : "hello@writetext.ai"
  },
  "logo" : "https://writetext.ai/hs-fs/hubfs/writetext_logo.png?width=200&height=34&name=writetext_logo.png",
  "name" : "WriteText.ai",
  "sameAs" : [ "https://www.facebook.com/writetextai", "https://www.linkedin.com/showcase/writetextai/", "https://www.youtube.com/@writetext-ai" ],
  "url" : "https://writetext.ai/"
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://writetext.ai/#website",
  "@type" : "WebSite",
  "inLanguage" : "en",
  "name" : "WriteText.ai",
  "publisher" : {
    "@id" : "https://writetext.ai/#organization"
  },
  "url" : "https://writetext.ai/"
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history#webpage",
  "@type" : "WebPage",
  "breadcrumb" : {
    "@id" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history#breadcrumb"
  },
  "description" : "This is the documentation for the Generate Endpoints - 'Get text generation history' for WriteText.ai API. WriteText.ai API helps businesses automate content creation for ecommerce (including keyword analysis), integrating seamlessly with PIM and ERP systems to generate SEO-optimized product descriptions, meta content, and more.",
  "inLanguage" : "en",
  "isPartOf" : {
    "@id" : "https://writetext.ai/#website"
  },
  "mainEntity" : {
    "@id" : "https://writetext.ai/#softwareapplication"
  },
  "name" : "WriteText.ai API - Get text generation history",
  "primaryImageOfPage" : "https://writetext.ai/hubfs/OG-writetext.ai.jpg",
  "publisher" : {
    "@id" : "https://writetext.ai/#organization"
  },
  "url" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history"
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://writetext.ai/#softwareapplication",
  "@type" : "SoftwareApplication",
  "applicationCategory" : "BusinessApplication",
  "applicationSubCategory" : "AI Ecommerce Content Automation Tool",
  "description" : "This is the documentation for the Generate Endpoints - 'Get text generation history' for WriteText.ai API. WriteText.ai API helps businesses automate content creation for ecommerce (including keyword analysis), integrating seamlessly with PIM and ERP systems to generate SEO-optimized product descriptions, meta content, and more.",
  "name" : "WriteText.ai",
  "operatingSystem" : "Web-based",
  "publisher" : {
    "@id" : "https://writetext.ai/#organization"
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history#breadcrumb",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://writetext.ai/",
    "name" : "Home",
    "position" : 1
  }, {
    "@type" : "ListItem",
    "item" : "https://writetext.ai/api/",
    "name" : "Api",
    "position" : 2
  }, {
    "@type" : "ListItem",
    "item" : "https://writetext.ai/api/docs/",
    "name" : "Docs",
    "position" : 3
  }, {
    "@type" : "ListItem",
    "item" : "https://writetext.ai/api/docs/generate-endpoints/",
    "name" : "Generate endpoints",
    "position" : 4
  }, {
    "@type" : "ListItem",
    "name" : "Get text generation history",
    "position" : 5
  } ]
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history#techarticle",
  "@type" : [ "TechArticle", "WebAPI" ],
  "author" : {
    "@type" : "Organization",
    "name" : "WriteText.ai",
    "url" : "https://writetext.ai/"
  },
  "description" : "This is the documentation for the Generate Endpoints - 'Get text generation history' for WriteText.ai API. WriteText.ai API helps businesses automate content creation for ecommerce (including keyword analysis), integrating seamlessly with PIM and ERP systems to generate SEO-optimized product descriptions, meta content, and more.",
  "headline" : "WriteText.ai API - Get text generation history",
  "inLanguage" : "en",
  "isPartOf" : {
    "@id" : "https://writetext.ai/#website"
  },
  "mainEntityOfPage" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history",
  "name" : "WriteText.ai API - Get text generation history",
  "provider" : {
    "@type" : "SoftwareApplication",
    "applicationCategory" : "Ecommerce content automation API",
    "name" : "WriteText.ai",
    "url" : "https://writetext.ai/"
  },
  "publisher" : {
    "@id" : "https://writetext.ai/#organization"
  },
  "url" : "https://writetext.ai/api/docs/generate-endpoints/get-text-generation-history"
}
```