GTS SMS OpenAPI Doc (1.0.0)

Download OpenAPI specification:Download

SMS Open API Interface

send template sms

Authorizations:
BASIC-AUTHORIZATION
header Parameters
X-GTS-SMS-KEY
string
Default: your gts sms key for basic authorization, which created in admin portal
X-GTS-SMS-SECRET
string
Default: your gts sms secret for basic authorization, which created in admin portal
Request Body schema: application/json
required
mobile
required
string

mobile

templateId
required
string

the sms template id of template created in admin portal

object

used for replacing the variables defined in the template. for example, there are '%name%' and '%address%' variables in template, then you can put {'%name%': 'James', '%address%': 'Gloden street 911 No.'} here

ext
string

the message transferred in sms sent result

Responses

Request samples

Content type
application/json
{
  • "mobile": "+639163000000",
  • "templateId": "a9fe867787ee90eac9573e323eacbc7e",
  • "vars": {
    },
  • "ext": "the message id of your own platform"
}

send simple sms

Authorizations:
BASIC-AUTHORIZATION
header Parameters
X-GTS-SMS-KEY
string
Default: your gts sms key for basic authorization, which created in admin portal
X-GTS-SMS-SECRET
string
Default: your gts sms secret for basic authorization, which created in admin portal
Request Body schema: application/json
required
mobile
required
string

mobile

content
required
string

the sms content to be sent

ext
string

the message transferred in sms sent result

Responses

Request samples

Content type
application/json
{
  • "mobile": "+639163000000",
  • "content": "this is sample message",
  • "ext": "the message id of your own platform"
}