Skip to main content

Partner API

The Skin Analysis Partner API is a REST API for managing your Skin Analysis catalog from your own systems. With it, you can:

  • Sync stock: mark products in stock or out of stock from your inventory feed.
  • Sync prices: update catalog prices from your price feed.
  • Manage the catalog: create and update brands, categories, products, routines and images.

Changes made with the Partner API are global: they affect all shoppers. To change stock, price or visibility for a single shopper session, for example store stock or loyalty prices, use the updateProducts SDK action.

Prefer no code?

You can manage the catalog in Studio, or in bulk with Excel. See Products and Catalog Manager.

Base URL​

https://api.pulpoar.com

All endpoints are under /skinai-partner/ and scoped by your project key:

https://api.pulpoar.com/skinai-partner/{project_key}/...

project_key can be your project slug or UUID.

Authentication​

Send your API key in the X-API-Key header with every request:

curl https://api.pulpoar.com/skinai-partner/<project-key>/products \
--header 'X-API-Key: <api-key>'

Create your API key in Studio and link it to your Skin Analysis project. See API keys. One key can cover several projects of your organization, for example one project per store.

Keep your key secret

Call the Partner API only from your server, for example from a feed job. Never put your API key in a website, mobile app or public repository.

Stock and prices​

Use these two endpoints to keep the catalog in sync with your e-commerce. Each one changes a single field and accepts no other fields.

EndpointFieldValues
PATCH /skinai-partner/{project_key}/stock?lookup=slugstock_statusin-stock or out-of-stock
PATCH /skinai-partner/{project_key}/prices?lookup=slugpriceA number >= 0, or null to clear the price

The lookup query parameter is required. It says what key holds: slug for the product slug, the code you manage in the catalog, or id for the product UUID.

Update stock​

curl -X PATCH "https://api.pulpoar.com/skinai-partner/<project-key>/stock?lookup=slug" \
-H "X-API-Key: <api-key>" -H "Content-Type: application/json" \
-d '{
"updates": [
{ "key": "serum-facial-30ml", "stock_status": "out-of-stock" },
{ "key": "gel-de-limpeza-150ml", "stock_status": "in-stock" }
]
}'

Update prices​

curl -X PATCH "https://api.pulpoar.com/skinai-partner/<project-key>/prices?lookup=slug" \
-H "X-API-Key: <api-key>" -H "Content-Type: application/json" \
-d '{
"updates": [
{ "key": "serum-facial-30ml", "price": 129.9 },
{ "key": "gel-de-limpeza-150ml", "price": null }
]
}'

null clears the price, so the product card shows no price instead of an outdated one. Send the price in your catalog currency, as a number. Prices up to 131,071 keep exact cents.

Response​

Each product gets its own result, so one unknown slug doesn't fail the rest of the batch:

{
"success": true,
"project_id": "3f2a…",
"processed": 2,
"results": [
{ "key": "serum-facial-30ml", "status": "updated", "product": { "slug": "serum-facial-30ml", "stock_status": "out-of-stock", "…": "…" } },
{ "key": "unknown-product", "status": "not_found", "message": "Product 'unknown-product' not found in project" }
]
}
statusMeaning
updatedThe product was updated.
not_foundNo product with this key in the project.
errorThe update failed. message says why.

The whole request is rejected with 400, and nothing changes, when the body is invalid: more than 100 items, the same key twice, an unknown field or an invalid value.

Many stores with one request​

If you run several stores, each with its own project, one API key can cover all of them. Ask us to add your store projects to your key. Then send the product slug and the stock status to /skinai-partner/stock/stores, and the stock is updated in every project on your key that has the product:

curl -X PATCH "https://api.pulpoar.com/skinai-partner/stock/stores" \
-H "X-API-Key: <api-key>" -H "Content-Type: application/json" \
-d '{
"updates": [
{ "product_slug": "serum-facial-30ml", "stock_status": "out-of-stock" },
{ "project_key": "<store-project-slug>", "product_slug": "gel-de-limpeza-150ml", "stock_status": "out-of-stock" }
]
}'
  • project_key is optional. Add it to a row only to change that one store; rows without it update every store.
  • Up to 200 rows per request. Each project_key and product_slug pair can appear once.
  • Each row gets its own result (updated, not_found, project_not_found, conflict or error), so one failing row doesn't block the others. updated_products says how many stores were changed.
  • A store can have its own stock only if its project has its own copy of the product. A product linked into several projects is shared, so it has one stock value for all of them.

See Update Stock Across Stores for the full reference.

What shoppers see​

Recommendations show only published, in-stock products. A product that is out of stock, or set to Draft or Archived, is left out of the results, the routine steps and the fallback catalog. It isn't replaced by another product, so its slot stays empty.

To keep an out-of-stock product visible with add to cart disabled, use the updateProducts SDK action with inStock: false instead.

Endpoints​

See the API reference for every field and response, or download the OpenAPI spec.

ResourceMethodEndpoint
ImagesGET, POST/skinai-partner/{project_key}/images
BrandsGET, POST, PATCH/skinai-partner/{project_key}/brands
CategoriesGET, POST, PATCH/skinai-partner/{project_key}/categories
ProductsGET, POST, PATCH, DELETE/skinai-partner/{project_key}/products
StockPATCH/skinai-partner/{project_key}/stock
PricesPATCH/skinai-partner/{project_key}/prices
Stock, all storesPATCH/skinai-partner/stock/stores
RoutinesGET, POST, PATCH, DELETE/skinai-partner/{project_key}/routines
Skin problemsGET/skinai-partner/{project_key}/problems
  • POST endpoints upsert: if an item with the same slug exists, it's updated instead of duplicated.
  • PATCH endpoints need ?lookup=id or ?lookup=slug.
  • GET /products accepts the status, stock_status and search filters.

For example, list the products that are out of stock:

curl "https://api.pulpoar.com/skinai-partner/<project-key>/products?stock_status=out-of-stock" \
-H "X-API-Key: <api-key>"

Limits​

  • 100 items per write request, and 200 rows for stock across stores.
  • 500 requests per 15 minutes per API key. Every response includes the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. When you exceed the limit, the API returns 429.

To sync a larger catalog, split it into batches of 100.

Errors​

Errors return success: false with a message and details:

{
"success": false,
"error": "Validation failed",
"details": ["stock_status must be \"in-stock\" or \"out-of-stock\""]
}
StatusMeaning
400Invalid request. See details.
401Missing, invalid or revoked API key.
403The project doesn't exist, or the API key isn't linked to it.
429Rate limit exceeded.