v1
latestOpenAPI 3.0.32026-07-24156161.2 MBStream event templates
Create stream event template
Create a reusable event template. name and eventKey are required; trigger it later by passing eventKey as event on the send endpoints.
Authentication: TextPeak API key in the Authorization header (see Authentication in the API Overview).
post/stream_events
Request body
Example request
{
"name": "Verification code",
"streamId": 5,
"text": "Your CommPeak code is [code]",
"eventKey": "verification_code",
"activated": true
}Response
The created template.
Example response
{
"id": 21,
"name": "Verification code",
"stream": {
"id": 5,
"name": "Marketing UK"
},
"text": "Your CommPeak code is [code]",
"eventKey": "verification_code",
"createdAt": "2026-03-01 09:00:00",
"activated": true,
"language": "en"
}