You can integrate any application with TextMagic using our simple API gateway then start sending SMS!
There are many code examples in multiple languages(Java, Ruby, PHP, Python and Perl)to help you get started.
Please read the API documentation to learn more about TextMagic API.
To get started with API:
- Start a free trial.
- Generate an API password.
- Read theAPI manual.
To generate an API password:
- Go to API.
- Click Generate new API password.
- Enter your TextMagic account password and click Generate.
- You will now see your API password.
Instead of using API commands youcan set up callback URLs to receive both incoming messages and the delivery status of sent messages.
The TextMagic server will call your callback URL and post SMS delivery notifications and incoming SMS directly to your application, meaning you get delivery notifications andincoming SMS as soon as they arrive.
TextMagic supports both HTTP and HTTPS connections.
To set up callback URLs:
- Go to API.
- Enter your Callback URL. It must begin with either http:// (non-encrypted) or https:// (encrypted).
- Click Test.
We will send an HTTP HEAD or HTTPS HEAD request andyour server should reply with HTTP code 200. If not, the system will consider the URL to be invalid and cannot set it up.
If the connection was successful you will see this:
Learn more about callback URLs.
For additional security, you can set IP addresses that can access your API:
- Add each IP address on a separate line.
- Click Save changes.