Execute Query
/v1/queryHTTPBearerAuthorizationBearer <token>AskRAI API key
application/json- body
prompt*PromptUser query text
length <= 10000thread_id?|Conversation thread ID, a UUID of any version: its 32 hex digits in any case, hyphenated 8-4-4-4-12 or not, bare, in braces or after urn:uuid:. Generated if not provided. Kept as sent, so its session is read back under the same spelling.
execution_mode?|Execution mode to run under; must be one of the credential's allowed modes. Omit to use the least-augmenting one it allows.
Successful Response
application/json- response
request_id*Request IdCorrelation ID (UUID v4)
created_at*Created AtRequest timestamp (ISO 8601)
date-timeanswer*AnswerGenerated response text
thread_id?|Conversation thread identifier
status*DeliveryStatusDelivery outcome: delivered, blocked, or low_confidence
"delivered""blocked""low_confidence"confidence?|Confidence details (None when status=blocked)
guardrails?array<>|Per-guardrail compliance results
citations?array<>|Source citations from knowledge base search
source_type?|The knowledge base search chosen for the question: qna or document, null when the answer was blocked. Set even when nothing it found answered the question.
audit_ref?|Audit event UUID for traceability
model_info?|Models used across pipeline stages
processing?|Processing metadata
agent_context?|Agent augmentation metadata (only in agent_augmentation mode)
curl -X POST 'https://public.askrai.ai/v1/query' \ -H 'Content-Type: application/json' \ -d '{ "prompt": "string"}'{ "request_id": "string", "created_at": "2019-08-24T14:15:22Z", "answer": "string", "thread_id": "string", "status": "delivered", "confidence": { "score": 0, "band": "high", "tool_confidence_score": 0 }, "guardrails": [ { "guardrail_id": "string", "name": "string", "category": "string", "compliant": true, "reasoning": "string" } ], "citations": [ { "source": "string", "title": "string", "item_id": "string", "document_id": "string", "content_pack_id": "string", "score": 0 } ], "source_type": "qna", "audit_ref": "string", "model_info": { "refinement_model": "string", "summarization_model": "string", "guardrail_model": "string" }, "processing": { "time_ms": 0, "model_tier": 0, "degraded_mode": false, "routing_source": "string" }, "agent_context": { "suggested_next_action": "string", "answer_format": "structured_text", "blocked_reason": "string", "knowledge_grounded": true, "source_type": "string" }}