{"uid":"cap_Hzj074-lCa2Fhi90rx3v-","slug":"stableschedule-create-cron-schedule-bdc24421","name":"StableSchedule - Create Cron Schedule","description":"Prepaid cron scheduling for HTTP webhooks.","url":"https://stableschedule.dev/api/schedule/create","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sku":{"enum":["1k","10k","100k"],"type":"string"},"cron":{"type":"string","maxLength":120,"minLength":1},"name":{"type":"string","maxLength":120,"minLength":1},"request":{"type":"object","required":["url","method","headers"],"properties":{"url":{"type":"string","format":"uri","maxLength":2048},"body":{},"method":{"enum":["GET","POST","PUT","PATCH","DELETE"],"type":"string","default":"POST"},"headers":{"type":"object","default":{},"propertyNames":{"type":"string","maxLength":120,"minLength":1},"additionalProperties":{"type":"string","maxLength":4096}},"timeout_ms":{"type":"integer","maximum":30000,"minimum":1000}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"schedule":{"id":"sch_example","cron":"0 9 * * *","name":"Daily sync","status":"active","credits":{"used":0,"total":1000,"remaining":1000},"request":{"url":"https://api.example.com/webhook","body":{"event":"scheduled_run"},"method":"POST","headers":{"content-type":"application/json"},"timeout_ms":30000},"created_at":"2026-05-25T00:00:00.000Z","updated_at":"2026-05-25T00:00:00.000Z","last_run_at":null}}},"example":{"request":{"sku":"1k","cron":"0 9 * * *","name":"Test Daily Webhook","request":{"url":"https://httpbin.org/post","body":{"event":"scheduled_test","timestamp":"2024-01-15T09:00:00Z"},"method":"POST","headers":{"Content-Type":"application/json"},"timeout_ms":5000}},"response":{"schedule":{"id":"sch_4dWPyunlGTevjqfImtbLh9Ax","cron":"0 9 * * *","name":"Test Daily Webhook","status":"active","credits":{"used":0,"total":1000,"remaining":1000},"request":{"url":"https://httpbin.org/post","body":{"event":"scheduled_test","timestamp":"2024-01-15T09:00:00Z"},"method":"POST","headers":{"Content-Type":"application/json"},"timeout_ms":5000},"created_at":"2026-06-18T06:22:50.013Z","updated_at":"2026-06-18T06:22:50.013Z","last_run_at":null}}},"exampleRequest":{"sku":"1k","cron":"0 9 * * *","name":"Test Daily Webhook","request":{"url":"https://httpbin.org/post","body":{"event":"scheduled_test","timestamp":"2024-01-15T09:00:00Z"},"method":"POST","headers":{"Content-Type":"application/json"},"timeout_ms":5000}},"tags":["x402"],"displayCostAmount":"1","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":"$1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zEMvTFeITMecJwKMhkcte","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a prepaid HTTP webhook schedule that fires on a cron expression, with a selected credit tier determining how many executions are included.","exampleAgentPrompt":"Set up a StableSchedule cron job that POSTs to https://api.myapp.com/daily-sync every day at 9am UTC — use the 1k credit tier, name it 'Daily Sync', include a JSON body with event set to 'scheduled_run', and set a 30-second timeout.","exampleUseCases":null,"resultDescription":"Returns a schedule object containing a unique schedule ID, the cron expression, schedule name, active status, credit usage breakdown (used/total/remaining based on selected SKU), full request configuration (URL, method, headers, body, timeout), and creation/update timestamps.","failureModes":["Invalid cron expression returns a 400 validation error","Unsupported SKU value (not '1k', '10k', or '100k') returns a 400 error","Malformed or non-URI webhook URL returns a 400 validation error","Payment failure (insufficient USDC or x402 issue) returns a 402 error","Timeout value outside 1000–30000ms range returns a 400 error","URL exceeds 2048 character limit returns a 400 error"],"whenToPreferThis":"Choose this endpoint when you need to set up a recurring HTTP webhook triggered by a cron expression with prepaid credits billed per-schedule-creation. It is ideal for serverless or agent-driven automation where you want a managed scheduler without running your own cron infrastructure, and where payment via USDC/x402 is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:35:40.529Z","isFirstParty":false}