Get Stream Objects

Prev Next
Get
/streams/{STREAM_ID}/objects

This API returns information about all Objects (conversations) in the requested Stream (channel).

Required query params:
Note: Without limiting the request, the call will fail.

a)Time range - For all Objects within a range of time, enter both unixStartTime and unixEndTime (Unix Time Stamp format). Max: 100 objects – for larger data additional calls are required.

b) Specific user - For all Objects of a specific user, enter both identityStreamProviderId and IdentityStreamProviderType.
Parameters are found in the “identities” section of the Get Users API. Enter the data found in streamProviderId and StreamProviderType

c) Specific user - For all Objects of a specific user, enter the userIdentityId – the Id of the identity as it appears in the Get Users API (Not to be confused with the “userId” field)

Use the Sort, Order, etc. optional parameters to limit and organize the output.
Note: Object's children and activity logs are False by default.

Security
HTTP
Type bearer

API key is needed to authorize requests. You can get your API key via the management console.
A Bearer Token is needed to be set in the Authorization header of every API call.
For additional support you can contact us.

Path parameters
STREAM_ID
Required

A CommBox generated number for the channel

Query parameters
userIdentityId
integer (int64)

A CommBox generated number for the user. Returns objects created by this user

identityStreamProviderId
string

To returns objects created by a user, enter the StreamProviderId found at the identity section. Must supply identityStreamProviderType as well.

identityStreamProviderType
string (short)

See Enum. To returns objects created by a user, enter the StreamProviderType found at the identity section. Must supply identityStreamProviderId as well.

unixStartTime
integer (int64)

Unix time stamp (UTC) of starting date and time of query.
Must be sent with unixEndTime

unixEndTime
integer (int64)

Unix time stamp (UTC) of ending date and time of query.
Must be sent with unixStartTime

subStream
integer (int64)

The subchannel Id (Optional, default 0)

sort
string

Sort of return objects (optional, default desc). Possible values: desc, asc

order
string

Order of return objects (optional, default createdtime). Possible values: createdtime, closedtime, prioritytime, updatedtime

includeChilds
boolean

Return objects with their childs (optional, default false)

includeActivityLog
boolean

Return objects with their activity log (optional, default false)

timeFilter
string

Determines which object datetime field affects unixStartTime & unixEndTime (optional, relevant only for ElasticSearch)

pageNumber
integer

Used for paging results (optional)

pageSize
integer

Used for paging results (optional, default 100)

status
string

ObjectStatusType - see Enums for code.
Returned objects must have selected statuses in a comma separated list
(Optional, default all)

Responses
200

OK

Expand All
object
status
string
Example200
description
string
ExampleOperation successful
response_time
string
Example2024-08-26T07:51:52.2581942Z
data
Array
OneOf
object
object
objectId
integer
Example62824402
streamId
integer
Example345
substreamId
integer
Example0
streamProviderId
string
Example6523da845b1a435cbfb039a3bff043d350cent@bumpyard.com
streamProviderType
integer
Example4
user_identity
integer
Example37389853
firstName
string
Examplenull
lastName
string
Examplenull
userStreamProviderId
string
Examplejohndoe@gmail.com
userStreamProviderType
string
Example4
content
string
Example{"{\"cc\": [{\"name\": \"\", \"address\": \"\"}], \"to\": [{\"name\": \"BumpYard\", \"address\": \"contact@bumpyardpro.com\"}, {\"name\": \"johndoe@gmail.com\", \"address\": \"johndoe@gmail.com\"}], \"bcc\": [{\"name\": \"\", \"address\": \"\"}], \"SAP_C4C\": {\"accept_conversation\": true}, \"subject\": \"Re: checking up on you\", \"is_email\": false, \"is_public\": true, \"languages\": [{\"Item1\": \"en\", \"headers_references\": \"010201921a02fe6c-4c1286f2-dce4-41f3-9921-38d29d1311e4-000000@eu-west-1.amazonses.com\", \"originalSubStreamId\": 0, \"sequence_start_time\": \"2024-09-17 07:43:59\", \"has_only_manager_childs\": false, \"first_client_response_time\": \"2024-09-17T07:43:59.2320185Z\", \"first_message_sending_failure\": true, \"headers_references_addition_count\": 2}"}
message
string
Example>Hi!&nbsp;<br><br>How are you today?
createdTime
string
Example2024-09-17T07:51:52.2581942Z
updatedTime
string
Example2024-09-17T07:51:52.2581942Z
closedTime
string
Examplenull
firstResponseTime
string
Example2024-09-17T07:51:52.2581942Z
lastResponseTime
string
Example2024-09-17T07:51:52.2581942Z
priorityTime
string
Example2024-08-06T07:51:52.2581942Z
statusId
integer
Example14
assignedManagerId
integer
Example0
lastAssignedManagerId
integer
Example27184982
type
integer
Example5
numTags
integer
Example1
user
object
id
integer
Example36167229
uniqueId
integer
Example12387654
phone1
integer
Example12129871234
phone2
integer
Example19173121122
email
string
Examplejohndoe@gmail.com
firstName
string
Examplenull
lastName
string
Examplenull
gender
string
Example
numberIdentities
integer

number of listings for the user

Example1
Locale
string
Example
birthday
string
Example
remarks
string

system remarks

Example
content
string
Example{"brand_name":"","Account_Number":"","GF":"0","BOD":"","Phone_12":"","hbgfdghh":"0","test1":"","Opening_date_of_account":""}
isManager
boolean

true = agent , false = customer

Examplefalse
childs
object
id
integer
Example460525246
objectId
integer
Example62824402
content
string
Example{ "{\"subject\":\"RE: checking up on you\",\"attachments\":null,\"to\":[{\"name\":\"samadams@gmail.com\",\"address\":\"samadams@gmail.com\"}]}" },
message
string
Example<div style="direction: ltr">Hi!&nbsp;<br>Trying to check up on you<br><br><br></div><div><div dir="ltr"><strong>From: </strong>Contact [contact@bumpyardpro.com]</div><div dir="ltr"><strong>Sent: </strong>9/17/2024, 10:33:28 AM</div><div dir="ltr"><strong>To:</strong> samadams@gmail.com</div><div dir="ltr"><strong>Subject: </strong>checking up on you</div><span><span><br></span></span><div dir="ltr">Hi!&nbsp;<br><br>How are you today?</div></div>
createdTime
string
Example2024-08-17T07:51:52.2581942Z
streamProviderId
string
Example17325641121
streamProviderType
integer
Example1
streamProviderEmail
string
Exampleeddiehakim@gmail.com
firstName
string
ExampleEddie
lastName
string
ExampleHakim
object
object
id
integer
Example234
streamid
integer
Example1
substreamid
integer
Example1
type
integer
Example0
statusId
integer
Example1
createdTime
string
Example2024-08-06T07:51:52.2581942Z
updatedTime
string
Example2024-08-06T07:51:52.2581942Z
lastResponseTime
string
Example2024-08-06T07:51:52.2581942Z
priorityTime
string
Example2024-08-06T07:51:52.2581942Z
streamProviderId
string
Exampleeddiesmith@gmail.com
streamProviderType
integer
Example7
message
string
ExampleNew status from facebook, Hello world!
content
string
Example{"num_likes":5,"user_likes":false,"num_shares":2}
numChilds
integer
Example2
numTags
integer
Example0
user
object
id
integer
Example123
identity
object
id
integer
Example7861234
streamProviderId
string
Exampleeddiesmith@gmail.com
streamProviderType
integer
Example7
streamProviderEmail
string
Exampleeddie@gmail.com
firstName
string
ExampleEddie
lastName
string
ExampleSmith
400

Bad Request - The request could not be understood by the server. Incoming parameters might not be valid

object
status
integer
Example400
description
string
ExampleBad Request
response_time
string (date-time)
401

Unauthorized - The supplied credentials, if any, are not sufficient to access the resource

object
status
integer
Example401
description
string
ExampleUnauthorized access
response_time
string (date-time)
404

Not Found - The requested resource is not found

object
status
integer
Example404
description
string
ExampleNot found
response_time
string (date-time)
429

Too Many Requests - Too many requests have been made in a short period of time (Throttling)

object
status
integer
Example429
description
string
ExampleToo Many Requests
response_time
string (date-time)
500

Internal Server Error - The server could not return the representation due to an internal server error

{
  "status": 500,
  "description": "Operation failed",
  "response_time": "2025-04-15T07:24:52.956Z"
}
object
status
integer
Example500
description
string
ExampleOperation failed
response_time
string (date-time)