Add sender
Changed onCreate a new alphanumeric sender ID. Both name and value are required. New senders start as WAITING_APPROVE and must be approved before use.
Rejected values. A value that already exists, or that is not 3 to 16 characters long, is returned with HTTP 200 and a { "code", "message" } body instead of the sender; check for id in the response.
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/senders
- AuthAPI key in header Authorization
Request body
Example request
{
"name": "CommPeak",
"value": "CommPeak"
}Response
The sender was not created: the value already exists, or is not 3 to 16 characters long.
Example response
{
"code": 1,
"message": "Sender already exist"
}Changes
- breaking
response property
streamlist-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 - info
api operation id
addSenderremoved and replaced withcreate_sender - 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
- 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 - info
added the success response with the status
- breaking