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

Field
Type
Description

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

Field
GET
POST
PATCH

channel

X

X

identifier

X

X

X

chatbotPaused

X

x

x

createdAt

X

updatedAt

x

Required Fields for Creation (POST)

Field
Type
Example value

channel

String

whatsapp

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

Create a MessageThread

post
Authorizations
AuthorizationstringRequired

Bearer

Body
Responses
post
/message-threads

No content

Retrieve a single message_thread

get
Authorizations
AuthorizationstringRequired

Bearer

Path parameters
idstringRequired
Responses
200

message_thread found

application/vnd.api+json
get
/message-threads/{id}

Retrieve all MessageThreads

get
Authorizations
AuthorizationstringRequired

Bearer

Responses
200

message_threads found

application/vnd.api+json
get
/message-threads

Update a MessageThread

patch
Authorizations
AuthorizationstringRequired

Bearer

Path parameters
idstringRequired
Body
Responses
200

Change of CandidateId is allowed when candidate_id is nil

application/vnd.api+json
patch
/message-threads/{id}

Last updated