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:
- Go to Content API > Settings in your WordPress admin panel.
- Set a secure token in the “Token” field and save it.
- 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 |