Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Polly Reset API
version: 0.1.0
tags:
- name: Reset
paths:
/reset:
post:
summary: Reset
description: 'End this life and begin a new one: archive the current db, wipe it, reseed.
Destructive and gated. Disabled unless POLLY_RESET_TOKEN is set; every call must present
it via the X-Reset-Token header or a JSON body {"token": ...} — never the query string.
Race-proof: the run generation is bumped first (an in-flight step detects it at commit
time and discards its own writes), then the in-flight step is awaited (generous timeout)
before the tables are touched.
Body {"farewell": true} runs one last cycle before the wipe: she is told this is the
end, writes a life summary + a letter to her successor (captured inside the archived
exhibit), and the letter is seeded — tagged `inherited`, low confidence — into the new
life''s store before its first heartbeat. The successor cannot verify it; that is the
point. A failed farewell never blocks the death (she dies without a letter).'
operationId: reset_reset_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Reset