Get generated text for multiple records

get /text/Generate
This method retrieves generated text for multiple records. It allows you to filter by product type, store ID, language, field, and more. The generated text may include update history if specified.

Requirements

Authentication Required
Bearer access_token
Request Headers
Authorization: Bearer access_token

Example API Request

Parameter Name Type Description
type string, required Specifies the type of text to generate. Must be either "Product" or "Category."
recordId string, required A single or comma-separated list of record IDs to retrieve the generated text for.
storeId string, optional Filters results by the store ID.
language string, optional Filters results by the language code.
field string, optional Filters by the field name. Accepts comma-separated values.
historyCount integer, optional The number of historical text generations to return (default=1).
includeUpdateHistory boolean, optional If true, the response will include the update history of the text.
matchIsoTwoLetterLanguageCode boolean, optional If true, language filter returns matches for ISO two letter language code for reviews. (e.g. "en-US" will also return "en" reviews)

Response

200
401
404
500
//This status is returned when the generated text for the specified records is successfully retrieved.
//This status is returned if the API key is missing or invalid.
//This status is returned if no generated text is found for the specified record ID(s).
//The server encountered an error when processing the request.
Parameter Name Type Description
type string The type of text generated, such as "Product" or "Category."
records array of objects

The list of records containing the generated text.

  • recordId (string): The ID of the record.
  • stores (array of objects): Information about the store where the text applies.
    • storeId (string): The store ID where the text applies.
    • language (string): The language of the generated texts.
    • field (string): The field where the generated text is applied (e.g., "page description").
    • texts (array of objects): List of generated texts.
      • id (string): A unique identifier for the generated text.
      • date (string, date-time): The timestamp when the text was generated.
      • datePublished (string, date-time): The timestamp when a generated text was last published.
      • dateReviewed (string, date-time): The timestamp when a generated text was last marked as reviewed.
      • keywords (array of strings): The keywords used in the generated text.
      • value (string): The generated text content.
      • history (array of objects, optional): A history of updates to the generated text, if available.
        • value (string): The text content in the history.
        • date (string, date-time): The timestamp of the historical update.
        • publish (boolean): Indicates whether the text was published.
        • reviewed (boolean): Indicates whether the text was reviewed.
    • reviews (array of objects, optional): Lists reviews, if any.