POST
/
api
/
v2
/
ai
/
securitron
curl --request POST \
  --url https://aquilax.ai/api/v2/ai/securitron \
  --header 'Content-Type: application/json' \
  --header 'X-AX-KEY: <api-key>' \
  --data '{
  "prompt": "Who am i?",
  "sessione_id": "123",
  "stream": false
}'
"Hey Name Surname!  \nYou authenticated via google using `[email protected]`. \n"

Authorizations

X-AX-KEY
string
header
required

Query Parameters

org
string
required

Organization ID

group
string
required

Group ID

Body

application/json

Data to submit on your request to Securitron

Response

200 - text/markdown

Successful response with a structured text output

Since the content type is always set to text/markdown, it should consistently be processed as such. This applies even if an API call fails with a status code other than 200β€”the response body will still contain a markdown-formatted message conveying the necessary information to the user. The only exception is when the content type is set to stream; in that case, the content should still be treated as markdown but delivered in a streaming format.

Python code example to read the data in stream

import requests

url = "https://aquilax.ai/api/v2/<your_own_org>/securitron"

payload = {
"prompt": "what is sql injection?",
"group_id": "<your_own_group>",
"sessione_id": "<random session id>",
"stream": True
}

headers = {
"X-AX-KEY": "", # Add your API key here
"Content-Type": "application/json"
}

def stream_response(url, payload, headers):
"""
Sends a POST request with streaming enabled and processes the response in real-time.
"""
with requests.post(url, json=payload, headers=headers, stream=True) as response:
response.raise_for_status() # Ensure request was successful

for line in response.iter_lines():
if line:
decoded_line = line.decode('utf-8')
print(f"Received: {decoded_line}")

# Call the function
stream_response(url, payload, headers)
Example:

"Hey Name Surname! \nYou authenticated via google using[email protected]. \n"