Introduction
Cernel allows generations for sites configured through Products Feeds throught the Public API hosted on:
All endpoints documented below are relative to the above. Use of endpoints assumes that the site has been configured for a user from platform.cernel.ai.
Authentication
The API uses Token-based authentication, and all requests must include the ‘Authorization’ header
The token can be obtained by contacting mfe@cernel.ai and is issued per-user.
Example token:
Rate limits
Rate limits are applied per domain and returns HTTP 429 responses when exceeded.
Each domain can have a maximum of 1000 concurrent products or 100 concurrent categories queued
The system limits the following endpoints to 10 requests/m.
POST
/products
POST
/categories
The system limits the following endpoints to 1 request/s.
GET
/jobs/<str:job_id>
Endpoints
Product updates
Request body
Products use the <g:id> Google Product Feed identifier to identify products
Response body
The request returns the state of the queued job and the corresponding UUID4 job id that is a global and unique identifier used to fetch resource
Webhooks
Webhooks are supported through configurations by contacting mfe@cernel.ai. Upon job completion the webhook returns data to the webhook URL.
Endpoint
POST
/products
Request samples
Payload:
Response samples
Status 202:
Status 4xx:
Webhook
Product Updates From Data
Request body
Products use the <g:id> Google Product Feed identifier to identify products
Response body
The request returns the state of the queued job and the corresponding UUID4 job id that is a global and unique identifier used to fetch resource
Webhooks
Webhooks are supported through configurations by contacting mfe@cernel.ai. Upon job completion the webhook returns data to the webhook URL.
Endpoint
POST
/products/<str:number>
Request samples
Payload:
Response samples
Status 202:
Status 4xx:
Webhook
Category Updates
Request body
Categories uses the on-site URL from a sitemap
Response body
The request returns the state of the queued job and the corresponding UUID4 job id that is a global and unique identifier used to fetch resource
Webhooks
Webhooks are supported through configurations by contacting mfe@cernel.ai. Upon job completion the webhook returns data to the webhook URL
Endpoint
POST
/categories
Request samples
Payload:
Response samples
Status 202:
Status 4xx:
Webhook
Job results
Request body
The generated content can be fetched through the unique job UUID.
Endpoint
GET
/jobs/<str:job_id>
Response samples
Status 200: