Authorizations
The authentication system on Partoo API is using API Key that should be put in the header of the request (the name of the header is x-APIKey
). An api_key is linked to a user. This user's role will give you different access level to the API features.
Path Parameters
The id of the conversation to fetch
Response
OK
The detail of a conversation.
The url of the consumer's profile picture
"https://www.example.com/profile-picture.jpg"
The name of the consumer, can be empty. The format may differ depending on the platform of contact (ex: "John Doe", "John Doe (@johndoe)", "@johndoe", "", ...).
"John Doe"
The phone number of the consumer, formatted in E.164 international format (ex: "+33612345678").
"+33612345678"
The last message exchanged in the conversation.
If the last message received was read.
This property is scoped to the user who performs the request. Multiple partoo users can have a different is_read value for the same conversation.
If Open, it is possible to send a message in the conversation, else not. A conversation can be Closed if it is expired.
Open
, Closed
The date of creation of the conversation, in the ISO 8601 format (ex: "2023-01-31 16:22:17.327878+00:00").
"2023-01-31 16:22:17.327878+00:00"
If the conversation has at least one message sent by a Partoo user.
Some basic information about the business that the conversation is associated with.
The channel that the message is being sent to/from.
⚠️ New values may be added to this enum without prior notice and without following the classic depreciation cycle.
It is up to you to gracefully handle the case where new values are added.
Google
, Facebook
, Instagram
, SMS
, Whatsapp
"Facebook"
The list of issues that affect the conversation. The issues represent setup problem that the business may have with a messaging channel. It is not possible to send messages on a conversation that has issues.
⚠️ New values may be added to this enum without prior notice and without following the classic depreciation cycle.
It is up to you to gracefully handle the case where new values are added.
["facebook_no_page_linked"]
The date at which the first message of the conversation was received, in the ISO 8601 format (ex: "2023-01-31 16:22:17.327878+00:00").
If the conversation has expired. A conversation expires if the consumer has not contacted the business for a certain amount of time.
You cannot send messages to an expired conversation.
false
If the conversation has been solved.
Conversations can be solved from our app or by updating conversation status to "closed".
false
The "user_id" of the user assigned to the conversation.
"62d80fae74e8b11d700302b8"
Data about the custom channel, this object is filled only if the messaging partner is Custom
.