curl --request GET \
--url https://api.wapikit.com/api/conversations \
--header 'x-access-token: <api-key>'{
"conversations": [
{
"contact": {
"uniqueId": "<string>",
"name": "<string>",
"phone": "<string>",
"attributes": {},
"createdAt": "2023-11-07T05:31:56Z",
"status": "Active"
},
"uniqueId": "<string>",
"contactId": "<string>",
"organizationId": "<string>",
"initiatedBy": "Contact",
"messages": [
{
"uniqueId": "<string>",
"conversationId": "<string>",
"direction": "InBound",
"status": "Read",
"messageType": "Text",
"createdAt": "2023-11-07T05:31:56Z",
"whatsAppMessageId": "<string>",
"messageData": {
"text": "<string>"
},
"replyToMessageId": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"numberOfUnreadMessages": 123,
"status": "Active",
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
],
"campaignId": "<string>",
"totalMessages": 123,
"assignedTo": {
"uniqueId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"accessLevel": "Owner",
"name": "<string>",
"email": "<string>",
"roles": [
{
"uniqueId": "<string>",
"name": "<string>",
"permissions": [
"Get:OrganizationMember"
],
"description": "<string>"
}
]
}
}
],
"paginationMeta": {
"page": 123,
"per_page": 123,
"total": 123
}
}returns paginated conversations.
curl --request GET \
--url https://api.wapikit.com/api/conversations \
--header 'x-access-token: <api-key>'{
"conversations": [
{
"contact": {
"uniqueId": "<string>",
"name": "<string>",
"phone": "<string>",
"attributes": {},
"createdAt": "2023-11-07T05:31:56Z",
"status": "Active"
},
"uniqueId": "<string>",
"contactId": "<string>",
"organizationId": "<string>",
"initiatedBy": "Contact",
"messages": [
{
"uniqueId": "<string>",
"conversationId": "<string>",
"direction": "InBound",
"status": "Read",
"messageType": "Text",
"createdAt": "2023-11-07T05:31:56Z",
"whatsAppMessageId": "<string>",
"messageData": {
"text": "<string>"
},
"replyToMessageId": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"numberOfUnreadMessages": 123,
"status": "Active",
"tags": [
{
"label": "<string>",
"uniqueId": "<string>"
}
],
"campaignId": "<string>",
"totalMessages": 123,
"assignedTo": {
"uniqueId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"accessLevel": "Owner",
"name": "<string>",
"email": "<string>",
"roles": [
{
"uniqueId": "<string>",
"name": "<string>",
"permissions": [
"Get:OrganizationMember"
],
"description": "<string>"
}
]
}
}
],
"paginationMeta": {
"page": 123,
"per_page": 123,
"total": 123
}
}number of records to skip
max number of records to return per page
order by asc or desc
asc, desc sort by a field
Active, Closed, Deleted query conversations with a contact id.
query conversations with a campaign id.
query conversations with a list id.
query conversations with a message id.
list of conversations
Show child attributes
Show child attributes
Active, Inactive, Blocked Contact, Campaign, OrganizationMember The message object returned from the API (or retrieved from the database) with a discriminator to determine the concrete type.
Show child attributes
Unique identifier of the message.
ID of the conversation.
Direction of the message – whether it was received (inbound) or sent (outbound).
InBound, OutBound Message status.
Read, Unread, Sent, Delivered, UnDelivered, Failed, Received Discriminator field used to determine the concrete message type.
Text Time when the message was created.
ID of the message in WhatsApp.
ID of the message to which this message is a reply.
Active, Closed, Deleted Show child attributes
Owner, Member Show child attributes
Get:OrganizationMember, Create:OrganizationMember, Update:OrganizationMember, Delete:OrganizationMember, Get:Campaign, Create:Campaign, Update:Campaign, Delete:Campaign, Get:Conversation, Update:Conversation, Delete:Conversation, Assign:Conversation, Unassign:Conversation, Get:List, Create:List, Update:List, Delete:List, Get:Tag, Create:Tag, Update:Tag, Delete:Tag, Get:ApiKey, Regenerate:ApiKey, Get:AppSettings, Update:AppSettings, Get:Contact, Create:Contact, Update:Contact, Delete:Contact, BulkImport:Contacts, Get:PrimaryAnalytics, Get:SecondaryAnalytics, Get:CampaignAnalytics, Update:Organization, Get:OrganizationRole, Create:OrganizationRole, Update:OrganizationRole, Delete:OrganizationRole, Update:IntegrationSettings, Get:MessageTemplates, Get:PhoneNumbers Was this page helpful?