Professional Documents
Culture Documents
Search
This article explains how to send a message using the Soprano HTTP API 'sendmsg' command
from a popular third party application for testing APIs called Postman. The Soprano HTTP API is
used to send or receive SMS messages by doing an 'HTTP POST' to a URL.
A record of all messages sent via the 'HTTP POST' interface is recorded in Messaging platform
and can be accessed via the web or other reporting interfaces.
Disclaimer: Soprano can't provide support for third-party tools such as Postman, please
refer to the Postman documentation or search online for a solution.
Requirements
https://help.sopranodesign.com/hc/en-us/articles/4402485857689-HTTP-API-sendmsg-usage-example-POSTMAN 1/6
12/07/2022, 14:59 HTTP API | sendmsg usage example - POSTMAN – SOPRANO Help Center
In this example we will be making a POST request to the Soprano HTTP API, specifically we will be
using the 'sendmsg' endpoint:
POST <$DOMAIN_URL>/cgphttp/servlet/sendmsg
Before we get started please refer to the 'HTTP Interface Developer Guide' documentation to
familiarize yourself with the api.
1. Download and install the Postman application. In this example we will be working locally
without a cloud account.
2. Open the Postman application, from the scratch pad 'Create a Collection' - (a collection is a
group of requests):
https://help.sopranodesign.com/hc/en-us/articles/4402485857689-HTTP-API-sendmsg-usage-example-POSTMAN 2/6
12/07/2022, 14:59 HTTP API | sendmsg usage example - POSTMAN – SOPRANO Help Center
<$DOMAIN_URL>/cgphttp/servlet/sendmsg
https://aus.sopranodesign.com/cgphttp/servlet/sendmsg
Since http is inherently insecure - data including username and passwords are sent as
clear-text we recommend using the SSL security offered by using https.
https://help.sopranodesign.com/hc/en-us/articles/4402485857689-HTTP-API-sendmsg-usage-example-POSTMAN 3/6
12/07/2022, 14:59 HTTP API | sendmsg usage example - POSTMAN – SOPRANO Help Center
6. Make sure 'POST' is selected as the method on the left side, as the api for the endpoint
specifies this is a POST request.
7. As we are making a POST request, we need to send some data with the request. Click the
'Params' tab below your request path and enter data for each of the api parameters you are
using. In this example we will use 'destination' and 'text':
As the parameters are entered they are automatically added to the request path
(highlighted in green).
8. Click on the 'Authorization' tab below your request path, select 'Basic Auth' from the types, and
enter your username and password.
https://help.sopranodesign.com/hc/en-us/articles/4402485857689-HTTP-API-sendmsg-usage-example-POSTMAN 4/6
12/07/2022, 14:59 HTTP API | sendmsg usage example - POSTMAN – SOPRANO Help Center
10. Verify that you have entered everything correctly, then click 'Send' to make the request and to
send the message.
You will see a response appear in the 'Body' section, and if successful a SMS message will be
received on your mobile device:
In the 'Body' you will see a coded response from the messaging platform - please refer to the
'HTTP Interface Developer Guide' documentation for more detailed explanation of the response
message:
PLEASE NOTE: Due to regional or carrier partner requirements, some of the screen designs
or functionality described in this article maybe unavailable and/or presented differently in
your region.
Yes
No
Return to top
PRIVACY
| GDPR
| TERMS
| 508 COMPLIANCE
Copyright 2021 Soprano Design Limited. All Rights Reserved.
https://help.sopranodesign.com/hc/en-us/articles/4402485857689-HTTP-API-sendmsg-usage-example-POSTMAN 6/6