Skip to main content
GET
List conversations for a company (paginated)

Authorizations

Authorization
string
header
required

Authentication token required for accessing protected endpoints. The token should be obtained from the main SalesCaptain authentication service.

Path Parameters

company_id
string<uuid>
required

Unique identifier for the company

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

Query Parameters

page_number
integer
required

Page number for pagination (must be a positive integer)

Required range: x >= 1
Example:

1

items_per_page
integer
default:10

Number of items per page (10-100, default 10)

Required range: 10 <= x <= 100
Example:

10

sort_by
enum<string>

Field to sort by

Available options:
last_update
Example:

"last_update"

sort_dir
enum<string>
default:desc

Sort direction (default desc)

Available options:
asc,
desc
Example:

"desc"

number
string

Filter conversations by contact phone number

Example:

"+1234567890"

email
string<email>

Filter conversations by contact email address

Example:

"john.doe@example.com"

conversation_profile_id
string<uuid>

Filter conversations by conversation profile ID

Example:

"c3d4e5f6-a7b8-9012-cdef-123456789012"

chat_status
enum<string>

Filter conversations by chat status

Available options:
open,
closed
Example:

"open"

Response

Conversations fetched successfully

message
string
Example:

"Conversations fetched successfully!"

conversations
object