Get All Product IDs

GET /wp-json/content-api/v1/product-ids/

Retrieves all product ids matching parameters.

Content API Version: 1.0.9

Authentication

This endpoint requires a Bearer token in the Authorization header. To authenticate:

  1. Go to Content API > Settings in your WordPress admin panel.
  2. Set a secure token in the “Token” field and save it.
  3. Include the token in your request header as follows:
Authorization: Bearer <your-token-here>

Replace <your-token-here> with the token you configured.

Parameters

Name Type Description Required
limit integer The amount of product IDs to retrieve. Default -1 No
status string The status of the product (publish, draft, ect) Default shows all products of all statuses No

Example Response

{
  "success": true,
  "product_ids": [
    100,
    84
  ]
}

Possible Errors

Code Message Description HTTP Status
not_authorized Not Authorized The provided Bearer token is invalid or does not match the configured token. 401