Quick Start Guide
Get up and running with our Quick Start Guide and start developing your SMSPortal integration.
Integrating with SMSPortal can begin as soon as you create an SMSPortal account, and requires three steps:
- Generate your API Credentials so SMSPortal can authenticate your integration’s API requests.
- Start building so that your integration can interact with the REST API
- Make a test API Request in test mode to confirm that everything is working.
Be sure to refer to our comprehensive API Reference as you navigate through this guide.
Generate your API Credentials
The RESTful API supports two methods of authentication, using your API credentials directly for Basic HTTP Authentication or generating a temporary AEG Token for use on subsequent API requests. All endpoints support API credential authentication as well as Token-Based Authentication.
You can create, view and manage your Client ID and Secret in the SMSPortal Control Panel.
API Credential Security
Your API Credentials carry many privileges and your Secret cannot be accessed after creation, so be sure to keep them secure! Do not share your secret API credentials in publicly accessible areas such as GitHub, client-side code, and so forth.
To use your API credentials directly,
BASE64 encode your API credentials in the format
ClientID:APISecret and include them in the Basic Authentication Header. If you wish to use Token Authentication, you will need to generate a 24-hour token by
BASE64 encoding your API credentials in the format
ClientID:APISecret and include them in the Basic Authentication Header to the /authentication endpoint.
All API requests should be made over HTTPS. Calls made over plain HTTP will work but are not recommended. API requests without authentication will fail.
SMSPortal provide step by step recipes to walk you through code samples in different programming languages. You're also welcome to skip ahead and refer directly to SMSPortal's API Reference.
The above recipes contain examples of a basic SMS send. Please view the API Reference for all available features.
Make a Test API Request
To check that your integration is working correctly, send a message with the
testMode parameter set to
true and ensure that SMSPortal returns a successful response to your API request.
Now you’re ready to go live and start sending!
Updated 6 days ago