Schedules
How to test an HTTP schedule before activating it
Run a paused SendMQ schedule once, inspect the delivery, and verify the first automatic run in your schedule history.
By SendMQ 2 min read
How do you test the saved request?
Create your schedule in a paused state, then open Schedules in the SendMQ console and select Run once. The test job uses the saved URL, HTTP method, and headers. The schedule stays paused while you inspect the result.
For a daily report, use a test workspace and an endpoint that writes to a test destination. You can override the JSON body for this run if the handler accepts a test report date. Leave the override blank to exercise the saved body. Your handler must explicitly support any test flag you send.
How do you run the test from the API?
Send a POST to /v1/schedules/{id}/run-once with a workspace API key that has schedules:write. Send an empty JSON object to use the saved body. The 202 response contains the job ID. If the submission times out, repeat the same request with the same Idempotency-Key to recover that job ID. Use a fresh key when you intend to create another test job.
curl "https://sendmq.com/v1/schedules/$SCHEDULE_ID/run-once" \
-H "Authorization: Bearer $SENDMQ_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: schedule-test-report-01" \
-d '{}'What should you verify before resuming?
Run once queues a job with one automatic delivery attempt. Check its HTTP result in the console or call GET /v1/jobs/{id}/attempts with jobs:read. Confirm that your handler produced the expected business result, such as a report for the intended date. If you change the saved schedule to fix a failure, test the updated configuration before resuming.
Before resuming the schedule, check the expression and time zone. After the first expected occurrence, open History or call GET /v1/schedules/{id}/runs with schedules:read. Find the automatic run and check its result. In the API response, last_success_at tracks automatic successes, so a successful manual test leaves that timestamp unchanged.