Product descriptions: API methods
Use three methods to estimate, create and retrieve a product description. This reference includes request schemas, parameters and response formats.
On this page
- POST /public-api/v1/ai-writer/product-descriptions/cost
- POST /public-api/v1/ai-writer/product-descriptions/documents
- GET /public-api/v1/ai-writer/product-descriptions/documents/{document_id}
Choose a method from the contents. Check its HTTP method, path, scopes, required parameters and request body. JSON blocks containing schema, properties and $ref describe the contract; do not send them as a ready-made request body. Request examples and response schemas are labelled separately.
POST /public-api/v1/ai-writer/product-descriptions/cost
Requires the ai-product-descriptions:read key scope and the account permission public-api-product-descriptions.show. The test equivalent is available with a test key at /public-api-test/v1 with the same path suffix. The sandbox uses fixtures, without AI or real charges. An ordinary product name returns success; sandbox:product_not_recognized returns 422; sandbox:async_product_not_recognized and sandbox:product_description_failed return the corresponding error after pending. Test documents are available for 7 days or until the sandbox is reset, whichever comes first.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · ProductDescriptionCost · ProductDescriptionRequest
Request
JSON body up to 16384 bytes.
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProductDescriptionRequest"
}
}
}
}
Responses
200
Current result; cost estimation does not reserve or spend credits.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProductDescriptionCost"
}
}
}
}
default
Public API error. Rate-limit headers describe the limit actually checked: failed authentication attempts per IP for missing or invalid keys, or the applicable key/account limit after authentication. They may be absent for access blocks before rate-limit checks or when the limiter is unavailable. X-RateLimit-Reset is a Unix timestamp in seconds; Retry-After is a delay in seconds for 429.
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
POST /public-api/v1/ai-writer/product-descriptions/documents
Requires the ai-product-descriptions:write key scope and the account permission public-api-product-descriptions.show. The test equivalent is available with a test key at /public-api-test/v1 with the same path suffix. The sandbox uses fixtures, without AI or real charges. An ordinary product name returns success; sandbox:product_not_recognized returns 422; sandbox:async_product_not_recognized and sandbox:product_description_failed return the corresponding error after pending. Test documents are available for 7 days or until the sandbox is reset, whichever comes first.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · ProductDescriptionCost · ProductDescriptionRejected · ProductDescriptionRequest · ProductDescriptionStart
Parameters
Idempotency-Key (header)
Required for paid generation. Replays the response for the same key, route and exact request body for 24 hours. A different body returns 409. Concurrent requests and uncertain launch outcomes remain blocked with 409; do not retry with a new key.
{
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9._:-]+$"
}
}
Request
JSON body up to 16384 bytes.
{
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProductDescriptionRequest"
}
}
}
}
Responses
202
Generation accepted; cost is the reserved upper bound.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProductDescriptionStart"
}
}
}
}
422
Insufficient credits or a cached product recognition failure from the last 7 days (error.code=product_not_recognized, credits_spent=0). Generation does not start. After changing the parameters or topping up the balance, use a new Idempotency-Key.
{
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ProductDescriptionCost"
},
{
"$ref": "#/components/schemas/ProductDescriptionRejected"
}
]
}
}
}
}
409
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
GET /public-api/v1/ai-writer/product-descriptions/documents/{document_id}
Requires the ai-product-descriptions:read key scope and the account permission public-api-product-descriptions.show. The test equivalent is available with a test key at /public-api-test/v1 with the same path suffix. The sandbox uses fixtures, without AI or real charges. An ordinary product name returns success; sandbox:product_not_recognized returns 422; sandbox:async_product_not_recognized and sandbox:product_description_failed return the corresponding error after pending. Test documents are available for 7 days or until the sandbox is reset, whichever comes first.
Related data models: CacheControl · RateLimitLimit · RateLimitRemaining · RateLimitResetAt · RetryAfter · XRequestID · ErrorResponse · ProductDescriptionDocument
Parameters
document_id (path)
{
"required": true,
"schema": {
"type": "string"
}
}
Responses
200
State of the owner’s product description. Poll pending results after 10 seconds.
{
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProductDescriptionDocument"
}
}
}
}
default
{
"headers": {
"X-Request-ID": {
"$ref": "#/components/headers/XRequestID"
},
"X-RateLimit-Limit": {
"$ref": "#/components/headers/RateLimitLimit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/RateLimitRemaining"
},
"X-RateLimit-Reset": {
"$ref": "#/components/headers/RateLimitResetAt"
},
"Cache-Control": {
"$ref": "#/components/headers/CacheControl"
},
"Retry-After": {
"$ref": "#/components/headers/RetryAfter"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
}
Before using AI output, check the facts, company or product name, language and consistency with your inputs. Read generated HTML before publication. Technical success does not replace a content review.
