Add stream
Changed onCreate a new stream. name is required; other fields are optional and depend on the stream type (default MARKETING).
Lifecycle. SMS streams (MARKETING, TRANSACTIONAL, OTP, TWO_WAY) are active (READY) as soon as they are created. Every other type is created as a DRAFT: configure it with params, then activate it with a PUT that sets state to READY and sends no params.
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
- AuthAPI key in header Authorization
Request body
Example request
{
"description": "Outbound marketing to US contacts",
"ipAcl": "192.0.2.10",
"name": "Marketing US",
"type": "MARKETING"
}Response
Successful Response
Example response
{
"description": "Outbound marketing to US contacts",
"id": 5,
"ipAcl": "192.0.2.10",
"name": "Marketing US",
"state": "READY",
"streamTags": [
{
"id": 12,
"value": "vip"
}
],
"streamUid": "9f1c2d3e4b5a6789c0d1e2f3a4b5c6d7",
"type": "MARKETING"
}Changes
- breaking
removed the enum value
DISABLEDof the request property - breaking
removed the enum value
DRAFTof the request property - breaking
removed the enum value
MARKETINGof the request property - breaking
removed the enum value
OTPof the request property - breaking
removed the enum value
READYof the request property - breaking
removed the enum value
RESTRICTEDof the request property - breaking
removed the enum value
SENDINGof the request property - breaking
removed the enum value
TELEGRAM_BOTof the request property - breaking
removed the enum value
TELEGRAM_PRIVATEof the request property - breaking
removed the enum value
TRANSACTIONALof the request property - breaking
removed the enum value
TWO_WAYof the request property - breaking
removed the enum value
VOICEof the request property - breaking
removed the enum value
WEBSOCKETof the request property - breaking
removed the enum value
WHATSAPP_BUSINESSof the request property - breaking
removed the enum value
WHATSAPP_PRIVATEof the request property - breaking
response property
callerIdlist-of-types was widened by adding typesnullto media typeapplication/jsonof response201 - breaking
response property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response201 - breaking
response property
ipAcllist-of-types was widened by adding typesnullto media typeapplication/jsonof response201 - breaking
response property
namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response201 - breaking
response property
streamUidlist-of-types was widened by adding typesnullto media typeapplication/jsonof response201 - warning
the
request property's maxLength was set to255 - warning
added the new
EMAILenum value to theresponse property for the response status - warning
added the new
UNKNOWNenum value to theresponse property for the response status - warning
added the new
UNKNOWNenum value to theresponse property for the response status - warning
added the new
WHATSAPP_BUSINESS_AUTHenum value to theresponse property for the response status - warning
added the new
WHATSAPP_EMBEDDEDenum value to theresponse property for the response status - info
api operation id
addStreamremoved and replaced withcreate_stream - info
the endpoint scheme security
APIKeyHeaderwas added to the API - info
the
request property default valueREADYwas added - info
the
request property default valueMARKETINGwas added - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesarray and nullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - info
request property
list-of-types was widened by adding typesnullto media typeapplication/json - 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 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
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
//became required for the status - info
the response property
//became required for the status - info
the response property
became required for the status
- breaking