# Products

## /api/products

<mark style="color:blue;">`GET`</mark> `https://datelist.io/api/products`

This endpoint allows listing the available products.&#x20;

#### Query Parameters

| Name         | Type   | Description                                  |
| ------------ | ------ | -------------------------------------------- |
| name         | string | Search for products matching a specific name |
| calendar\_id | number | Search for products on a specific calendar   |

#### Headers

| Name           | Type   | Description                                             |
| -------------- | ------ | ------------------------------------------------------- |
| Authentication | string | Authentication token (see the "authentication" section) |

{% tabs %}
{% tab title="200 Returns the requested products" %}

```
[
    {
        "id": 1234,
        "name": "Your product",
        "price": null,
        "places": 1,
        "duration": 60,
        "calendar_id": 73,
        "created_at": "2021-06-15T12:31:25.652Z",
        "updated_at": "2021-06-15T13:00:04.757Z",
        "description": "",
        "deleted_at": null,
        "active": true,
        "tax_amount": null
    },
    {...}
]
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidoc.datelist.io/products.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
