Welcome to AutoMato AI's Product API! This documentation will help you integrate our powerful product optimization features into your own applications.
Authentication
All API requests require an API key for authentication. Include your key in the header of each request:
x-api-key: YOUR_API_KEY
Endpoints
POST /generateGenerate optimized product content for multiple ASINs.Request Example:
const axios = require('axios');
const AUTOMATO_API_KEY = 'YOUR_API_KEY';
const HOST = "https://app-backend.automatoai.com/apigateway/";
async function generateProductContent(asins) {
try {
const response = await axios({
method: 'post',
url: `${HOST}generate`,
headers: {
'Content-Type': 'application/json',
'x-api-key': AUTOMATO_API_KEY
},
data: {
products: asins,
domain: 'amazon.com'
}
});
console.log('Generation job started:', response.data);
return response.data;
} catch (error) {
console.error('Error generating product content:', error.message);
}
}
generateProductContent(['ASIN1', 'ASIN2'])
.then(result => console.log(result))
.catch(error => console.error(error));
Response:
{
"data": {
"job": "12345"
}
}
GET /content/{jobId}
Retrieve generated content for a specific job.
Request Example:
const axios = require('axios');
const AUTOMATO_API_KEY = 'YOUR_API_KEY';
const HOST = "https://app-backend.automatoai.com/apigateway/";
async function getGeneratedContent(jobId) {
try {
const response = await axios({
method: 'get',
url: `${HOST}content/${jobId}`,
headers: {
'Content-Type': 'application/json',
'x-api-key': AUTOMATO_API_KEY
}
});
console.log('Generated content:', response.data);
return response.data;
} catch (error) {
console.error('Error retrieving generated content:', error.message);
}
}
getGeneratedContent('12345')
.then(result => console.log(result))
.catch(error => console.error(error));
Response:
{
"data": {
"products": [
{
"bulletPointsByChat": [
"Point 1",
"Point 2",
"Point 3",
"Point 4",
"Point 5"
],
"searchTerm": "Example search term",
"description": "Detailed product description...",
"title": "Optimized Product Title"
}
]
}
}
Rate Limiting
To ensure fair usage, our API is rate-limited. Please contact our support team for details on your specific plan's limits.
Need Help?
Our support team is here to help you integrate AutomatoAI into your applications. Reach out to us at support@automatoai.com for any questions or to upgrade your plan for increased API access.