API docs
Create a short link for 0.05 USDC on Base.
Request
POST /v1/links
Content-Type: application/json
Idempotency-Key: 78142563-125d-43f0-b82a-e6dbba36c423
{
"url": "https://example.com/campaign",
"slug": "spring-campaign"
}
Omit slug for a generated alias. Custom slugs allow lowercase letters, digits, and single hyphens between segments, up to 64 characters.
Use GET /v1/slugs/{slug} to check availability. A slug is reserved when a signed request starts settlement.
Payment
Read the x402 v2 challenge from PAYMENT-REQUIRED. Sign the Base USDC authorization and submit it in PAYMENT-SIGNATURE with the same body and UUID v4 key.
Response
201 Created
{
"short_url": "https://sinko.app/spring-campaign"
}
A 201 includes PAYMENT-RESPONSE. On timeout, 429, or 503, retry with the same body, key, and signature. Follow Retry-After when present. A 409 indicates a conflict or an expired payment.
QR codes
POST /v1/qr takes a JSON body with a url and costs 0.01 USDC on Base. A successful response contains a PNG and a PAYMENT-RESPONSE header.