TOMIS API
Requirements
-
Valid TOMIS site ID set as "site" query param (ex. ?site=tomis-site-id)
-
Valid TOMIS API Key w/ necessary permissions set as the "x-api-key"
header
- Request type is application/json
- Request body must be formatted correctly based on request.
Responses
-
200 - Success. Response body varies based on request. Always json.
- 400 - Bad request. Most likely an invalid request format.
- 401 - Unauthorized. Ex. missing or invalid "x-api-key" header
- 404 - TOMIS site is not found. Check "site" query parameter
- 500 - Internal server error, please try again later
Endpoints
POST /sms/send
- Request body:
{ message: string, to: string }
- message: text message to send
-
to: customer phone number -- must be formatted as an
international number, i.e. "+19998887777"
Contact
Questions or concerns? Please reach out to Austin Lords at
austin@tomis.tech