Skip to content

All recorded conversation history for one contact

GET
/voice/campaigns/past-conversations

The full history rather than the single summary beside it.

Note the contact id is an INTEGER here and a string on /campaigns/past-conversation. That asymmetry is voice’s and is mirrored rather than papered over - narrowing one would 422 ids the other accepts.

Authorizations

Parameters

Query Parameters

contact_id
required

Contact id.

integer

Contact id.

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required

A LIST result from voice, normalised so items is always present.

Voice is inconsistent about whether a list comes back bare or under a named key (collections, files, routes, chats, …). Both are preserved: the original key is kept for anyone reading voice’s docs, and items always holds the same rows so a client can page one way.

object
items
Array
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string