Create a vendor chat
Opens the one-to-one chat with a vendor and returns its id. The vendor is the only participant.
Authorization
AuthorizationstringrequiredBearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.
Path parameters
vendorIdstringrequiredThe vendor to open a chat with.
example: 1825337204880932864
Response
200 · The vendor's chat.
chatIdstringThe chat to talk to this recipient in. Absent when failureReason explains why no chat could be made.
failureReasonstringWhy no chat could be made. Absent on success.
401 · The access token is missing, expired, or not valid.
404 · No vendor with that id belongs to your company.
422 · The vendor record has been deactivated.
This call creates or finds a chat. It does not message anyone. Nothing reaches the recipient until you post a message to the returned chatId.
Calling it again returns the same chat rather than making a second one.