{"uid":"cap_D-45DgAFc4ZZPSy_ygC8X","slug":"agent-rest-stop-backupkey-2866a06c","name":"Agent Rest Stop – BackupKey","description":"Latest backup object key and age.","url":"https://agent-gas-station.agent-gas-station.workers.dev/v1/BackupKey?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nSLtDAPsemaTRXOUe53R0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the latest backup object key and its age in seconds for agent state recovery","exampleAgentPrompt":"What's the latest backup key and how old is it — I want to know if we have a recent enough snapshot before I trigger a restore.","exampleUseCases":[{"title":"Pre-restore backup freshness check","prompt":"Before I roll back the agent state, can you check what the latest backup key is and tell me how old it is so I know if it's safe to restore from?"},{"title":"Monitoring backup staleness in automation","prompt":"Check the current backup key and its age — if it's more than an hour old I want to know so we can trigger a new backup."},{"title":"Recovering agent after crash","prompt":"My agent just crashed and I need to recover — pull the latest backup object key and age so I know what snapshot I can restore from."}],"resultDescription":"Returns the latest backup object key (a string identifier for the stored backup object) and its age (how long ago the backup was created, likely in seconds or a human-readable duration), enabling callers to assess whether the backup is recent enough for their recovery needs.","failureModes":["No backup exists yet — returns empty or null key","Backup metadata store unavailable — returns 5xx error","Payment not processed — returns 402 Payment Required","Request body malformed — returns 400 with schema validation error","Worker cold start timeout — returns 503"],"whenToPreferThis":"Choose this endpoint when you need to programmatically discover the most recent backup object key and assess its freshness before initiating a restore or recovery workflow. Prefer this over filesystem or storage-native listing when operating within an agent pipeline that already uses the Agent Rest Stop ecosystem and needs a single consistent API call to get backup state.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:40:54.794Z","isFirstParty":false,"canonicalSlug":"agent-rest-stop-backupkey-2866a06c"}