Skip to content

Conversation

@MaciejSzaflik
Copy link
Contributor

Deploy preview

Scroll down to the checks section for the link to the deploy preview of your branch.

Links

Link your Jira ticket.

Description

Review and release

Apply changes and resolve conflicts. Once the described functionality lands on prod, let us know on #platform-docs-releases that your PR is ready for release. We will merge and publish the changes.

@MaciejSzaflik MaciejSzaflik requested a review from a team as a code owner October 4, 2024 13:30
@ale-kacperczyk
Copy link
Collaborator

There's a mismatch in category name. In the menu, it's Stats, while it's Customers in the table
image

Perhaps Stats should be renamed to Customers and the new Queued*** method could be moved there? WDYT?

Comment on lines 824 to 876
### Groups

Shows the total number of chats were handled by each group during the specified period.

#### Specifics

| | |
| ------------------- | ------------------------------------------------------------ |
| **Method URL** | `https://api.livechatinc.com/v3.6/reports/chats/groups` |
| **HTTP method** | POST, GET |
| **Required scopes** | `reports_read` |

#### Request

See [available parameters and filters](#available-parameters-and-filters).

#### Response

| Field | Notes |
| ------------------------ | -------------------------------------------------------- |
| `total` | The total number of chats in the specified date range. |
| `records` | Contains the `distribution` objects, for example, `day`. |
| `records.day.group` | Contains the `<group>:<chat_count>` pairs. |

</Text>
<Code>
<CodeSample path={'REQUEST'}>
<Sample>

```shell
curl -X POST \
https://api.livechatinc.com/v3.6/reports/chats/groups \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <your_access_token>' \
-d '{
"distribution": "day",
"filters": {
"from": "2024-08-20T00:00:00-00:00",
"to": "2024-08-22T23:59:59-00:00"
}
}'
```

</Sample>
</CodeSample>

<CodeResponse type="reports" version="v3.6" json="groups"/>

</Code>
</Section>

<Section>
<Text>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems duplicated.

@oliwiapolec oliwiapolec self-requested a review March 12, 2025 10:54
MaciejSzaflik and others added 7 commits April 14, 2025 16:32
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
Co-authored-by: Ola <42515529+ale-kacperczyk@users.noreply.github.com>
Co-authored-by: Ola <42515529+ale-kacperczyk@users.noreply.github.com>
Co-authored-by: Ola <42515529+ale-kacperczyk@users.noreply.github.com>
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
Co-authored-by: skamieniarz <46318321+skamieniarz@users.noreply.github.com>
@oliwiapolec
Copy link
Collaborator

Hi there, is this ready for review or are you still working on this PR?

@MaciejSzaflik
Copy link
Contributor Author

Hi there, is this ready for review or are you still working on this PR?

applied some comments
this pr is quite old, but I think it should be ready for review

@oliwiapolec oliwiapolec merged commit 9605d46 into master Jul 9, 2025
5 checks passed
@oliwiapolec oliwiapolec deleted the LC-new-reports-endpoints branch July 9, 2025 08:56
@github-actions
Copy link

github-actions bot commented Jul 9, 2025

🎉 This PR is included in version 2.11.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants