POST
/sms/single
curl \
-X POST swift.croissant-rouge.org.tn/api/v1/sms/single \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"to":"+21658076667","message":"SMS content"}'
Request example
{
"to": "+21658076667",
"message": "SMS content"
}
Request examples
{
"to": "+21658076667",
"message": "SMS content"
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 429.506
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 94
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 85
ETag: W/"55-nJ+JQrb1C77gF/jM9l33JyaRgw4"
Date: Mon, 30 Oct 2023 01:58:56 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"SMS": "Message sent to +21658076667: SM17928374f5e0325e4508aad2d0d6d668"
}
Response examples (200)
# Headers
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
Origin-Agent-Cluster: ?1
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=15552000; includeSubDomains
X-Content-Type-Options: nosniff
X-DNS-Prefetch-Control: off
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 0
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Retry-After: 429.506
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 94
X-RateLimit-Reset: Mon Oct 30 2023 03:06:04 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 85
ETag: W/"55-nJ+JQrb1C77gF/jM9l33JyaRgw4"
Date: Mon, 30 Oct 2023 01:58:56 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}