List conversations
GET
/api/v1/conversations
const url = 'https://digize.com/api/v1/conversations';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/conversations \ --header 'x-api-key: <x-api-key>'Texts, calls and emails with contacts, one conversation per contact and channel, the newest first. Returns up to 1,000 and how many there are.
Needs the crm:read permission.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
contact
required
object
id
required
string
name
required
string
firstName
required
string
email
required
string | null
phone
required
string | null
channel
required
string
address
required
The workspace’s number or address the contact writes to.
string
subject
required
Emails only.
string | null
status
required
string
assigneeId
required
The member answering it, by user id.
string | null
unread
required
boolean
lastMessage
required
lastMessageAt
required
string format: date-time
optedOut
required
A text conversation whose contact replied STOP: nothing can be texted to them until they reply START.
boolean
createdAt
required
string format: date-time
total
required
number
Example
{ "rows": [ { "channel": "sms", "status": "open", "lastMessage": { "kind": "message", "direction": "in", "authorKind": "contact", "status": "pending" } } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}