Skip to main content
POST
Securitron Bot

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

prompt
string
default:Who am i?

A user prompt

Example:

"Who am i?"

sessione_id
string
default:123

A random ID defined from the client, to be used as a sessione_id

Example:

"123"

stream
boolean
default:true

true or false, to receive the data in streaming

Example:

false

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

Example:

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