{"uid":"cap_wGmf8d366N9KYTgqrtVTt","slug":"agishub-url-shortener-85546ab4","name":"AGISHub URL Shortener","description":"Shorten a long URL into a compact api.agishub.com/s/<code> link that redirects to the original. Codes are stored for a year.","url":"https://api.agishub.com/paid/shorten","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","description":"The long http/https URL to shorten."}},"additionalProperties":false},"type":{"enum":["http"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type","example"],"properties":{"type":{"enum":["json"],"type":"string"},"example":{"type":"object"}},"additionalProperties":false}}},"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_2A6AhJDuIEJ5F8GXvwlee","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":"Shortens a long URL into a compact api.agishub.com/s/<code> redirect link stored for one year.","exampleAgentPrompt":"Can you shorten this URL for me so I can share it easily? Here's the link: https://www.example.com/very/long/path/to/some/article?with=lots&of=query&params=true","exampleUseCases":[{"title":"Sharing a long article link","prompt":"This article URL is way too long to paste in my message — can you shorten https://www.nytimes.com/2024/05/10/technology/artificial-intelligence-agents-future.html into something compact?"},{"title":"Tidy link for social media post","prompt":"I'm drafting a tweet and need a shorter link — please shrink https://docs.myproduct.com/getting-started/installation/macos-setup?ref=homepage&campaign=spring2024 so it fits nicely."},{"title":"Clean URL for email campaign","prompt":"I need a short redirect link for my newsletter — shorten https://shop.mybrand.com/collections/summer-sale?utm_source=email&utm_medium=newsletter&utm_campaign=june2024_promo for me."}],"resultDescription":"A JSON object containing the shortened URL in the form api.agishub.com/s/<code>, which redirects to the original long URL and remains active for one year.","failureModes":["Invalid or non-http/https URL provided — returns a 400-level error","URL is unreachable or malformed — may be rejected","Payment not fulfilled — returns 402 Payment Required","Service unavailable — returns 5xx error"],"whenToPreferThis":"Choose this endpoint when an agent needs to programmatically shorten URLs and is already operating within the agishub.com ecosystem, or when x402 micropayment-compatible URL shortening is required. Well-suited for automated workflows that generate many links needing compact shareable forms.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:50:47.823Z","isFirstParty":false}