API
Base address: https://senaste.ai/api/v1. Every path below follows it. Send the header Authorization: Bearer uxp_.... Create a key in your account. The limit is 60 requests a minute; every reply has X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds to the next minute), and a 429 has Retry-After.
The whole API with the shape of every reply, as OpenAPI 3.1 for code generators and Postman: https://senaste.ai/api/v1/openapi.json
From a new site to a report
KEY=uxp_...
# 1. add the site; the reply has its id and "verification"
curl -X POST https://senaste.ai/api/v1/sites -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"url":"https://example.com/pricing","task":"Find the price of the Pro plan","personas":["impulse","price"],"generate":2}'
# 2. put one proof on the site (DNS TXT, the file or the meta tag), then
curl -X POST https://senaste.ai/api/v1/sites/SITE_ID/verify -H "Authorization: Bearer $KEY"
# 3. price the run without starting it, then start it
curl -X POST https://senaste.ai/api/v1/runs -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"site":"SITE_ID","steps":20,"dry_run":true}'
curl -X POST https://senaste.ai/api/v1/runs -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: deploy-1234" \
-d '{"site":"SITE_ID","steps":20,"concurrency":3,"callback_url":"https://example.com/hooks/senaste"}'
# 4. follow it, or wait for the callback
curl https://senaste.ai/api/v1/runs/RUN_ID -H "Authorization: Bearer $KEY"
Leave out personas of a run to send everyone enabled on the panel. A reply to POST /runs:
{"id":"rmhb2x1k4f9a0c3d1","site":"s1a2b3c4d5e6","domain":"example.com","status":"queued","personas":8,"steps":20,
"credits":8,"refunded":0,"charged":8,"created":"2026-11-09T10:00:00.000Z","started":null,"finished":null,
"queue":{"position":1,"ahead_yours":0,"ahead_others":0,"start_in_s":0,"done_in_s":190},
"callback":{"url":"https://example.com/hooks/senaste","status":null},"warnings":[],"callback_secret":"..."}
While it runs, GET /runs/{id} has progress:
"progress":{"phase":"walking","percent":41,"personas_done":3,"personas_total":8,"steps_done":71,"steps_total":160,"eta_s":190,
"personas":[{"persona":"p01","name":"Impulse buyer","step":20,"state":"done","outcome":"gave_up"},
{"persona":"p02","name":"Price-first evaluator","step":7,"state":"walking"}]}When a run ends: callback_url
A run started with callback_url (https, a public address) is followed by one POST to it when it ends: done, failed, cancelled or interrupted. The body is {"event":"run.finished","run":{...}} with the status, score and counts; the results come from GET /runs/{id}. Headers: X-Senaste-Event, X-Senaste-Timestamp (Unix seconds) and X-Senaste-Signature: sha256=…, the HMAC-SHA256 of timestamp + "." + body keyed with callback_secret, which only the reply to POST /runs shows. Answer with 2xx; otherwise it is tried again after 10 and 60 seconds. Redirects are not followed.
// Node.js
const expected = 'sha256=' + crypto.createHmac('sha256', secret).update(req.headers['x-senaste-timestamp'] + '.' + rawBody).digest('hex');
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers['x-senaste-signature']));Methods
| Method | Path | What it does |
|---|---|---|
| GET | /balance | Credit balance |
| GET | /sites | Your sites, their ids and panels |
| POST | /sites | Add a site: url, task (up to 500 characters), personas (library keys from GET /personas) and/or generate (how many the model writes from the home page, up to a minute), report_lang, audience. The reply has verification: the DNS record, the file and the meta tag, any one of which proves the domain. |
| GET | /sites/{id} | One site with its panel and, until it is verified, verification |
| POST | /sites/{id}/verify | Look for the proof now. 200 with the site when found (and referral when this paid or did not pay an invitation bonus), 422 not_verified when not yet. |
| GET | /personas | The persona library |
| GET | /runs | Your runs, newest first, a page at a time: ?limit= 1 to 100 (50 by default). When next is not null, ask ?before= with it for the next page. |
| POST | /runs | Start a run: steps 3 to 30, concurrency 1 to 4. The reply has warnings: forms when a task asks to send a form, buy or sign up (the test holds forms back), offsite when it names another domain. "dry_run":true runs every check and answers 200 with credits, balance and would_start, starting nothing. The header Idempotency-Key makes a retry safe: the same key within 24 hours returns the run it started (200, Idempotent-Replayed: true). callback_url is described above. |
| GET | /runs/{id} | Status and results per persona. summary says how many personas walked the site and how many the test itself failed; such a result has failure with the stage, step and address.
Each result has steps (the element used and effect, what the browser did) and goal_check: the parts of the task and whether the screens show each one. A persona that says it reached the goal while its screens show only part of the task has the outcome partly_reached. groups joins notes of several personas about one problem; a note id is persona:index. http lists HTTP errors with the resource type, whether it was a page load, the page and the step. A queued run has queue (place, runs ahead of yours and of other accounts, seconds until it starts and until it is ready); a running one has progress; a finished one has waited_s and ran_s. A step that typed has value, what the field held afterwards. notes_dropped lists notes the check left out, with why. A server error in http also has at (UTC), url, retry (one more request 2 s later), hindered and the response headers a site owner can find it by in their logs. |
| POST | /runs/{id}/cancel | Cancel, unfinished credits come back |
Errors
Format: {"error":{"code":"...","message":"..."}}. A value out of range also names the field and its limits: {"error":{"code":"invalid_steps","message":"...","field":"steps","min":3,"max":30,"got":40}}
| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_steps, invalid_concurrency | Steps or concurrency out of range; nothing was started and no credit spent |
| 400 | invalid_limit, invalid_cursor | A page of the run list asked with a wrong limit or before |
| 400 | no_personas | No persona picked, or an id is not on this site |
| 400 | invalid_url, invalid_task, unknown_persona, invalid_generate, invalid_report_lang, domain_unreachable | A new site with a wrong field; nothing was added |
| 400 | invalid_dry_run, invalid_idempotency_key, invalid_callback_url | A wrong dry_run, Idempotency-Key or callback_url; nothing was started |
| 400 | not_test_host | Test payment mode needs a start page on a test host |
| 401 | unauthorized | Missing or invalid key |
| 402 | insufficient_credits | Not enough credits |
| 403 | domain_not_verified | Domain not verified |
| 404 | not_found | Nothing like that on your account |
| 409 | too_many_runs | Too many runs in the queue |
| 409 | site_exists, too_many_sites | The domain is already on your account, or the account has 20 sites |
| 422 | not_verified | No proof of the domain found yet |
| 502 | generation_failed | The model could not write personas; try again or pick from the library |
| 429 | rate_limited | Request limit exceeded |
What a run does to your site
Only GET requests to the verified domain. Forms are not sent and password and card fields stay empty, so a run never registers, signs in or pays. The exception is test payment mode, which you turn on for a test host. Notes come from a model, check them before you act.