Inquirly
  1. Conversations
Inquirly
  • Accounts
    • Create an Account
      POST
    • Get an account details
      GET
    • Update an account
      PATCH
    • Delete an Account
      DELETE
  • Account Users
    • List all Account Users
      GET
    • Create an Account User
      POST
    • Delete an Account User
      DELETE
  • AgentBots
    • List all AgentBots
      GET
    • Create an Agent Bot
      POST
    • Get an agent bot details
      GET
    • Update an agent bot
      PATCH
    • Delete an AgentBot
      DELETE
  • Users
    • Create a User
      POST
    • Get an user details
      GET
    • Update a user
      PATCH
    • Delete a User
      DELETE
    • Get User SSO Link
      GET
  • Inbox API
    • Inbox details
  • Contacts API
    • Create a contact
    • Get a contact
    • Update a contact
  • Conversations API
    • Create a conversation
    • List all conversations
    • Get a single conversation
    • Resolve a conversation
    • Toggle typing status
    • Update last seen
  • Messages API
    • Create a message
    • List all messages
    • Update a message
  • Contact Labels
    • List Labels
    • Add Labels
  • CSAT Survey Page
    • Get CSAT survey page
  • Account AgentBots
    • List all AgentBots
    • Create an Agent Bot
    • Get an agent bot details
    • Update an agent bot
    • Delete an AgentBot
  • Agents
    • List Agents in Account
    • Add a New Agent
    • Update Agent in Account
    • Remove an Agent from Account
  • Canned Responses
    • List all Canned Responses in an Account
    • Add a New Canned Response
    • Remove a Canned Response from Account
  • Canned Response
    • Update Canned Response in Account
  • Custom Attributes
    • List all custom attributes in an account
    • Add a new custom attribute
    • Get a custom attribute details
    • Update custom attribute in Account
    • Remove a custom attribute from account
  • Contacts
    • List Contacts
    • Create Contact
    • Show Contact
    • Update Contact
    • Delete Contact
    • Contact Conversations
    • Search Contacts
    • Contact Filter
  • Contact
    • Create contact inbox
    • Get Contactable Inboxes
  • Automation Rule
    • List all automation rules in an account
    • Add a new automation rule
    • Get a automation rule details
    • Update automation rule in Account
    • Remove a automation rule from account
  • Help Center
    • Add a new portal
    • List all portals in an account
    • update a new portal
    • Add a new category
    • Add a new article
  • Conversations
    • Get Conversation Counts
      GET
    • Conversations List
      GET
    • Create New Conversation
      POST
    • Conversations Filter
      POST
    • Conversation Details
      GET
    • Update Conversation
      PATCH
    • Toggle Status
      POST
    • Toggle Priority
      POST
  • Conversation Assignment
    • Assign Conversation
  • Conversation Labels
    • List Labels
    • Add Labels
  • Inboxes
    • List all inboxes
    • Get an inbox
    • Create an inbox
    • Update Inbox
    • Show Inbox Agent Bot
    • Add or remove agent bot
    • List Agents in Inbox
    • Add a New Agent
    • Update Agents in Inbox
    • Remove an Agent from Inbox
  • Messages
    • Get messages
    • Create New Message
    • Delete a message
  • Integrations
    • List all the Integrations
    • Create an integration hook
    • Update an Integration Hook
    • Delete an Integration Hook
  • Profile
    • Fetch user profile
  • Teams
    • List all teams
    • Create a team
    • Get a team details
    • Update a team
    • Delete a team
    • List Agents in Team
    • Add a New Agent
    • Update Agents in Team
    • Remove an Agent from Team
  • Custom Filters
    • List all custom filters
    • Create a custom filter
    • Get a custom filter details
    • Update a custom filter
    • Delete a custom filter
  • Webhooks
    • List all webhooks
    • Add a webhook
    • Update a webhook object
    • Delete a webhook
  • Reports
    • Get Account reports
    • Get Account reports summary
    • Account Conversation Metrics
    • Agent Conversation Metrics
  1. Conversations

Conversations Filter

POST
/api/v1/accounts/{account_id}/conversations/filter
Conversations
Filter conversations with custom filter options and pagination
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/accounts//conversations/filter' \
--header 'Content-Type: application/json; charset=utf-8' \
--data-raw '{
    "payload": [
        {
            "attribute_key": "browser_language",
            "filter_operator": "not_eq",
            "values": [
                "en"
            ],
            "query_operator": "AND"
        },
        {
            "attribute_key": "status",
            "filter_operator": "eq",
            "values": [
                "pending"
            ],
            "query_operator": null
        }
    ]
}'
Response Response Example
200 - Example 1
{
    "data": {
        "meta": {
            "mine_count": 0,
            "unassigned_count": 0,
            "assigned_count": 0,
            "all_count": 0
        },
        "payload": [
            {
                "id": 0,
                "messages": [
                    {
                        "content": "string",
                        "content_type": "text",
                        "content_attributes": {},
                        "message_type": "incoming",
                        "created_at": 0,
                        "private": true,
                        "attachment": {},
                        "sender": {},
                        "conversation_id": 0
                    }
                ],
                "account_id": 0,
                "inbox_id": 0,
                "status": "open",
                "timestamp": "string",
                "contact_last_seen_at": "string",
                "agent_last_seen_at": "string",
                "unread_count": 0,
                "additional_attributes": {},
                "custom_attributes": {
                    "attribute_key": "attribute_value",
                    "priority_conversation_number": 3
                },
                "meta": {
                    "sender": {
                        "id": 0,
                        "name": "string",
                        "thumbnail": "string",
                        "channel": "string"
                    },
                    "assignee": {
                        "id": 0,
                        "uid": "string",
                        "name": "string",
                        "available_name": "string",
                        "display_name": "string",
                        "email": "string",
                        "account_id": 0,
                        "role": "agent",
                        "confirmed": true,
                        "custom_attributes": {},
                        "accounts": [
                            {
                                "id": 0,
                                "name": "string",
                                "role": "administrator"
                            }
                        ]
                    }
                }
            }
        ]
    }
}

Request

Path Params
account_id
string 
required
Query Params
page
integer 
optional
Body Params application/json; charset=utf-8
payload
array [object {4}] 
optional
Example:
[{"attribute_key":"browser_language","filter_operator":"not_eq","values":["en"],"query_operator":"AND"},{"attribute_key":"status","filter_operator":"eq","values":["pending"],"query_operator":null}]
attribute_key
string 
optional
filter attribute name
filter_operator
enum<string> 
optional
filter operator name
Allowed values:
equal_tonot_equal_tocontainsdoes_not_contain
values
array[string]
optional
array of the attribute values to filter
query_operator
enum<string> 
optional
query operator name
Allowed values:
ANDOR
Examples

Responses

🟢200OK
application/json; charset=utf-8
Success
Body
data
object 
optional
meta
object 
optional
payload
array[object (conversation) {12}] 
optional
array of conversations
🟠400Bad Request
Previous
Create New Conversation
Next
Conversation Details
Built with