Get stream token
Changed onRetrieve the stream token for a stream. This token authenticates the messaging endpoints (simple_send, template_send, …) for that stream — see the token types in the API Overview.
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/{id}/token
- AuthAPI key in header Authorization
Path parameters
Unique identifier of the resource.
Response
Successful Response
Example response
{
"token": "d2b14ae204e9002338f97b9e45b387cd907f9aa8"
}Changes
- breaking
added the new path request parameter
id - breaking
response property
tokenlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200 - info
api operation id
getStreamTokenremoved and replaced withget_stream_token - info
the endpoint scheme security
APIKeyHeaderwas added to the API - 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
- breaking