Skip to main content
POST
Generate Script from Prompt

Authorizations

Authorization
string
header
required

Altostrat SDX API uses JWT Bearer tokens for authentication. Obtain a token via the Authentication API and include it in the Authorization header as 'Bearer {token}'.

Body

application/json
prompt
string
required

The natural language prompt describing the desired script.

Maximum string length: 200
Example:

"Create a firewall rule to block all incoming traffic on port 22 from the internet."

Response

The AI-generated script and analysis.

response
object[]
tokenUsage
object
response_id
string
Example:

"cmpl-8fV3x5m7y6z4w3v2u1t0s"