{"uid":"cap_LMHrPFY9AyIPo5KhRHz3u","slug":"gateway-spraay-app-1f5f00ee","name":"Spraay Audit Trail Query","description":"Query audit trail by actor, action, resource, time range.","url":"https://gateway.spraay.app/api/v1/audit/query","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"actor":{"type":"string"},"since":{"type":"string"},"until":{"type":"string"},"action":{"type":"string"},"resource":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"entries":{"type":"array"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"actor":"user:alice","since":"2025-01-01T00:00:00Z","until":"2025-01-31T23:59:59Z","action":"delete","resource":"documents"}}},"response":{"total":0,"entries":[],"_gateway":{"version":"2.9.0","provider":"spraay-x402"},"timestamp":"2026-06-03T22:55:55.477Z"}},"exampleRequest":{"actor":"user:alice","since":"2025-01-01T00:00:00Z","until":"2025-01-31T23:59:59Z","action":"delete","resource":"documents"},"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rjlUmOX_SPcJoqAc58Lkt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Query an audit trail filtered by actor, action, resource, and time range to retrieve historical event logs.","exampleAgentPrompt":"Show me all the audit log entries for actor 'user:alice' where the action was 'delete' on the 'documents' resource, from January 1 2025 to January 31 2025.","exampleUseCases":null,"resultDescription":"Returns an array of audit log entries matching the query filters, each entry containing details about the actor, action performed, resource affected, and timestamp of the event.","failureModes":["Invalid or missing time range formats for since/until returning a 400 error","Unknown actor or resource identifier returning empty results","Time range too broad causing timeout or truncated results","Malformed query parameters returning a validation error","Payment failure via x402 protocol returning 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need to look up historical audit events filtered by specific criteria such as who performed an action, what action was taken, which resource was affected, or during a specific time window. Prefer this over log query endpoints when the domain is access/audit rather than general system logs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:40:16.537Z","isFirstParty":false}