MessageThread
MessageThread houses all information to facilitate communication with a candidate. It contains the communication channel e.g WhatsApp, SMS, Facebook Messenger, etc. It also contains the identifier for said channel e.g the phone number for WhatsApp, the Facebook profile id for Facebook Messenger, etc. as well as the messages that have been sent and received.
Candidate
Optionally, a candidate can be associated with a message thread. This is required when embedding the Recrubo Inbox. The association between a MessageThread and a Candidate can not be changed once set. Channels and identifiers can be updated.
Endpoints
GET /message-threads
- Retrieves a list of all message threads.GET /message-threads/{id}
- Retrieves a specific message thread by ID.POST /message-threads
- Creates a new message thread.PATCH /message-threads/{id}
- Updates a specific message thread by ID.DELETE /message-threads/{id}
- Deletes a specific message thread by ID.
Attributes
channel
String
The channel used for communication with the candidate.
identifier
String
The identifier for the channel used for communication with the candidate.
chatbotPaused
Boolean
The check for our services to reply to a message with the currently enabled flow. This can be used to stop flows from starting or continuing.
createdAt
DateTime
The timestamp when the message thread was created.
updatedAt
DateTime
The timestamp when the message thread was last updated.
HTTP Methods
channel
X
X
identifier
X
X
X
chatbotPaused
X
x
x
createdAt
X
updatedAt
x
Required Fields for Creation (POST)
channel
String
identifier
String
31612345678
chatbotPaused
Boolean
true
Example POST body
Example PATCH body with candidate
or directly with the candidate id:
Including Messages
To include messages in the response, add the include=messages
query parameter.
Response
OpenAPI
Last updated