All requests to the API consist of the following:
The base URL for the API is https://rest.smsportal.com and supports HTTPS. To access a specific version of the API, simply postfix the URL with the version of the API, as in the case of https://rest.smsportal.com/v1.
The base URL will always be set to use the latest version of the API.
When using API credentials, always make sure that you keep them secure. Exposing your credentials publicly can result in your account being compromised.
Do not embed API credentials directly in code:
Always be sure not to embed your API credentials within your code. This could result in them accidently being made public and can compromise the security of your account.
Tokens should only be regenerated just before the maximum validity period of 24 hours is about to be reached. Regenerating a new token any sooner is unnecessary and creates additional overhead on the system.
For more details see our documentation on Best Practices.