# Get all chatrooms of an ambassador **GET /chat/ambassadors/{ambassador}/chatrooms** Get all chatrooms of an ambassador and of his guest accounts ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Authentication methods - Bearer token ## Parameters ### Headers - **X-Popsell-Brand** (integer) The id of the target brand ### Path parameters - **ambassador** (integer) The ambassador id ### Query parameters - **sort** (string) Sort chatrooms by one of the following fields - **filter[last_action_date_before]** (string) Retrieve chatrooms with last action date before a date - **filter[archived]** (boolean) Retrieve archived chatrooms - **filter[commented]** (string) Retrieve commented chatrooms - **filter[flag]** (integer) Retrieve flagged chatrooms - **filter[type_chatroom]** (string) Retrieve chatrooms by type ## Responses ### 200 Returns the chatrooms of an ambassador #### Body: application/json (object) - **current_page** (integer(int32)) - **data** (array[object]) - **first_page_url** (string) - **from** (integer(int32)) - **last_page** (integer(int32)) - **last_page_url** (string) - **links** (array[object]) - **next_page_url** (string) - **path** (string) - **per_page** (integer(int32)) - **prev_page_url** (string(nullable)) - **to** (integer(int32)) - **total** (integer(int32)) ### 401 Unauthorized. #### Body: application/json (object) - **message** (string) ### 403 Forbidden - You don't have permission to access this route [Powered by Bump.sh](https://bump.sh)