logo
Feature Endpoint
Generate Product Copies
POST

/custom/api/generate/product/copies

Headers

Authorizationrequired
string

Input the Authorization Bearer Token to authorize your API request.

Body

descriptionrequired
string

A brief description or tagline of the product. Example: “LongShot is an automatic content creation platform.”

productrequired
string

The name or title of the product. Example: “LongShot”

feature_typerequired
string

Defines the type of content you wish to generate. You can choose between:

  1. 1.  product_review: A review of the product.
  2. 2.  product_description: A detailed description of the product.
language
Default: "English-US"
string
  1. 1.  English-US: English (United States)
  2. 2.  English-UK: English (United Kingdom)
  3. 3.  Spanish: Spanish / Español
  4. 4.  French: French / Français
  5. 5.  Italian: Italian / Italiano
  6. 6.  Dutch: Dutch / Nederlands
  7. 7.  Portuguese: Portuguese / Português
  8. 8.  German: German / Deutsch
  9. 9.  Polish: Polish / Polski
serp
Default: "true"
boolean

If set to true, the API will search for product details from Google and generate descriptions using web data.

phrases_to_exclude
array

This field is used to decide the mode of the generation.

Response

status
string

Indicates whether the call was successful. It prompts success if working, otherwise not.

copies
object

The generated product content.

message
string

This information is attached to the call and offers meaningful details when errors occur.

credits_used
number

This field informs you about the credits consumed for this particular request. It varies on the generated content.

curl --location --request POST 'https://api-az.longshot.ai/custom/api/generate/product/copies'       
--header 'Authorization: Bearer <token>'       
--header 'Content-Type: application/json'             
--data-raw '{
    "description": "LongShot is an automatic content creation platform",
    "product": "Longshot",
    "feature_type": "product_description",
    "language": "en",
    "serp": true,
    "phrases_to_exclude": ["Introducing", "Step into"]
}'                                      
{
  "copies": [
    {
      "content": "<Generated Product Content>"
    }
  ],
  "status": "success",
  "message": "Generated successfully",
  "credits_used": "<Credits>"
}