Test Flyer — Auth
15 endpoints. Server: https://api.tunnelflight.com/api
Check Username
POST /auth/signup/check-username
Headers
| Name | Type | Required | Description |
|---|---|---|---|
~nightwatch-user | string | no | Example: 1f1d5840-a37a-4255-8714-c2194d777e87 |
Request body
Request body example (default)
{
"username": "tf_test_flyer"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/signup/check-username' \
--header '~nightwatch-user: <~nightwatch-user>' \
--header 'content-type: application/json' \
--data '{"username":"tf_test_flyer"}'Get Security Que
GET /auth/account-access/security-questions
Headers
| Name | Type | Required | Description |
|---|---|---|---|
accept-language | string | no | Example: en |
Request body
Request body example (default)
{
"username": "tf_test_flyer",
"option": "email",
"password": "{{password}}",
"passcode": "123456",
"answer_3": "example answer",
"answer_4": "example answer",
"answer_9": "example answer"
}Responses
2XX — Successful response
Try it
curl --request GET \ --url 'https://api.tunnelflight.com/api/auth/account-access/security-questions' \
--header 'accept-language: <accept-language>' \
--header 'content-type: application/json' \
--data '{"username":"tf_test_flyer","option":"email","password":"{{password}}","passcode":"123456","answer_3":"example answer","answer_4":"example answer","answer_9":"example answer"}'Create Bio Web Option
POST /auth/login/bio-web-option
Request body
Request body example (default)
{
"username": "",
"device_id": 0
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login/bio-web-option' \
--header 'content-type: application/json' \
--data '{"username":"","device_id":0}'Create Bio Web Verify
POST /auth/login/bio-web-verify
Request body
Request body example (default)
{
"credential": ""
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login/bio-web-verify' \
--header 'content-type: application/json' \
--data '{"credential":""}'Create Setup
POST /auth/login/totp/setup
Request body
Request body example (default)
{
"username": "",
"password": "",
"member_id": 0
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login/totp/setup' \
--header 'content-type: application/json' \
--data '{"username":"","password":"","member_id":0}'Create Verify Setup
POST /auth/login/totp/verify-setup
Request body
Request body example (default)
{
"username": "",
"password": "",
"member_id": 0,
"code": ""
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login/totp/verify-setup' \
--header 'content-type: application/json' \
--data '{"username":"","password":"","member_id":0,"code":""}'Create Verify Totp
POST /auth/login/verify-totp
Request body
Request body example (default)
{
"username": "",
"password": "",
"member_id": 0,
"code": ""
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login/verify-totp' \
--header 'content-type: application/json' \
--data '{"username":"","password":"","member_id":0,"code":""}'Recover Password
POST /auth/account-access/recover-password
Headers
| Name | Type | Required | Description |
|---|---|---|---|
accept-language | string | no | Example: en |
Request body
Request body example (default)
{
"username": "tf_test_flyer",
"option": "email",
"password": "{{password}}",
"passcode": "123456",
"answer_3": "example answer",
"answer_4": "example answer",
"answer_9": "example answer"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/account-access/recover-password' \
--header 'accept-language: <accept-language>' \
--header 'content-type: application/json' \
--data '{"username":"tf_test_flyer","option":"email","password":"{{password}}","passcode":"123456","answer_3":"example answer","answer_4":"example answer","answer_9":"example answer"}'Recover Username
POST /auth/account-access/recover-username
Headers
| Name | Type | Required | Description |
|---|---|---|---|
accept-language | string | no | Example: en |
Request body
Request body example (default)
{
"email": "test.flyer@example.com",
"passcode": "123456"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/account-access/recover-username' \
--header 'accept-language: <accept-language>' \
--header 'content-type: application/json' \
--data '{"email":"test.flyer@example.com","passcode":"123456"}'Resend
POST /auth/verify-email/resend
Headers
| Name | Type | Required | Description |
|---|---|---|---|
~nightwatch-user | string | no | Example: 1f1d5840-a37a-4255-8714-c2194d777e87 |
Request body
Request body example (default)
{
"token": "{{token}}"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/verify-email/resend' \
--header '~nightwatch-user: <~nightwatch-user>' \
--header 'content-type: application/json' \
--data '{"token":"{{token}}"}'Signup
POST /auth/signup
Request body
Request body example (default)
{
"country": "USA",
"real_name": "Test Flyer",
"email": "test.flyer@example.com",
"screen_name": "Test Flyer",
"username": "tf_test_flyer",
"password": "[********]",
"tunnel": "217006",
"phone": "5550100",
"question_1": "1",
"answer_1": "example answer",
"question_2": "5",
"answer_2": "example answer",
"question_3": "9",
"answer_3": "example answer",
"dob": 946684800,
"success": true,
"message": "Username does not exists.",
"terms": true,
"salt": "{{salt}}",
"country_code": "54"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/signup' \
--header 'content-type: application/json' \
--data '{"country":"USA","real_name":"Test Flyer","email":"test.flyer@example.com","screen_name":"Test Flyer","username":"tf_test_flyer","password":"[********]","tunnel":"217006","phone":"5550100","question_1":"1","answer_1":"example answer","question_2":"5","answer_2":"example answer","question_3":"9","answer_3":"example answer","dob":946684800,"success":true,"message":"Username does not exists.","terms":true,"salt":"{{salt}}","country_code":"54"}'Silent Login
POST /auth/login/silent
Request body
Request body example (default)
{
"username": "tf_test_flyer",
"password": "{{password}}"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login/silent' \
--header 'content-type: application/json' \
--data '{"username":"tf_test_flyer","password":"{{password}}"}'Create Social
POST /auth/social
Request body
Request body example (default)
{
"params": "",
"socialType": "",
"user": ""
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/social' \
--header 'content-type: application/json' \
--data '{"params":"","socialType":"","user":""}'Verify email
POST /auth/verify-email
Headers
| Name | Type | Required | Description |
|---|---|---|---|
~nightwatch-user | string | no | Example: 1f1d5840-a37a-4255-8714-c2194d777e87 |
Request body
Request body example (default)
{
"token": "{{token}}"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/verify-email' \
--header '~nightwatch-user: <~nightwatch-user>' \
--header 'content-type: application/json' \
--data '{"token":"{{token}}"}'login
POST /auth/login
Headers
| Name | Type | Required | Description |
|---|---|---|---|
accept-language | string | no | Example: en |
Request body
Request body example (default)
{
"username": "tf_test_flyer",
"password": "{{password}}",
"checkTwoFactor": false,
"passcodeOption": "email"
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/auth/login' \
--header 'accept-language: <accept-language>' \
--header 'content-type: application/json' \
--data '{"username":"tf_test_flyer","password":"{{password}}","checkTwoFactor":false,"passcodeOption":"email"}'