Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shashank-H/gaiter-gaurd/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Authentication
RequiresAgent-Key header with valid agent API key.
Path Parameters
Unique identifier for the approval queue entry. Returned in the
action_id field of a 428 Risk-Blocked response.Example: act_7f8e9d0c1b2a3456Response States
The response shape varies based on the current status of the approval queue entry.PENDING
Request is awaiting human approval."PENDING"The action identifier
ISO 8601 timestamp when the request was created
APPROVED
Request has been approved and is ready to execute."APPROVED"The action identifier
URL to execute the approved request:
/proxy/execute/:actionIdDENIED
Request was denied by a human reviewer."DENIED"The action identifier
ISO 8601 timestamp when the request was denied (nullable)
EXPIRED
Approval has expired (TTL exceeded before execution)."EXPIRED"The action identifier
EXECUTED
Request has been executed and the result is available."EXECUTED"The action identifier
Error Responses
401 Unauthorized
Invalid or missing
Agent-Key header404 Not Found
- Action not found
- Action belongs to a different agent (ownership check)
500 Internal Server Error
Unknown action status or server error
Examples
Polling Strategy
When a request is blocked (428 response), implement a polling loop:- Extract
action_idfrom the 428 response - Poll
GET /status/:actionIdwith exponential backoff - Check the
statusfield:- PENDING: Continue polling
- APPROVED: Call
POST /proxy/execute/:actionIdto execute - DENIED: Handle denial (e.g., log, alert, abort)
- EXPIRED: Resubmit via
POST /proxyif still needed - EXECUTED: Use the cached result from the response
Ownership Security
The endpoint implements strict ownership checks:- Only the agent that created the request can view its status
- Returns 404 for both “not found” and “wrong agent” cases
- Prevents information disclosure about other agents’ requests
State Transitions
- PENDING → APPROVED: Human approves the request
- PENDING → DENIED: Human denies the request
- PENDING → EXPIRED: Approval TTL expires before decision
- APPROVED → EXECUTED: Agent calls POST /proxy/execute/:actionId
- APPROVED → EXPIRED: Execution TTL expires before agent executes