# Retrieve a product

`GET https://api.cademi.com.br/api/v3/products/{product_id}`

Operation ID: `products.get` · API v3

Retrieves a product by its public ID.

The `offer` object is included only when the credentials have the `products.read_offer` permission.

The response includes an `ETag` representing the current revision. Send this value in the `If-Match` header when updating the product to avoid overwriting a newer version.

Required permissions: `products.read`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |

## Responses

### 200

Returns the requested product.

Body: `data`: Product.

Fields of Product:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `definitions` | object | yes | Product definitions. Only aliasproductid is supported; an empty object unless the product uses the alias format. |
| `deleted` | boolean | yes |  |
| `display` | object | yes | Display options. Only hidemodulebar and show_progress are supported; an empty object when no options have been defined. |
| `external_id` | string or null | no |  |
| `format` | string, one of `course`, `flix`, `blog`, `link`, `alias` | yes |  |
| `id` | string | yes | Public ID, with the prd_ prefix. |
| `image` | string or null | yes |  |
| `lessons_count` | integer | yes |  |
| `modules_count` | integer | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `product` | yes |  |
| `offer` | object | no | Offer details of the product. Included only when the credentials have the products.read_offer permission. |
| `position` | integer | yes |  |
| `revision` | string | yes |  |
| `showcase_id` | string | yes | Public ID, with the shw_ prefix. |
| `status` | string, one of `published`, `draft`, `unlisted`, `hidden` | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The product was not found or is not accessible with the current credentials.

Body: Error.

Full schema: https://cademi.dev/openapi/v3.json
