API Reference
The Intent API lets you create simulations, start runs and read results, so you can test on every deploy.
Preview
The public API is in preview and the shapes below may change. Contact us to request access and to be told when it is generally available.
Request API accesshttps://api.intent.am/v1Authenticate with a bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEY/simulationsDefines a target and a goal. Returns the simulation with a draft status.
Request
{
"name": "Checkout test",
"url": "https://staging.example.com",
"goal": "Buy the cheapest item as a guest"
}Response
{
"id": "sim_123",
"status": "draft"
}/simulations/{id}/runStarts a run for an existing simulation.
Request
{
"agents": 25
}Response
{
"id": "run_456",
"simulation_id": "sim_123",
"status": "running"
}/simulations/{id}Returns the run status and, once complete, the ranked friction points.
Request
GET /simulations/sim_123Response
{
"id": "sim_123",
"status": "complete",
"friction": [
{ "rank": 1, "step": "Checkout", "affected": 0.42 }
]
}