Skip to content

Include "Labels" in GET contacts response json #10434

Open
@CrimsonSunrise

Description

Is your feature or enhancement related to a problem? Please describe.

A problem. While building custom apps to integrate with Chatwoot I faced this problem where I need the contacts' labels but I first have to fetch all contacts (GET /contacts) then iterate through each contact and fetch its labels (GET /contacts/{id}/labels).

Describe the solution you'd like

It would be good to have labels already inside the GET /contacts response json.

Describe alternatives you've considered

The only plausible alternative at the moment is to create a webhook to watch for every contact changes and build a local database with all the contact information stored so when I need the full data I would get from the local database istead of Chatwoot PI.

Additional context

Also, GET /contact/{id}/labels is not documented in docs.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions