Skip to content

Index content (batch)​

POST
/index/{collection}/batch

Index up to 20 documents in a single request. Returns 202 Accepted — items are queued as one batch job.

Max 2 concurrent index jobs per site. Use X-Platform: woocommerce header for WooCommerce-specific fields.

Authorizations​

apiKey

API key in sk_live_* format. Get yours from the dashboard at my.app-in.io.

Type
API Key (header: X-API-Key)

Parameters​

Header Parameters

X-Platform

Platform type. Applies to all items in the batch.

Type
string
Valid values
"product""page""doc""woocommerce"
X-Site-Language

Optional. The store's default language as an ISO 639-1 code (2-3 letters, optional region, max 5 characters). The API stores it as the site's default language only when none is set. The API never overwrites a value an admin set. An invalid value is ignored.

Type
string
Example"nl"

Path Parameters

collection*
Type
string
Required
Valid values
"products""pages""docs"

Request Body​

application/json
JSON
{
  
"items": [
  
  
{
  
  
  
"id": "prod_001",
  
  
  
"url": "/products/red-shoes",
  
  
  
"title": "Red Running Shoes",
  
  
  
"content": "Comfortable lightweight running shoes.",
  
  
  
"price": 99.99,
  
  
  
"in_stock": true,
  
  
  
"category": "footwear"
  
  
},
  
  
{
  
  
  
"id": "prod_002",
  
  
  
"url": "/products/blue-hat",
  
  
  
"title": "Blue Baseball Hat",
  
  
  
"content": "Classic cotton baseball hat.",
  
  
  
"price": 24.99,
  
  
  
"in_stock": true,
  
  
  
"category": "accessories"
  
  
}
  
]
}

Responses​

Batch queued for indexing

application/json
JSON
{
  
"status": "queued",
  
"count": 2,
  
"collection": "products"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

AI-powered search for your website