- Getting started
- CREDIT ENDPOINTS
- GENERATE ENDPOINTS
- GETText generation rules and limits
- GETAvailable text generation tones
- GETText generation styles
- GETTarget audiences for text generation
- GETAvailable text types for generation
- GETText generation history
- GETStatus of generated texts
- GETGenerated text for multiple records
- GETActive generation requests
- GETDetails of a specific generation request
- POSTText generation
- POSTCancel a bulk generation request
- POSTUpdate generated text fields
- IMAGE ENDPOINTS
- KEYWORDS ENDPOINTS
- GETKeyword optimization data
- POSTOptimize keywords for text
- DELETEKeyword optimization
- PUTKeyword optimization
- GETKeyword optimization list
- PUTKeyword optimization data
- DELETERanking keywords
- PUTKeyword optimization pipelines
- GETKeyword state
- POSTKeyword pipeline
- DELETEKeyword pipeline
- POSTRestore keyword pipeline
- POSTAdd triggers to keyword pipeline
- POSTAdd triggers to a specific keyword pipeline
- POSTLock a specific keyword pipeline
- POSTUnlock a specific keyword pipeline
- GETPipeline snapshots
- PUTUpdate or create a snapshot
- POSTAdd manual keywords
- GETManual keywords
- REVIEW ENDPOINTS
- SUGGESTION ENDPOINTS
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.
|