IBA Mobile — Profile
13 endpoints. Server: https://api.tunnelflight.com/api
2fa operations
POST /account/profile/2fa-operation
2FA Operation
This endpoint allows the user to perform 2-factor authentication (2FA) operations for their account profile.
Request Body:
operation: (string) The type of 2FA operation to be performed.
Response:
-
status: (string) The status of the 2FA operation. -
message: (string) A message indicating the result of the 2FA operation.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
nullResponses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/account/profile/2fa-operation' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Certificate Download
POST /account/profile/get-certificate
This endpoint allows you to retrieve a certificate in the form of a base64 encoded PDF. When you make a POST request to /account/profile/get-certificate, you need to provide the required parameters in the request body. The response will contain the certificate in the form of a base64 encoded PDF.
The request should include the following parameters in the raw request body:
-
type: (string) The type of certificate -
cat_id: (number) The category ID -
screen_name: (string) The screen name -
entry_date: (number) The entry date -
member_id: (number) The member ID
The response will contain the certificate as a base64 encoded string representing a PDF document.
Request Body
-
type (string, required): The type of certificate to retrieve.
-
cat_id (number, required): The category ID of the certificate.
-
screen_name (string, required): The screen name of the user.
-
entry_date (number, required): The entry date for the certificate.
-
member_id (number, required): The ID of the member.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
{
"type": "",
"cat_id": 0,
"screen_name": "",
"entry_date": 0,
"member_id": 0
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/account/profile/get-certificate' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>' \
--header 'content-type: application/json' \
--data '{"type":"","cat_id":0,"screen_name":"","entry_date":0,"member_id":0}'Certificate list
GET /account/profile/certificate-list
Account Profile Certificate List
This endpoint retrieves the list of certificates associated with the user’s account profile.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Responses
2XX — Successful response
Try it
curl --request GET \ --url 'https://api.tunnelflight.com/api/account/profile/certificate-list' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Change Password
PUT /account/profile/change-password
Change Password
This endpoint is used to update the password for the user’s account profile.
Request Body
-
password(string, required): The new password for the account. -
current_password(string, required): The current password for the account. -
password_confirm(string, required): Confirmation of the new password.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
{
"password": "",
"current_password": "",
"password_confirm": ""
}Responses
2XX — Successful response
Try it
curl --request PUT \ --url 'https://api.tunnelflight.com/api/account/profile/change-password' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>' \
--header 'content-type: application/json' \
--data '{"password":"","current_password":"","password_confirm":""}'Get Booking History
GET /account/profile/booking-history
Account Booking History
This endpoint retrieves the booking history associated with the user’s account.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Responses
2XX — Successful response
Try it
curl --request GET \ --url 'https://api.tunnelflight.com/api/account/profile/booking-history' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Get Booking Pin
POST /account/profile/booking-pin
The endpoint allows the user to get booking pin which will use book tunnel time
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
nullResponses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/account/profile/booking-pin' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Get Payment History
GET /account/profile/payment-history
This endpoint retrieves the payment history related to the user’s account profile.
Module : Profile
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Responses
2XX — Successful response
Try it
curl --request GET \ --url 'https://api.tunnelflight.com/api/account/profile/payment-history' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Get Security Quetion
GET /account/profile/security-questions
Account Profile Security Questions
This endpoint makes an HTTP GET request to retrieve the security questions associated with the user’s account profile.
Request
The request does not require any parameters.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Responses
2XX — Successful response
Try it
curl --request GET \ --url 'https://api.tunnelflight.com/api/account/profile/security-questions' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Get User
GET /account/profile/user
This endpoint retrieves the profile information of the user. It does not require a request body. The response will include the user’s profile details such as username, email, profile picture, and any other relevant information.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Responses
2XX — Successful response
Try it
curl --request GET \ --url 'https://api.tunnelflight.com/api/account/profile/user' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'Update User
PUT /account/profile/user
This endpoint is used to update the profile of a user.
Request Body
-
real_name (string, required): The real name of the user.
-
tunnel (string, required): The tunnel information.
-
screen_name (string, required): The screen name of the user.
-
username (string, required): The username of the user.
-
verify_password (string, required): The password for verification.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
{
"real_name": "",
"tunnel": "",
"screen_name": "",
"username": "",
"verify_password": ""
}Responses
2XX — Successful response
Try it
curl --request PUT \ --url 'https://api.tunnelflight.com/api/account/profile/user' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>' \
--header 'content-type: application/json' \
--data '{"real_name":"","tunnel":"","screen_name":"","username":"","verify_password":""}'Remove Media
POST /account/profile/remove-media
This endpoint allows the user to remove media from their account profile.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/account/profile/remove-media' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>'send verification code
POST /account/profile/send-verification-passcode
This endpoint is used to send a verification passcode to the user’s email or phone for account profile verification.
Request Body
-
email(string, conditionally required): The email address to which the verification passcode will be sent. -
country(number, conditionally required): The country code for the phone number. -
phone(number, conditionally required): The phone number to which the verification passcode will be sent.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
{
"email": "",
"country": 0,
"phone": 0
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/account/profile/send-verification-passcode' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>' \
--header 'content-type: application/json' \
--data '{"email":"","country":0,"phone":0}'verify verification code
POST /account/profile/verify-verification-passcode
This endpoint is used to verify a verification passcode for a user’s profile in the account. The request should be sent as an HTTP POST to the specified URL.
Request Body
-
email (string, conditionally required): The email of the user.
-
phone (string, conditionally required): The phone number of the user.
-
country (string, conditionally required): The country of the user.
-
passcode (number, required): The verification passcode to be verified.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string | yes | Bearer token. Required for every request. |
client-id | string | yes | Client identifier issued by IBA. Required for every request. |
Request body
Request body example (default)
{
"email": "",
"phone": "",
"country": "",
"passcode": 0
}Responses
2XX — Successful response
Try it
curl --request POST \ --url 'https://api.tunnelflight.com/api/account/profile/verify-verification-passcode' \
--header 'Authorization: Bearer <token>' \
--header 'client-id: <client-id>' \
--header 'content-type: application/json' \
--data '{"email":"","phone":"","country":"","passcode":0}'