POST /api/sites/:slug/actions/:state/:action
Navigates to the page state and executes the action’s interaction code on the live page. Use this to click buttons, fill forms, submit data, and trigger any interaction the AI discovered.
When you call this endpoint, the execution server:
- Looks up the manifest for the site
- Finds the target state and action
- Opens a new browser page
- Navigates to the state’s URL (expanding template variables from inputs)
- Waits for the DOM to settle
- Runs the action’s code with the provided inputs
- Returns the result
Path parameters
string
required
The site identifier (e.g.,
example-com).string
required
The state name from the manifest (e.g.,
LoginPage, CheckoutPage).string
required
The action name within the state (e.g.,
submit_login, add_to_cart).Request body
Action inputs are supplied as a flat JSON object. The available inputs are defined in the manifest under the action’sinputs array.
{}.