Skip to main content
GET
/
products
/
:id
Get Product
curl --request GET \
  --url https://api.example.com/products/:id
{
  "error": true,
  "msg": "<string>",
  "product": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "price": "<string>",
    "stock": 123,
    "category_id": 123,
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}
This endpoint returns the complete information for a specific product identified by its UUID.

Path Parameters

id
string
required
Product UUID identifierValidation: Must be a valid UUID format

Response

error
boolean
Indicates if an error occurred during the request
msg
string
Response message (“Product got sucessfully” on success)
product
object
The product object containing all product details

Success Response Example (200)

{
  "error": false,
  "msg": "Product got sucessfully",
  "product": {
    "id": "b6da7bbc-14b9-11f1-9fcd-2418c6c96a00",
    "name": "Coca cola",
    "description": "Bebida gasificada de 2ltr",
    "price": "3000.00",
    "stock": 40,
    "category_id": 1,
    "created_at": "2026-02-28T15:25:29.000Z",
    "updated_at": "2026-02-28T15:25:29.000Z"
  }
}

Error Responses

400 - Invalid UUID

{
  "error": true,
  "msg": "the id is invalid"
}

409 - Conflict

Returned when the product is not found or a database error occurs.
{
  "error": true,
  "msg": "Error message describing the issue"
}

Build docs developers (and LLMs) love