POST
/auth/passwordless
curl \
-X POST http://localhost:3003/api/dev/auth/passwordless \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"email":"mohamedhassen.jahha@assistdigital.com","authType":"SMS"}'
Request example
{
"email": "mohamedhassen.jahha@assistdigital.com",
"authType": "SMS"
}
Request examples
{
"email": "mohamedhassen.jahha@assistdigital.com",
"authType": "SMS"
}
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: 445.696
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: Fri Oct 06 2023 02:38:58 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 72
ETag: W/"48-euii36M+12v+/pmWmozDKCv9zuk"
Date: Fri, 06 Oct 2023 01:31:34 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 200,
"message": "Votre code OTP temporaire vous a été envoyé."
}
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: 445.696
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 87
X-RateLimit-Reset: Fri Oct 06 2023 02:38:58 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 72
ETag: W/"48-euii36M+12v+/pmWmozDKCv9zuk"
Date: Fri, 06 Oct 2023 01:31:34 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}
Response examples (400)
# 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: 432.56
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 86
X-RateLimit-Reset: Fri Oct 06 2023 02:38:58 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 82
ETag: W/"52-MMO9rfvHaO8izR1FS7pHfpjPIWc"
Date: Fri, 06 Oct 2023 01:31:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{
"code": 400,
"message": "Oups! Il semblerait que vos identifiants soient incorrect"
}
Response examples (400)
# 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: 432.56
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 86
X-RateLimit-Reset: Fri Oct 06 2023 02:38:58 GMT+0100 (Central European Standard Time)
x-powered-by: TUNISIAN RED CRESSCENT
Content-Type: application/json; charset=utf-8
Content-Length: 82
ETag: W/"52-MMO9rfvHaO8izR1FS7pHfpjPIWc"
Date: Fri, 06 Oct 2023 01:31:46 GMT
Connection: keep-alive
Keep-Alive: timeout=5
# Payload
{}