The official Logto connector for Seven short message service.
Table of contents
Create a new account on seven. (Jump to the next step if you already have one.)
See the helpdesk article on how to retrieve your API key.
Fill out the field apiKey and optionally from.
You can add multiple SMS connector templates for different cases. Here is an example of adding a single template:
- Fill out the
content
field with arbitrary string-typed contents. Do not forget to leave{{code}}
placeholder for random passcode. - Fill out the
usageType
field with eitherRegister
,SignIn
orTest
for different use cases.
Here is an example of seven SMS connector config JSON.
{
"apiKey": "<your-api-key>",
"from": "<from>",
"templates": [
{
"content": "<arbitrary-register-template-contents: your passcode is {{code}}>",
"usageType": "Register"
},
{
"content": "<arbitrary-sign-in-template-contents: your passcode is {{code}}>",
"usageType": "SignIn"
},
{
"content": "<arbitrary-test-template-contents: your passcode is {{code}}>",
"usageType": "Test"
}
]
}
You can enter a phone number and click on "Send" to see whether the settings can work before "Save and Done".
That's it. Don't forget to Enable connector in sign-in experience.
Name | Type |
---|---|
apiKey | string |
from | string |
templates | Templates[] |
Template Properties | Type | Enum values |
---|---|---|
content | string | N/A |
usageType | enum string | 'Register' \ 'SignIn' \ 'Test' |