REST API (v1)
Base URL https://api.tryneaten.com. Authenticate with a secret key: Authorization: Bearer sk_live_… (or sk_test_…). Tours are sent and returned as the tour JSON itself (see the schema). Saving takes If-Match: <revision> and answers 412 when someone saved since; x-neaten-message names the change. PATCH changes part of a draft as a JSON Merge Patch (RFC 7396): send only the fields to change, and null to remove one. Errors are { "error": { "code", "message", "details" } }.
| Method | Path |
|---|---|
GET | /v1/tours |
POST | /v1/tours |
POST | /v1/tours/validate |
GET | /v1/tours/:tour |
PUT | /v1/tours/:tour |
PATCH | /v1/tours/:tour |
DELETE | /v1/tours/:tour |
GET | /v1/tours/:tour/versions |
GET | /v1/tours/:tour/versions/:n |
GET | /v1/tours/:tour/stats |
GET | /v1/tours/:tour/activity |
POST | /v1/tours/:tour/publish |
POST | /v1/tours/:tour/rollback |
POST | /v1/tours/:tour/preview |
POST | /v1/tours/:tour/ai/edit |
POST | /v1/tours/:tour/ai/translate |
GET | /v1/tours/:tour/pages |
GET | /v1/tours/:tour/experiment |
POST | /v1/tours/:tour/experiment |
POST | /v1/tours/:tour/experiment/stop |
GET | /v1/tours/:tour/health |
POST | /v1/tours/:tour/unpublish |
GET | /v1/environments |
GET | /v1/targets/usages |
GET | /v1/incidents |
GET | /v1/incidents/:incident |
POST | /v1/fixes/:fix/apply |
POST | /v1/fixes/:fix/reject |
POST | /v1/ai/generate |
GET | /v1/ai/generate/:job |
POST | /v1/ai/generate/:job/create |
GET | /v1/goals |
POST | /v1/goals |
GET | /v1/webhooks |
POST | /v1/webhooks |
DELETE | /v1/webhooks/:hook |
GET | /v1/analytics/export.csv |
DELETE | /v1/users/:userId |
GET | /v1/install-status |
On an incident, sessions is how many people missed the step and failures how many times. Both are null on an incident that was resolved before Neaten kept those counts; treat null as unknown, not zero. (Webhooks always send numbers.)