Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Please provide the number of the phone you want to call with this API in the header. The number must be in country code + number format without any characters or spaces, e.g. 919876543210; Alternatively, provide the phone_id (phone-xxxxxxxxxxxx) in the header
Example:
"918527184400"
Path Parameters
- The unique id of the chat
- For individual chats, this would be the country_code + number (e.g., 918527184400), followed by @c.us
- For groups, this would end with @g.us
Example:
"919537851844"
Body
application/json
- Update the assignee of the chat. The assignee must be a valid email address of a user in the organization
Example:
"bharat@hashlabs.dev"
- A record (key-value pair) of the property name or property id as keys, along with the updated value
- A comma-separated list of labels to be assigned to the chat. All labels are case-insensitive.
- If any label currently does not exist, it will be created
Example:
"chatlabel1,chatlabel2"
Response
200 OK
The response is a chat object. Refer to the chat object here