# Netsware API > Netsware is a business-hours-aware scheduler and monitor. It knows when businesses > in 200+ countries are open (working days, hours, public holidays, timezones) and it > calls your URLs at the right time: only during business hours if you want, with > retries, failure alerts and full run history. Everything is available over a REST API > that an AI agent can drive with nothing but an API key. **Read the complete guide before acting: https://app.netsware.com/llms-full.txt** It explains the concepts, the rules to follow, step-by-step recipes and every field of every endpoint. - Base URL: https://app.netsware.com - Auth: header `X-API-Key: nw_live_…` on every request (not Authorization: Bearer). Keys are created in the dashboard under API Keys; a read-only key cannot write. - Start here: `GET /v1` lists every endpoint. - Doctrine: webhooks PUSH what happened (real time); the API READS the authoritative state. A missed webhook is reconciled with GET /v1/runs and GET /v1/metrics. - Lists are paginated (page, limit ≤ 100); history windows follow the plan (7/30/60/90 days). Secret values are write-only. - Errors teach: every wrong request answers with `fields` (each problem, named), `usage` (every field + a working example) and `docs`. Read them, fix, retry. - OpenAPI 3.1 (v1.2.0): https://app.netsware.com/openapi.json - Human docs: https://app.netsware.com/docs - Official SDKs (Node.js and Python, tested examples): https://netsware.com/sdk ## Business Hours - GET /v1/check: Is it open? Check business hours at an instant - GET /v1/holidays: List public holidays for a country and year - GET /v1/hours/meta/countries: Supported countries with their timezones and weekends - GET /v1/hours/meta/regions: States/regions of a country (for region and regions[]) ## Schedules - GET /v1/schedules: List schedules - POST /v1/schedules: Create a business-hours schedule - GET /v1/schedules/stats: Count schedules by state - GET /v1/schedules/resolve: Combine several schedules: is any / are all open now? - GET /v1/schedules/{id}: Get one schedule - PUT /v1/schedules/{id}: Replace a schedule (send every field, like create) - DELETE /v1/schedules/{id}: Delete a schedule (soft by default) - GET /v1/schedules/{id}/check: Is this saved schedule open right now? - PUT /v1/schedules/{id}/active: Turn a schedule on or off ## Jobs - GET /v1/jobs: List jobs - POST /v1/jobs: Create a scheduled HTTP job - GET /v1/jobs/stats: Job and run counts - GET /v1/jobs/{id}: Get one job - PUT /v1/jobs/{id}: Change a job (send only the fields to change) - DELETE /v1/jobs/{id}: Cancel (delete) a job - PUT /v1/jobs/{id}/pause: Pause a job - PUT /v1/jobs/{id}/resume: Resume a paused job - POST /v1/jobs/{id}/trigger: Run a job now (manual test run) - POST /v1/jobs/{id}/retry: Retry a failed job or sequence ## Runs & Metrics - GET /v1/jobs/{id}/logs: Run history of one job - GET /v1/jobs/{id}/runs/{run_id}: One run in detail (every attempt) - GET /v1/runs: What is broken? Failed or deferred runs across all jobs - GET /v1/metrics: Daily monitoring totals ## Groups - GET /v1/groups: List job groups - POST /v1/groups: Create a group - GET /v1/groups/{id}: Get one group - PATCH /v1/groups/{id}: Rename a group - DELETE /v1/groups/{id}: Delete a group (its jobs become ungrouped) ## Variables - GET /v1/variables: List variables (secret values are never returned) - PUT /v1/variables: Create or update a variable - DELETE /v1/variables/{name}: Delete a variable ## Webhooks - POST /v1/webhooks/endpoints: Register one URL for many events (recommended) - GET /v1/webhooks/endpoints: List webhook endpoints - PATCH /v1/webhooks/endpoints/{id}: Change an endpoint (URL, events, on/off); the secret is kept - DELETE /v1/webhooks/endpoints/{id}: Delete an endpoint - POST /v1/webhooks/endpoints/{id}/test: Send a signed test event to an endpoint - GET /v1/webhooks/endpoints/{id}/deliveries: Recent deliveries to an endpoint - POST /v1/webhooks: Register a URL for ONE event (older style; prefer /v1/webhooks/endpoints) - GET /v1/webhooks: List single-event webhooks - DELETE /v1/webhooks/{id}: Delete a single-event webhook - GET /v1/webhooks/{id}/deliveries: Recent deliveries of a single-event webhook - POST /v1/webhooks/{id}/test: Send a signed test event to a single-event webhook ## Usage - GET /v1/usage: This month's usage against your plan ## Guides (step by step, for people and AI assistants) - https://netsware.com/guides/cron-skip-public-holidays: Cron cannot skip public holidays. Add a one-line holiday check to your cron script, or run the cron job on Netsware so holiday runs move to the next business day. - https://netsware.com/guides/sendgrid-send-business-hours: SendGrid cannot skip public holidays. Check each recipient's business hours with Netsware and set send_at, or let a Netsware job send campaigns on working days. - https://netsware.com/guides/hubspot-business-hours-holidays: HubSpot does not know each country's public holidays. A custom code action asks Netsware if a contact's business is open and delays the action until it opens. - https://netsware.com/guides/make-scenario-working-days: The Make scheduler cannot skip public holidays. Add an HTTP module that asks Netsware if the business is open and a filter, or let Netsware start the scenario. - https://netsware.com/guides/zapier-skip-weekends-holidays: Schedule by Zapier cannot skip public holidays. Add a webhook step that asks Netsware if the business is open and a filter, or let Netsware start your Zap. - https://netsware.com/guides/run-webhook-during-business-hours: Cron cannot limit a webhook to business hours or skip public holidays. Attach the job to a Netsware business-hours schedule and runs wait until the business opens. - https://netsware.com/guides/n8n-skip-public-holidays: The n8n Schedule Trigger cannot skip public holidays. Add an HTTP Request node and an If node, or let Netsware trigger n8n only when the business is open.