Skip to Content

IBA API — Public

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

Ans

POST /public/chatbot/

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Request body

Request body example (default)

{ "query": "what is iba?", "views": [], "response": [], "showHistory": false }

Responses

2XX — Successful response

Try it

curl --request POST \ --url 'https://api.tunnelflight.com/api/public/chatbot/' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>' \ --header 'content-type: application/json' \ --data '{"query":"what is iba?","views":[],"response":[],"showHistory":false}'

View source on GitHub → 


Get By UUID

POST /public/chatbot/get/1315ee2e-f0dc-4c3c-b692-c8be1fcf64ca

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Request body

Request body example (default)

{ "uuid": "1315ee2e-f0dc-4c3c-b692-c8be1fcf64ca" }

Responses

2XX — Successful response

Try it

curl --request POST \ --url 'https://api.tunnelflight.com/api/public/chatbot/get/1315ee2e-f0dc-4c3c-b692-c8be1fcf64ca' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>' \ --header 'content-type: application/json' \ --data '{"uuid":"1315ee2e-f0dc-4c3c-b692-c8be1fcf64ca"}'

View source on GitHub → 


Get Single

POST /public/chatbot/single

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Request body

Request body example (default)

{ "q_id": 1 }

Responses

2XX — Successful response

Try it

curl --request POST \ --url 'https://api.tunnelflight.com/api/public/chatbot/single' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>' \ --header 'content-type: application/json' \ --data '{"q_id":1}'

View source on GitHub → 


History

POST /public/chatbot/history

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Request body

Request body example (default)

{ "chatIds": ",thread_8WGNhyFngiBKmcy63xFh1uwu,thread_zXLR57DNv14ytUUVmUOYbsVb,thread_H5De8EzQGHkBhaDn3O7fiLeS", "history": [] }

Responses

2XX — Successful response

Try it

curl --request POST \ --url 'https://api.tunnelflight.com/api/public/chatbot/history' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>' \ --header 'content-type: application/json' \ --data '{"chatIds":",thread_8WGNhyFngiBKmcy63xFh1uwu,thread_zXLR57DNv14ytUUVmUOYbsVb,thread_H5De8EzQGHkBhaDn3O7fiLeS","history":[]}'

View source on GitHub → 


get countries

GET /public/countries

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Request body

Request body example (default)

null

Responses

2XX — Successful response

Try it

curl --request GET \ --url 'https://api.tunnelflight.com/api/public/countries' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>'

View source on GitHub → 


Get Skills

GET /public/skills

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Responses

2XX — Successful response

Try it

curl --request GET \ --url 'https://api.tunnelflight.com/api/public/skills' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>'

View source on GitHub → 


get tunnels

GET /public/tunnels/248

Headers

NameTypeRequiredDescription
AuthorizationstringyesBearer token. Required for every request.
client-idstringyesClient identifier issued by IBA. Required for every request.
tokenstringno

Request body

Request body example (default)

null

Responses

2XX — Successful response

Try it

curl --request GET \ --url 'https://api.tunnelflight.com/api/public/tunnels/248' \ --header 'Authorization: Bearer <token>' \ --header 'client-id: <client-id>' \ --header 'token: <token>'

View source on GitHub → 

Last updated on