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 approved request. Obtained from the
execute_url field when polling GET /status/:actionId returns APPROVED status.Example: act_7f8e9d0c1b2a3456Request Body
No request body required. All request parameters are retrieved from the stored approval queue entry.Response
Success Response (200 OK)
Request was successfully executed.HTTP status code from the target service
Response headers from the target service, including:
Content-Type: Preserved from target responseX-Proxy-Status: Always"executed-approved"for executed requests
Response body from the target service (as received)
Error Responses
401 Unauthorized
Invalid or missing
Agent-Key header404 Not Found
- Action not found
- Action belongs to a different agent (ownership check)
409 Conflict
Cannot execute action with current status (e.g., still PENDING, already EXECUTED, DENIED, EXPIRED)
410 Gone
- Approval has expired (TTL exceeded) - resubmit via POST /proxy
- Service no longer exists
413 Payload Too Large
Response size exceeds 10MB limit
500 Internal Server Error
- No credentials found for service
- Failed to decrypt credentials
- Unsupported authentication type
502 Bad Gateway
Failed to forward request to target service
504 Gateway Timeout
Request timeout (30 second limit exceeded)
Examples
Execution Flow
- Authentication - Validate
Agent-Keyheader - Fetch Entry - Retrieve approval queue entry by actionId
- Ownership Check - Verify the action belongs to the requesting agent
- Status Check - Verify status is
APPROVED(not PENDING, DENIED, EXPIRED, or EXECUTED) - TTL Check - Verify approval hasn’t expired (approvalExpiresAt)
- Service Lookup - Fetch service record for authType
- Credential Injection - Parse stored headers and inject fresh credentials from vault
- Forward Request - Send the stored request to the target service
- Cache Response - Mark as EXECUTED and store response (fire-and-forget)
- Return Response - Return target service response with
X-Proxy-Status: executed-approved
Security Features
Fresh Credential Injection
Credentials are never stored in the approval queue. When executing an approved request:- Headers are stored without
AuthorizationorAgent-Key - At execution time, credentials are retrieved fresh from the encrypted vault
- Credentials are injected based on the service’s
authType - This prevents credential leakage through the approval queue
Ownership Validation
Only the agent that created the request can execute it:- Returns 404 for both “not found” and “wrong agent” cases
- Prevents unauthorized execution of approved requests
Time-To-Live (TTL)
Approvals have an expiration time (approvalExpiresAt):
- If TTL expires before execution, status transitions to
EXPIRED - Returns 410 Gone with instructions to resubmit via POST /proxy
- Prevents execution of stale approvals
One-Time Execution
Once executed, the action transitions toEXECUTED status:
- Subsequent execution attempts return 409 Conflict
- The cached response is available via
GET /status/:actionId - To re-execute, submit a new request via
POST /proxy