{"uid":"cap__kdMNpseyclP9D-AMOPVw","slug":"gateway-spraay-app-a93a87ba","name":"Spraay Gateway Log Query","description":"Query structured logs by service, level, time.","url":"https://gateway.spraay.app/api/v1/logs/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":{"level":{"type":"string"},"limit":{"type":"string"},"since":{"type":"string"},"service":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"logs":{"type":"array"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"level":"ERROR","limit":"100","since":"2024-01-01T00:00:00Z","service":"payment-service"}}},"response":{"logs":[],"total":0,"_gateway":{"version":"2.9.0","provider":"spraay-x402"},"timestamp":"2026-06-02T04:34:08.247Z"}},"exampleRequest":{"level":"ERROR","limit":"100","since":"2024-01-01T00:00:00Z","service":"payment-service"},"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ymVan9FWWlukOgIUfpQ0z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Query and filter structured application logs by service name, log level, and time range","exampleAgentPrompt":"Can you pull the last 100 error-level logs from the payment service since midnight today so I can debug what's going wrong?","exampleUseCases":[{"title":"Incident investigation for auth service","prompt":"Pull all critical and error logs from the auth service over the last 6 hours — something went wrong with logins and I need to figure out what happened."},{"title":"Warning logs since last deployment","prompt":"Can you grab all warning-level logs from the orders service since 2pm yesterday? I want to review anything suspicious that showed up after our last deployment."},{"title":"Automated daily log digest","prompt":"Fetch all error and critical logs across the payment and notification services from the past 24 hours so I can put together the morning incident summary report."}],"resultDescription":"An array of structured log entries matching the query filters, each containing at minimum the log level, service name, timestamp, and message content.","failureModes":["Invalid log level value returns 400 Bad Request","Unrecognized service name may return empty results rather than an error","Malformed 'since' timestamp format causes query failure","Exceeding rate limits or payment failure (x402) blocks the request","Very large limit values may be capped or cause timeout"],"whenToPreferThis":"Use this endpoint when you need to programmatically retrieve and filter structured application logs by service name, severity level, or time window — especially useful for debugging, incident investigation, or automated log analysis workflows within the Spraay gateway ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:44:19.896Z","isFirstParty":false}