Skip to content

Index content​

POST
/index/{collection}

Index a single document into the specified collection. Returns 202 Accepted — the document is queued for processing and becomes searchable shortly after.

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. Defaults automatically based on collection. Set to woocommerce when indexing WooCommerce products.

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
{
  
"id": "prod_001",
  
"url": "/products/red-shoes",
  
"title": "Red Running Shoes",
  
"content": "Comfortable lightweight running shoes with air cushioning.",
  
"price": 99.99,
  
"compare_at_price": 129.99,
  
"currency": "USD",
  
"image_url": "https://example.com/shoes.jpg",
  
"in_stock": true,
  
"category": "footwear",
  
"brand": "Nike",
  
"sku": "NK-RS-001",
  
"tags": [
  
  
"running",
  
  
"sale"
  
],
  
"rating": 4.5,
  
"reviews_count": 42,
  
"attributes": [
  
  
{
  
  
  
"name": "Size",
  
  
  
"value": "42"
  
  
},
  
  
{
  
  
  
"name": "Weight",
  
  
  
"value": "300",
  
  
  
"unit": "g"
  
  
}
  
]
}

Responses​

Content queued for indexing

application/json
JSON
{
  
"status": "queued",
  
"id": "prod_001",
  
"collection": "products"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

AI-powered search for your website