API Reference

The Wallids API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and verbs.

It is designed so that you can develop your own library or use existing libraries from here. It is made to understand the working logic of the API with test data.

Base URL
https://api.wallids.com

Detect

It is the endpoint where you send the data you want to be analyzed.

The sent data is analyzed by artificial intelligence and gives you a clean response.

You can take action on your website according to the data here.

When an attack is detected, you can interrupt or redirect communication.

When an attack is detected, you don't have to worry because we neutralize the attack for you.
You can use Response data anywhere (Database, Client Response, etc.)

Get Request

The endpoint we use to examine the url or get parameters

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • url required

    full url in string value for analysis

POST 
/detect/url
1
2
3
4
5
curl https://api.wallids.com/detect/url \
  -XPOST \
  -d secretKey=YOUR_SECRET_KEY \
  -d url=example.com 

                                
Response
{
  "status": true,
  "message": "normal",
  "url": "example.com",
  "attack": 0
}

Post Request

The endpoint we use to examine the form or post parameters

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • url required

    full url in string value for analysis

  • inputs required

    full url in string value for analysis

POST 
/detect/form
1
2
3
4
5
curl https://api.wallids.com/detect/url \
  -X POST \
  -d secretKey=YOUR_SECRET_KEY \
  -d url=example.com 
  -d inputs={ name='><script>alert('wallids')</script> } 

                                
Response
{
  "status": 200,
  "message": "Attack Detected",
  "url": "example.com",
  "attack": 1
  "body": {
    "name":wallids
    }
}

Tracing

It will be enough to integrate it into your main file. So we will analyze all the requests that the client sends to your website

The sent data is analyzed by artificial intelligence and gives you a clean response.

You can take action on your website according to the data here.

When an attack is detected, you can interrupt or redirect communication.

When an attack is detected, you don't have to worry because we neutralize the attack for you.
You can use Response data anywhere (Database, Client Response, etc.)

Analyze Request

The endpoint we use to examine the form or post parameters

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • inforequired

    Data required for analysis by Wallids algorithm

    Child parameters
    • info.requestType required

      should be POST  or GET 

    • info.request required

      Should be string or object.

    • info.ip required

      Should be string

    • info.url required

      Should be string (full url of the website)

POST 
/tracing/client
1
2
3
4
curl https://api.wallids.com/tracing/client \
-X POST \
-d secretKey=YOUR_SECRET_KEY \
-d info={ requestType=GET,
          request=https://example.com/?q='><script>alert('wallids')</script>,
          ip=192.168.1.1,
          url=https://example.com/?q
        } 

                            
Response
{
 "status": 200,
 "message": "Attack Detected",
 "attack": 1
 "body": {
   "q":wallids
  }
}

Crypto

It is used to encrypt and decrypt your data with Aes256.

You can take the security of your data to the next level with private keys created specifically for you.

Encrpyt

The endpoint used to encrypt important data

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • bodyrequired

    The data you want to be encrypted must be a string.

POST 
/crypto/encode
1
2
3
4
curl https://api.wallids.com/crypto/encode \
  -X POST \
  -d secretKey=YOUR_SECRET_KEY \
  -d body=wallids 

  
                        
Response
{
  "status": 200,
  "message": "Encrypted",
  "body":"KvcdLtHvfNDmCRRowHEGDw=="
}

Decrpyt

The endpoint used to decrypt encrypted data

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • bodyrequired

    Encrypted data must be String.

POST 
/crypto/decode
1
2
3
4
curl https://api.wallids.com/crypto/decode \
  -X POST \
  -d secretKey=YOUR_SECRET_KEY \
  -d body=KvcdLtHvfNDmCRRowHEGDw== 

  
                        
Response
{
  "status": 200,
  "message": "Decrypted",
  "body":"wallids"
}

Jwt

The Endpoint for generating Tokens or converting/using data to tokens for you to follow a user.

You can store your data more securely thanks to unique keys that are completely unique to the website.

Sign

The endpoint used to encrypt your Object data

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • signrequired

    Encrypted data must be Object.

POST 
/jwt/sign
1
2
3
4
curl https://api.wallids.com/verify/sign \
-X POST \
-d secretKey=YOUR_SECRET_KEY \
-d sign={ username=root,
          email=info@wallids.com,
          password=so_secret_pass
        } 

                      
Response
{
 "status": 200,
 "message": "Success",
 "body":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJuYW1lIjoicm9vdCIsImVtYWlsIjoiaW5mb0B3YWxsaWRzLmNvbSIsInBhc3N3b3JkIjoic29fc2VjcmV0X3Bhc3MifSwiaWF0IjoxNjIyODQ3NTI0LCJleHAiOjE2MjM0NTIzMjR9.PSTkc7afN3pgI_dDUGvTTQGx3PWbWuxbnGJtvSNBo_c"
}

Verify

The endpoint used to decrpyt your Object data

Parameters
  • secretKeyrequired

    String unique identifier for the object.

  • verifyrequired

    Encrypted data must be String.

POST 
/jwt/verify
1
2
3
4
curl https://api.wallids.com/jwt/verify \
-X POST \
-d secretKey=YOUR_SECRET_KEY \
-d verify=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJuYW1lIjoicm9vdCIsImVtYWlsIjoiaW5mb0B3YWxsaWRzLmNvbSIsInBhc3N3b3JkIjoic29fc2VjcmV0X3Bhc3MifSwiaWF0IjoxNjIyODQ3NTI0LCJleHAiOjE2MjM0NTIzMjR9.PSTkc7afN3pgI_dDUGvTTQGx3PWbWuxbnGJtvSNBo_c 


                      
Response
{
 "status": 200,
 "message": "Success",
 "body": {
     "data":{
       "username": "root",
       "email": "info@wallids.com",
       "password": "so_secret_pass"
      },
      "iat": 1622847524,
      "exp": 1623452324
    }
  }

Token

The endpoint used to unique token code

Parameters
  • secretKeyrequired

    String unique identifier for the object.

POST 
/jwt/token
1
2
3
4
curl https://api.wallids.com/jwt/token \
-X POST \
-d secretKey=YOUR_SECRET_KEY \

                      
Response
{
 "status": 200,
 "message": "Created Token",
 "token": "meaS7CsSJaDOqkYjX+Tn9p3FPVtZU7gIBG6+RA7yDbJoPLPGxb5OotCGs+786z6/",
}