{"uid":"cap_yQgPNYQNZXKBKXB6HPYv_","slug":"agentbodega-artifact-hosting-c8b62383","name":"AgentBodega Artifact Hosting","description":"Small x402-payable utility APIs for agents: endpoint inspection, launch checks, and hosted artifacts.","url":"https://agentbodega.store/api/artifacts","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"body":{"fields":[{"name":"kind","type":"string","required":true},{"name":"content","type":"any","required":true},{"name":"contentType","type":"string","required":false},{"name":"ttlSeconds","type":"integer","required":false},{"name":"filename","type":"string","required":false}],"required":["kind","content"],"fieldCount":5,"contentType":"application/json","optionalPreview":["contentType","ttlSeconds","filename"],"omittedFieldCount":0},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}}},"output":{"type":"object","properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"bytes":128,"expiresAt":"2026-07-04T16:00:00.000Z","artifactUrl":"signed hosted URL"}},"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_mhtbJERVPV-mbFLZ-wjzM","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":"Stores arbitrary content (text, JSON, binary) as a hosted artifact and returns a signed URL for retrieval, with optional TTL-based expiry.","exampleAgentPrompt":"Store this JSON report as a hosted artifact with a 24-hour expiry — the kind is 'json', and here's the content: {\"summary\": \"Q2 results\", \"total\": 42000} — and give me back the signed URL I can share.","exampleUseCases":[{"title":"Share agent output via URL","prompt":"Take the markdown report I just generated and host it as an artifact with a 3600-second TTL so I can share a link with my team — the content type is text/markdown and call the file 'weekly-summary.md'."},{"title":"Handoff data between agents","prompt":"Store this JSON blob as a hosted artifact so the downstream agent can fetch it by URL: {\"task\": \"process\", \"items\": [1,2,3]} — use kind 'json' and set it to expire in 7200 seconds."},{"title":"Serve binary output temporarily","prompt":"I need to host this base64-encoded PDF as an artifact with a filename of 'invoice-2024.pdf' and content type 'application/pdf' — give me the signed URL so the user can download it."}],"resultDescription":"Returns a JSON object containing the size of the stored artifact in bytes, an ISO 8601 expiry timestamp, and a signed hosted URL where the artifact can be retrieved until it expires.","failureModes":["Missing required fields 'kind' or 'content' results in a 400 validation error","Content too large for the $0.01 tier may be rejected","Payment not completed via x402 protocol returns a 402 Payment Required response","Invalid contentType string may cause storage or retrieval issues","Expired artifacts return a 404 or access-denied when fetched after TTL"],"whenToPreferThis":"Use this endpoint when an AI agent needs to externalize output — a report, a JSON blob, a binary — as a retrievable URL for sharing, handoff to another agent, or downstream consumption, and when paying per-call via x402 micropayments is acceptable. Prefer this over full S3/cloud storage when you need a lightweight, instant, no-setup hosted link with optional TTL, especially within agent pipelines already using the AgentBodega x402 ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:01.230Z","isFirstParty":false}