Try it here

Playground

Click Run. Hello is a GET against the mock in this tab. The sample menu also has POST and SAVE.

suite.sapiCtrl/⌘ + Enter
CLI treemock by default
Click Run.

Mock

Default. Empty URL:, mock://, or Live fetch off. Served in this tab:

  • GET /users and /api/users — users 1 and 2 already exist
  • POST /api/users → 201 and an id
  • PUT / PATCH / DELETE on a user
  • /jobs/:id pending twice, then ready

Live fetch

Check the box and set URL: to https://… (or http://…) to use the browser’s fetch().

CORS will block most public APIs even if curl works. Leave it off unless the host sends Access-Control-Allow-Origin.

In this tab

Works: GET/POST/PUT/PATCH/DELETE, BODY, HEADER, AUTH bearer/basic, EXPECT, SAVE, WAIT, HELPER, SETUP, inline EXAMPLES.

Errors if you try: FILE, GRAPHQL, IMPORT, SKIP, oauth2, schema, xpath, openapi.