- Returning.AI
- Auth
- User
- Server
- Category
- Role
- Channel
- Language Setting
- Leaderboard
- Badge
- Gamification
- Api Token
- Custom Userfields
- Integration
verify email
Developing
POST
/auth/verify-email
Request
Body Params application/json
email
string
required
code
string
required
>= 6 characters<= 6 characters
Match pattern:
^[0-9]+$
Example
{
"email": "makedi3263@foraro.com",
"code": "280867"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.returning.ai/api/v1/auth/verify-email' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "makedi3263@foraro.com",
"code": "280867"
}'
Responses
🟢200Success
application/json
Body
meta
object
required
success
boolean
required
message
string
required
devMessage
string
required
body
object
required
accessToken
string
required
refreshToken
string
required
Examples
{
"meta": {
"success": true,
"message": "Email has been verified successfully",
"devMessage": "Email has been verified successfully"
},
"body": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjIiLCJpYXQiOjE3MjE5MjI1MTYsImV4cCI6MTcyMjAwODkxNn0.RU6HbgnjhudD5h1hjCQ0OBo5HD2ANRtw8VNKHBLdvMA",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjIiLCJpYXQiOjE3MjE5MjI1MTYsImV4cCI6MTcyMjUyNzMxNn0.95J7P0_vUGnAKARhwVhws0T-M_yZNzu-i-2XY-5H-Hk"
}
}
Modified at 2024-08-05 01:30:36