Start
Tutorial: a stateful order API
Use the Orders template so a POST is still there on the next GET.
On the choose step, pick Orders instead of an empty protocol. The twin is created with a health route and seven routes that share one collection named orders: list, create, read, replace, update, delete, and clear.
curl -sS https://apitwin.dev/sim/YOUR-SLUG/v1/orders \
-H 'content-type: application/json' \
-d '{"sku":"cable","qty":1}'
curl -sS https://apitwin.dev/sim/YOUR-SLUG/v1/orders/ORDER-IDCreate returns 201 and the stored record, including an id when the body did not send one. Read returns that same record. The State tab shows the collection. Reset state empties it.
Each of those seven routes can be edited or deleted on its own. Change the create route's status to 202, or replace its body with a template, and the record is still stored. Delete the delete route and DELETE by id no longer matches. A collection keeps 100 records; a new one past that drops the oldest.
The public demo at /sim/demo is a separate twin you can call without an account. Create, then read on the homepage uses it.