Skip to content

Developer tools

Netlify mock API

Netlify API: sites, deploys that build over time with cancel/lock/restore, build hooks, notification hooks and snippets.

At a glance

Operations
188
Stateful operations
32
Stateful resources
5
Webhook events
5
Vendor API version
2.63.1
Verification
Spec-verified

How it works

Use Netlify without calling Netlify, Inc.

Authorization: Bearer YourNetlifyToken

State

Resources that remember

Writes persist per caller, so a create followed by a read returns what you created.

ResourceOperations
Sites6
Deploys10
Build hooks5
Notification hooks6
Snippets5

Webhooks

Events your handlers can receive

Deliveries are unsigned: Netlify signs outgoing webhooks as an HS256 JWS (X-Webhook-Signature with iss and sha256 claims) using the hook's jws secret; not reproducible by the header signers.

Coverage

188 operations

32 of them are stateful. The largest groups:

GroupOperations
Other operations156
Deploys10
Notification hooks6
Sites6
Build hooks5
Snippets5

Verification

Spec-verified

Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.

2 operations cannot be checked against the specification.

Source and limits

License, source and limits

Each collection holds up to 1 MiB of objects per token; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Stateful: sites (create with generated name, get, update, delete, duplicate name answers 422; the list omits published_deploy, which only the single-site reads derive from the newest deploy once it is ready), deploys (enqueued, building after 500 ms, ready after 1.5 s, derived on read; list per site and by id through the site or global route; cancel a not-yet-ready deploy sets state error, cancelling a ready one answers 422; lock and unlock; restore makes a deploy the published one; deleting the published deploy answers 422), build hooks, notification hooks (event must be one of deploy_created, deploy_building, deploy_failed, deploy_locked, deploy_unlocked, deploy_request_pending, submission_created; PUT replaces the hook, enable clears disabled) and snippets, plus the account list; every other operation answers a schema-valid sample (forms, submissions and env vars are not stateful). Lists are bare arrays paged by page and per_page (default 20, served up to 60) with an RFC 5988 Link next header; the deploy list does not apply the production, branch, state or deploy-preview filters. Updating a build hook or snippet answers 204 as the vendor spec declares. Published deploy tracking is approximate: creating a deploy makes it the candidate, so a site reports no published_deploy until the newest deploy is ready. Webhooks go to every enabled notification hook of the caller whose event matches (not scoped to its site) as the deploy object with an X-Netlify-Event header for deploy_created, deploy_building (state building, 500 ms later), deploy_failed (cancel), deploy_locked and deploy_unlocked; they are unsigned because Netlify signs with an HS256 JWS in X-Webhook-Signature, which the header signers cannot reproduce. A seeded hook is disabled and never delivers. Not reproduced: file uploads, functions, forms and submissions, real builds, DNS and SSL.

MaxoPerf is not affiliated with, endorsed by, or sponsored by Netlify, Inc. Netlify is a trademark of its owner.