Documentation
Postman collection
Import into Postman
Validate + WARN approval polling requests with variables.
Download the JSON directly: ai-safety-gate.postman_collection.json
1) In Postman, click Import.
2) Paste the JSON below or upload the downloaded file.
3) Set collection variables:
Variables
baseUrl = https://aisafegate.com apiKey = YOUR_API_KEY
Collection JSON
{ "info": { "_postman_id": "00000000-0000-0000-0000-000000000000", "name": "AI Safety Gate — Public API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "variable": [ { "key": "base_url", "value": "https://aisafegate.com", "type": "string" }, { "key": "api_key", "value": "REPLACE_ME", "type": "string" }, { "key": "decision_id", "value": "dec_123", "type": "string" }, { "key": "approval_token", "value": "appr_abc", "type": "string" } ], "item": [ { "name": "Validate (POST /api/validate)", "request": { "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer {{api_key}}", "type": "text" }, { "key": "Content-Type", "value": "application/json", "type": "text" } ], "body": { "mode": "raw", "raw": "{\n \"ai_output\": \"Draft an email confirming a refund.\",\n \"context\": {\n \"actionKind\": \"llm_output\",\n \"actionType\": \"llm_text\"\n }\n}" }, "url": { "raw": "{{base_url}}/api/validate", "host": [ "{{base_url}}" ], "path": [ "api", "validate" ] } }, "response": [] }, { "name": "Approval status (GET /api/decisions/:id/approval)", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer {{api_key}}", "type": "text" } ], "url": { "raw": "{{base_url}}/api/decisions/{{decision_id}}/approval?approval_token={{approval_token}}", "host": [ "{{base_url}}" ], "path": [ "api", "decisions", "{{decision_id}}", "approval" ], "query": [ { "key": "approval_token", "value": "{{approval_token}}" } ] } }, "response": [] } ] }
Disclaimer
This documentation is provided for general information only. It is not legal advice, not a guarantee of compliance, and not a substitute for your own security review. You are responsible for evaluating and meeting any legal, regulatory, and contractual obligations applicable to your use case.