{"uid":"cap_qo4rWc62Y96JieOas6Z55","slug":"gedx402-vector-search-upsert-3d7b7d74","name":"GEDX402 Vector Search Upsert","description":"x402 workers ai. pay with usdc on base, polygon, arbitrum, world, or solana. no api keys.","url":"https://ged-x402-search.jvalamis.workers.dev/v1/search/upsert","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"metadata":{"type":"object","additionalProperties":true},"namespace":{"type":"string"}}},"responseSchema":{"type":"json","example":{"id":"doc-1","mutationId":"…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DCMJhIHK_pnIc_VXe0XWH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Embeds and stores a document (or raw vector) in a namespace-isolated vector index, returning the stored document ID and mutation ID.","exampleAgentPrompt":"Store the following text in my 'project-alpha' namespace so I can search it later: 'Quarterly revenue grew 12% driven by enterprise sales expansion in EMEA' — use document id 'q3-report-2024' and tag it with metadata {source: 'finance', quarter: 'Q3'}.","exampleUseCases":null,"resultDescription":"A JSON object containing the stored document's `id` (string) and a `mutationId` (string) confirming the write was accepted by the vector index.","failureModes":["Missing required 'id' field returns a 400 validation error","Namespace string outside 2-64 character range is rejected","Vector dimension mismatch (not 768 dims) causes an indexing error","Payment not provided or insufficient USDC triggers a 402 Payment Required response","Batch documents array with malformed entries (missing id or text) returns partial or full failure","Rate limiting or worker timeout on very large batch upserts"],"whenToPreferThis":"Use this endpoint when you need to embed and store documents into a namespace-isolated vector index without managing API keys, paying per-call in USDC via x402 on Base, Polygon, Arbitrum, World, or Solana. Prefer this over managed vector DB SDKs when operating in a serverless or crypto-native agent environment where key management is undesirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:41:14.424Z","isFirstParty":false}