https://github.com/authgear/authgear-sms-gateway
https://github.com/authgear/authgear-sms-gateway
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/authgear/authgear-sms-gateway
- Owner: authgear
- Created: 2024-09-04T08:31:29.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-26T09:26:42.000Z (9 months ago)
- Last Synced: 2025-11-29T08:47:30.296Z (8 months ago)
- Language: Go
- Size: 309 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authgear SMS Gateway
Authgear SMS Gateway is a HTTP server that recieves a send SMS request and invoke send action in corresponding provider.
The request will be redirected to corresponding provider by a set of rules.
## Pre-requisite
Install tools specified in `.tool-versions`
### Install dependencies
```sh
$ make vendor
```
### Set up environment
```sh
$ cp var/authgear-sms-gateway.example.yaml var/authgear-sms-gateway.yaml
```
## Run
```
$ make start
```
## Example
### Send
```sh
$ curl --request POST \
--url http://localhost:8091/send \
--header 'Content-Type: application/json' \
--data '{
"app_id": "accounts",
"to": "+85298765432",
"body": "Your OTP is 123456",
"language_tag": "zh-HK",
"template_name": "verficiation_sms.txt",
"template_variables": {}
}'
```