TypestateSign in

All features

Web endpoints

A web endpoint is the address your app or site calls to run an action. You decide who may call it and how often.

How Typestate does it

  1. Your agent gives an action an address, a method and the inputs it takes.
  2. Before the action runs, Typestate checks who is calling, how often they called, and whether the inputs fit.
  3. Sandbox and Live each have their own address, and your own domain can sit in front of Live.

What you can do with it

  • Open an endpoint to everyone, to people signed in, or to holders of a key.
  • Limit each caller to a number of calls a minute or a day.
  • Take a form post from a plain HTML page, with a bot check.
  • Say which of your sites may call it from a browser.

What Typestate gives you

Methods
GET, POST, PUT, PATCH, DELETE
Who may call
anyone, people signed in, holders of a key
Rate limit
any number, per second up to per day, per caller or per address
Browser access
local addresses in Sandbox, only the sites you list in Live
Bot check on forms
Cloudflare Turnstile or hCaptcha

Say this to your agent

Put Place an order at POST /orders for people who are signed in, at most 60 calls a minute each.