Skip to main content
GET
Search conversations

Request contract

  • Method and path: GET /apis/v1/social/inbox/conversations/search
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/social/inbox/conversations/search
  • query: query; required
  • direction: query; optional
  • profileId: query; optional
  • platform: query; optional
  • accountId: query; optional
  • limit: query; optional
  • cursor: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

No additional charge for this operation.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

query
string
required

Text to search for, in message content and in the contact's name, username, or phone number

Required string length: 2 - 200
direction
enum<string>

Only match messages sent to you (incoming) or by you (outgoing). Contact-identity matching is not applied when this is set.

Available options:
incoming,
outgoing
profileId
string

One of your profiles (prf_...). Defaults to your default profile when neither profileId nor accountId is sent.

Pattern: ^prf_[0-9A-Za-z]{22}$
platform
enum<string>

Filter by platform (searchable platforms only)

Available options:
facebook,
instagram,
telegram,
whatsapp,
sms,
rcs,
slack,
imessage
accountId
string

One of your social accounts (acc_...).

Pattern: ^acc_[0-9A-Za-z]{22}$
limit
integer
default:20

Maximum number of conversations to return

Required range: 1 <= x <= 50
cursor
string

Opaque pagination cursor. Pass back pagination.nextCursor verbatim; do not construct one.

Response

Conversations containing the query, most recent match first

data
object[]
meta
object
pagination
object