Get incoming messages
Changed onList incoming (inbound) messages for your account, newest first. Supports pagination and filtering by stream, sender phone number, and date range.
Pagination. page (1-based, default 1) and itemsPerPage (default 30). The response is { "items": [ ... ], "total": N }, but total is not reliable here: page until items comes back shorter than itemsPerPage.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
Request
- Base URLhttps://api.commpeak.com/textpeak
- URLhttps://api.commpeak.com/textpeak/streams/incoming_messages
- AuthAPI key in header Authorization
Query parameters
Page number (1-based).
Items per page.
Only messages received on this stream ID.
Sender's phone number contains this text.
Received at or after this time (UTC).
Received at or before this time (UTC).
Response
Successful Response
Example response
{
"items": [
{
"contact_name": "John Doe",
"content": {
"body": "STOP",
"type": "text"
},
"conversation": {
"uuid": "e2a489db-bb8a-4f51-9692-726153599c57"
},
"country_code": 230,
"country_iso2": "US",
"country_name": "USA",
"from": "12125551234",
"message_type": "text",
"message_uuid": "c4fff8ff-086a-4498-885f-760af8714eeb",
"received_at": "2026-03-19 10:20:04",
"stream": {
"name": "Marketing US",
"type": "TWO_WAY",
"uuid": "9f1c2d3e4b5a6789c0d1e2f3a4b5c6d7"
},
"to": "CommPeak",
"type": "SMS"
}
],
"total": 128
}Changes
- breaking
for the
queryrequest parameteritemsPerPage, default value30was added - breaking
for the
queryrequest parameterpage, default value1was added - breaking
response property
items/items/contact_namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
items/items/country_codelist-of-types was widened by adding typesinteger and nullto media typeapplication/jsonof response200 - breaking
response property
items/items/country_iso2list-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
items/items/country_namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
items/items/fromlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
items/items/message_uuidlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
items/items/received_atlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
response property
items/items/tolist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - breaking
the
//response's property type changed fromstringto no type for status - breaking
the
//response's property type changed fromstringto no type for status - breaking
the
response's property type changed fromintegerto no type for status - warning
deleted the
queryrequest parameterdestination - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
api operation id
getIncomingMessagesremoved and replaced withlist_incoming_messages - info
the endpoint scheme security
APIKeyHeaderwas added to the API - info
queryrequest parameterendDatelist-of-types was widened by adding typesnull - info
queryrequest parameteritemsPerPagelist-of-types was widened by adding typesnull - info
queryrequest parameterpagelist-of-types was widened by adding typesnull - info
queryrequest parameterphonelist-of-types was widened by adding typesnull - info
queryrequest parameterstartDatelist-of-types was widened by adding typesnull - info
queryrequest parameterstreamIdlist-of-types was widened by adding typesnull - info
for the
queryrequest parameterendDate, the type was generalized fromstringto no type - info
for the
queryrequest parameteritemsPerPage, the type was generalized fromintegerto no type - info
for the
queryrequest parameterpage, the type was generalized fromintegerto no type - info
for the
queryrequest parameterphone, the type was generalized fromstringto no type - info
for the
queryrequest parameterstartDate, the type was generalized fromstringto no type - info
for the
queryrequest parameterstreamId, the type was generalized fromintegerto no type - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status - info
added
subschema #2to the//response propertyanyOflist for the response status - info
added
subschema #2to the//response propertyanyOflist for the response status - info
added
subschema #1subschema #2to theresponse propertyanyOflist for the response status - info
the response property
became required for the status
- breaking