---
title: "Product Inventory API"
url: "https://developer.apiprimer.com/apis/product-inventory-api/versions/b23daac0-23b7-4663-8306-2f0b7d604314"
---

# Product Inventory API

OpenAPI specification document.

```json
{"openapi":"3.1.0","info":{"title":"Product Inventory API","version":"1.0.0"},"servers":[{"url":"https://api.apiprimer.com"}],"paths":{"/products":{"get":{"summary":"Retrieve a list of products","responses":{"200":{"description":"Successful operation"}}},"post":{"summary":"Create a new product","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the product"},"description":{"type":"string","description":"Product description"},"price":{"type":"number","format":"float","description":"Price of the product"}}}}}},"responses":{"201":{"description":"Product created successfully"}}}},"/products/{productId}":{"get":{"summary":"Retrieve a specific product by ID","parameters":[{"in":"path","name":"productId","required":true,"schema":{"type":"string"},"description":"ID of the product to retrieve"}],"responses":{"200":{"description":"Successful operation"},"404":{"description":"Product not found"}}},"put":{"summary":"Update an existing product","parameters":[{"in":"path","name":"productId","required":true,"schema":{"type":"string"},"description":"ID of the product to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Name of the product"},"description":{"type":"string","description":"Product description"},"price":{"type":"number","format":"float","description":"Price of the product"}}}}}},"responses":{"200":{"description":"Product updated successfully"},"404":{"description":"Product not found"}}},"delete":{"summary":"Delete a product","parameters":[{"in":"path","name":"productId","required":true,"schema":{"type":"string"},"description":"ID of the product to delete"}],"responses":{"204":{"description":"Product deleted successfully"},"404":{"description":"Product not found"}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"}}},"security":[{"ApiKeyAuth":[]}]}
```
