{"uid":"cap_AoYJYxWd6zjrD81eWGZEi","slug":"delx-commerce-timestamp-bucket-alignment-8157f9c8","name":"Delx Commerce — Timestamp Bucket Alignment","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/timestamp-align?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"timestamps":{"type":"array","description":"ISO-8601 timestamps to bucket-align in UTC."},"interval_seconds":{"type":"number","description":"Bucket width in seconds."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-timestamp-align/v1","aligned":["2026-08-06T10:00:00Z","2026-08-06T10:00:00Z"],"truncated":false,"valid_count":2,"interval_seconds":60}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VMIW81Y9maUcPE15FCIYM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Aligns a list of ISO-8601 UTC timestamps to fixed-width time buckets given a specified interval in seconds","exampleAgentPrompt":"Can you align these timestamps — 2026-08-06T10:01:32Z, 2026-08-06T10:03:45Z, 2026-08-06T10:07:10Z — to the nearest 60-second bucket?","exampleUseCases":[{"title":"Normalizing sensor readings for charting","prompt":"I have a bunch of IoT sensor timestamps that arrive at irregular times — 2026-08-06T09:47:12Z, 2026-08-06T09:52:45Z, 2026-08-06T10:01:03Z — can you snap them all to the nearest 5-minute (300-second) bucket so I can plot them evenly?"},{"title":"Aligning log events for aggregation pipeline","prompt":"Before I count errors per minute, can you align these log timestamps to 60-second intervals: 2026-08-06T14:00:08Z, 2026-08-06T14:00:52Z, 2026-08-06T14:01:37Z?"},{"title":"Grouping purchase events by 15-minute windows","prompt":"I want to bucket these order timestamps into 15-minute (900-second) intervals for a sales report — 2026-08-06T08:03:22Z, 2026-08-06T08:11:05Z, 2026-08-06T08:28:59Z — can you align them?"}],"resultDescription":"Returns a JSON object with the schema identifier 'delx/util-timestamp-align/v1', an array of bucket-aligned ISO-8601 UTC timestamps corresponding to each input, the interval_seconds used, the count of valid timestamps processed, and a boolean 'truncated' flag indicating whether any inputs were dropped.","failureModes":["Invalid or malformed ISO-8601 timestamps cause rejection or zero valid_count","Missing interval_seconds parameter results in an error response","Non-positive or zero interval_seconds is rejected","Very large arrays of timestamps may be truncated (truncated: true in response)","Payment failure via x402 prevents the call from being processed"],"whenToPreferThis":"Choose this endpoint when you need a quick, stateless, pay-per-call computation to floor or bucket-align a batch of timestamps to uniform intervals — especially in agent workflows where no signup or persistent session is desired and USDC micropayment via x402 is acceptable. Prefer it over writing custom rounding logic when you want a verifiable, consistent result with a defined schema output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:40.330Z","isFirstParty":false,"canonicalSlug":"delx-commerce-timestamp-bucket-alignment-8157f9c8"}