App Endpoint

This endpoint allows you to perform various actions with app data and interact with the app.

Every API uses the content typeapplication/x-www-form-urlencoded

post
Validate Session

https://fusionapi.dev/app/:appid/api
This endpoint allows you to interact with you to check if a session is active.
Request
Response
Request
Path Parameters
session
required
string
Set to your session key.
action
required
string
Set to: validate-session
Response
200: OK
Session recieved and checked.
Success
Failure
Success
{"error": false, "message": "Active session!"}
Failure
{"error": true, "message": "Session does not exist."}

post
Has 2FA

https://fusionapi.dev/app/:appid/api
Checks if a user has 2FA enabled.
Request
Response
Request
Path Parameters
username
required
string
Set to a specific username
action
required
string
Set to: has2fa
Response
200: OK
Request received and processed.
Success
Failure
Success
{"error": false, "message": "Got 2FA status.", "status": "true"}
Failure
{"error": true, "message": "User does not exist."}

post
App Blob

https://v2.fusionapi.dev/app/:appid/api
This endpoint allows you to fetch all relevant data on an app.
Request
Response
Request
Path Parameters
session
required
string
Set to your session key.
action
required
string
Set to: appblob
Response
200: OK
Successful request.
Success
Failure
Success
{"error": false, "message": "Blob successfully fetched!", "blob": {"activeapis": 3, "label": "TestApp", "description": "This is a test application!", "usercount": 43, "apicount": 3}}
Failure
{"error": true, "message": "Session does not exist."}

post
My Blob

https://fusionapi.dev/app/:appid/api
This endpoint returns a blob of user data.
Request
Response
Request
Path Parameters
session
required
string
Set to your session key.
action
required
string
Set to: myblob
Response
200: OK
The response returned by the API.
Success
Failure
Success
{"error": false, "message": "Blob successfully fetched!", "blob": {"uid": 3, "ip": "1.2.3.4", "2fa-code": "JCFD5A5AMQS3G43C2KCOCCUSXWEU7NOO", "using2fa":"true", "level": 3, "logs": {"ip": "1.2.3.4", "message": "Registered", "time": "2020/4/6 10:32"}}}
Failure
{"error": true, "message": "Session does not exist."}

post
My Vars

https://fusionapi.dev/app/:appid/api
Grabs user variables.
Request
Response
Request
Path Parameters
action
required
string
Set to: myvars
session
required
string
Set to your session key.
Response
200: OK
The response returned by the API.
Success
Failure
Success
{"error": false, "message": "Variables successfully fetched!", "vars": {"test": "variable"}}
Failure
{"error": true, "message": "Session does not exist."}

post
Set User Variables

https://fusionapi.dev/app/:appid/api
This endpoint is used to set user variables.
Request
Response
Request
Path Parameters
value
required
string
Set to the desired variable value.
key
required
string
Set to the desired variable name.
session
required
string
Set to your session key.
action
required
string
Set to: set-user-vars
Response
200: OK
The response returned by the API.
Success
Failure
Success
{"error": false, "message": "Variables successfully set!"}
Failure
{"error": true, "message": "Session does not exist."}

post
Get App Variables

https://fusionapi.dev/app/:appid/api
This endpoint fetches application variables.
Request
Response
Request
Path Parameters
session
required
string
Set to your session key.
action
required
string
Set to: get-app-vars
Response
200: OK
The response returned by the API.
Success
Failure
Success
{"error": false, "message": "App variables fetched", "vars": {"test": "variable"}}
Failure
{"error": true, "message": "Session does not exist."}

The password requirements regex is: ^(?=\S{8,150}$)(?=.*?\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*?[^A-Za-z\s0-9])

post
Register

https://fusionapi.dev/app/:appid/api
This endpoint is used to register users to your application.
Request
Response
Request
Path Parameters
action
required
string
Set to: register
password
required
string
The desired password.
username
required
string
The desired username.
token
required
string
The registration token, leave blank if not required.
Response
200: OK
The response returned by the API.
Success
Bad Password
Bad Username
User Taken
Bad Token
Success
{"error": false, "message": "Successful registration."}
Bad Password
{"error": true, "message": "Password requirements not met."}
Bad Username
{"error": true, "message": "Username requirements not met."}
User Taken
{"error": true, "message": "Username is already taken."}
Bad Token
{"error": true, "message": "Token does not exist."}

post
Login

https://fusionapi.dev/app/:appid/api
This endpoint is used to login.
Request
Response
Request
Path Parameters
2fa
optional
string
Only use this parameter if 2fa is enabled.
password
required
string
The account password.
username
required
string
The account username.
action
required
string
Set to: login
Response
200: OK
The API response.
Success
Bad Credentials
Banned
Incorrect 2FA
2FA Not Needed
2FA Needed
Success
{"error": false, "session": "<insert session here>", "message": "Successfully logged in!"}
Bad Credentials
{"error": true, "message": "Incorrect credentials."}
Banned
{"error": true, "reason": "<insert reason here>", "message": "Banned: <insert reason here>"}
Incorrect 2FA
{"error": true, "message": "Incorrect 2FA code."}
2FA Not Needed
{"error": true, "message": "2FA not required."}
2FA Needed
{"error": true, "message": "2FA required for this account."}

‚Äč