# Post a message with product in a chatroom **POST /chat/chatrooms/{chatroom}/messages-product** ## Servers - https://domain.tld/api/v2: https://domain.tld/api/v2 () ## Authentication methods - Bearer token ## Parameters ### Path parameters - **chatroom** (integer) The chatroom id ### Body: application/json (object) - **id_ambassador** (integer) - **id_product** (integer) ## Responses ### 201 Return the created message with products #### Body: application/json (object) - **id_message** (integer) - **date_insert** (string(date-time)) - **author** (object) - **content** (string) - **type_message** (integer) 0: text, 1: picture, 2: rating, 3: product, 4: connection, 5: request, 6: unavailable, 7: video, 8: email, 9: missed - **status_moderation** (integer) - **products** (array[object]) ### 401 Unauthorized. #### Body: application/json (object) - **message** (string) ### 403 Forbidden - You don't have permission to access this route ### 422 Unprocessable Content #### Body: application/json (object) - **message** (string) Error message. - **errors** (object) [Powered by Bump.sh](https://bump.sh)