1. 01

    Prompt analysis

    Every incoming prompt is intercepted and analyzed by an injection classifier trained on known attack vectors and anomalies. The answer carries requestId, isValid and threats.

  2. 02

    AironCore decision

    Based on security policies and threat intelligence, the firewall makes an instant decision: allow, redact or block.

  3. 03

    Secure execution

    Legitimate prompts go to the AI. The answer comes back through AironCore, which masks personal data and filters toxic content; threats are blocked and logged in the dashboard.

  • Allowed
  • Redacted (PII)
  • Blocked
  • invoice question: Allowed.
  • "ignore the rules…": Blocked. PROMPT_INJECTION
  • summary with e-mail: Redacted. PII masked
  • support request: Allowed.
  • "you are DevMode": Blocked. PROMPT_INJECTION
Integration

Two calls, any language

Once our team grants access, generate a key in the dashboard and send the x-api-key header. The examples below are the same for OpenAI, Gemini, Claude or your own model.

1. Before the model: analyze the prompt

Send the user text. If isValid is false, do not call the model.

curl -X POST https://api.aironcore.com/v1/analyze/prompt \
  -H "x-api-key: ac_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "What is the delivery time to Curitiba?"}'

# → {"requestId":"req_0a1b2c3d","isValid":true,"threats":[]}

2. After the model: analyze the response

Send the provider answer with the same requestId. Deliver sanitizedText to the user.

curl -X POST https://api.aironcore.com/v1/analyze/response \
  -H "x-api-key: ac_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"requestId": "req_0a1b2c3d", "responseText": "Delivery in 2 days. Questions: carla@example.com"}'

# → {"sanitizedText":"Delivery in 2 days. Questions: [EMAIL]","findings":["PII_B-EMAIL_DETECTED"],"moderationScores":{"OFFENSIVE-TOXICITY":0.01}}

3. Sentinel: test continuously

With the module enabled, install the agent in your environment and register the targets in the dashboard.

docker run -d --name aironcore-sentinel --restart unless-stopped \
  -e AIRONCORE_API_KEY=ac_live_YOUR_KEY \
  -e AIRONCORE_ENROLLMENT_TOKEN=acs_enroll_TOKEN_FROM_DASHBOARD \
  -e AIRONCORE_AGENT_NAME=prod-scanner-01 \
  -v aironcore-sentinel:/var/lib/aironcore-sentinel \
  southamerica-east1-docker.pkg.dev/aironcore/sentinel/agent:latest
Reference

Endpoints

POST/v1/analyze/prompt

Auth
x-api-key: ac_live_…
Body
{ "prompt": string (1–5000) }
→
{ requestId, isValid: boolean, threats: string[] }
  • threats may contain PROMPT_INJECTION or INVALID_INPUT.
  • Each call consumes 1 request from the monthly quota.
  • Errors: 400 (invalid input), 401 (invalid or revoked key), 429 (quota reached).

POST/v1/analyze/response

Auth
x-api-key: ac_live_…
Body
{ "requestId": string, "responseText": string (≤10000) }
→
{ sanitizedText, findings: string[], moderationScores: Record<string, number> }
  • findings: PII_<ENTITY>_DETECTED and CONTENT_FLAGGED_OFFENSIVE_<LABEL>.
  • Toxic content above the threshold replaces the whole text.
  • The requestId must belong to the same organization.

Seamless integration with the best tools

AironCore is designed to be platform-agnostic. Add the security layer to your existing workflow in minutes, without rewriting your code or switching your AI provider.

Frequently asked questions

Do I need to use both endpoints?

No. Many teams start with the prompt firewall only and add response analysis later. Both together close the complete trail of the interaction.

How do I get a key?

Request access through the contact page: our team creates the organization and sends the invitation. Then, in the dashboard, open API Keys and generate one. It is shown once; keep it as an environment variable.

Is there an SDK?

The API is plain REST and works with any HTTP client. The curl, Node.js and Python examples cover the complete integration.

Can I use it with streaming?

Analyze the prompt before opening the stream and the complete answer at the end (or in chunks, with the same requestId).

Integrate AironCore today