{"uid":"cap_LyeoGqLt2ztneibQwut97","slug":"delx-commerce-url-encode-api-5c977226","name":"Delx Commerce URL Encode API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/url-encode?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"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","example"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q4nSwkoua0biUhqtbExHf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Encodes HTTP request bodies (JSON, form-data, or text) into a URL-safe encoded format for use in agent workflows","exampleAgentPrompt":"Encode this JSON body as a URL-safe string for a POST request: {\"name\": \"Alice\", \"email\": \"alice@example.com\", \"plan\": \"premium\"} — the body type is JSON and I expect the output back as JSON.","exampleUseCases":[{"title":"Encoding JSON payload for API call","prompt":"I need to URL-encode this JSON object before sending it as a POST body: {\"userId\": \"abc123\", \"action\": \"subscribe\", \"tier\": \"gold\"} — the body type is JSON, and return the result as JSON."},{"title":"Form-data encoding for web submission","prompt":"Encode this form-data body for a POST request — fields are name=John, email=john@example.com, message=Hello — body type is form-data, and give me the encoded result as JSON."},{"title":"Text payload URL encoding","prompt":"I have a plain text body I need URL-encoded for a PUT request: 'Hello World! This is a test message.' — body type is text, output as JSON please."}],"resultDescription":"A JSON object containing the URL-encoded representation of the submitted HTTP request body. The exact structure of the response follows the output example provided in the request, adapted to reflect the encoded content.","failureModes":["Missing required fields (input or output) returns a validation error","Invalid bodyType enum value (must be json, form-data, or text) causes rejection","Malformed body object that cannot be serialized may result in encoding failure","Payment failure via x402 protocol results in 402 response and no encoding performed","Unsupported HTTP method (only POST, PUT, PATCH allowed) causes request rejection"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call URL encoding utility without requiring API keys or signup. It is ideal for AI agents that need to dynamically prepare HTTP request bodies in URL-safe format on demand, especially in x402-compatible micropayment workflows on Base or Solana. Prefer this over self-hosted solutions when you want verifiable delivery and exact pricing per operation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:08.188Z","isFirstParty":false,"canonicalSlug":"delx-commerce-url-encode-api-5c977226"}