Skip to Content

Test Flyer — Auth

15 endpoints. Server: https://api.tunnelflight.com/api

Check Username

POST /auth/signup/check-username

Headers

NameTypeRequiredDescription
~nightwatch-userstringnoExample: 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"}'

View source on GitHub → 


Get Security Que

GET /auth/account-access/security-questions

Headers

NameTypeRequiredDescription
accept-languagestringnoExample: 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"}'

View source on GitHub → 


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}'

View source on GitHub → 


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":""}'

View source on GitHub → 


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}'

View source on GitHub → 


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":""}'

View source on GitHub → 


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":""}'

View source on GitHub → 


Recover Password

POST /auth/account-access/recover-password

Headers

NameTypeRequiredDescription
accept-languagestringnoExample: 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"}'

View source on GitHub → 


Recover Username

POST /auth/account-access/recover-username

Headers

NameTypeRequiredDescription
accept-languagestringnoExample: 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"}'

View source on GitHub → 


Resend

POST /auth/verify-email/resend

Headers

NameTypeRequiredDescription
~nightwatch-userstringnoExample: 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}}"}'

View source on GitHub → 


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"}'

View source on GitHub → 


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}}"}'

View source on GitHub → 


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":""}'

View source on GitHub → 


Verify email

POST /auth/verify-email

Headers

NameTypeRequiredDescription
~nightwatch-userstringnoExample: 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}}"}'

View source on GitHub → 


login

POST /auth/login

Headers

NameTypeRequiredDescription
accept-languagestringnoExample: 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"}'

View source on GitHub → 

Last updated on