v1
latestOpenAPI 3.0.32026-07-24156161.2 MBStreams
Add stream
Create a new stream. name is required; other fields are optional and depend on the stream type.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
post/streams
Request body
Example request
{
"name": "Marketing UK",
"description": "Outbound marketing to UK contacts",
"type": "MARKETING",
"ipAcl": "192.0.2.10",
"state": "READY"
}Response
The created stream.
Example response
{
"id": 5,
"streamUid": "9f1c2d3e4b5a6789c0d1e2f3a4b5c6d7",
"name": "Marketing UK",
"description": "Outbound marketing to UK contacts",
"type": "MARKETING",
"callerId": "447700900123",
"ipAcl": "192.0.2.10",
"state": "READY",
"streamTags": [
{
"id": 12,
"value": "vip"
}
]
}