curl --request POST \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/reset \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"deletedRecords": 12,
"resetCounters": 3,
"deletedByTable": {
"entities": 10,
"tasks": 2
}
}Reset Sandbox
Permanently clears the company’s application data in one synchronous database transaction. Only initialized Sandbox companies can be reset, including for staff. Live, Retired, and uninitialized companies are refused with 409.
Preserves company metadata, API contacts, rollout overrides, users, memberships, roles, API keys, configuration versions and drafts, financial configuration, form templates, file categories, invoice audit rules, email intake settings, saved views and export presets, and lifecycle and Reset receipts. Sequence definitions remain and their counters restart at each configured start number. Clears entities (including soft-deleted rows), financial records, forms and packets, file references, tasks and runs, and ordinary operational audit rows. Other companies and companyless audit history are untouched.
Stop other Sandbox activity before resetting. Concurrent writes can repopulate data. Cloud storage objects are not deleted. A failed transaction leaves all database data unchanged. There is no asynchronous job or request replay guarantee. Check lifecycle and the last Reset before retrying after a lost response.
Required permission: company.reset
curl --request POST \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/reset \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"deletedRecords": 12,
"resetCounters": 3,
"deletedByTable": {
"entities": 10,
"tasks": 2
}
}Authorizations
API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.
Path Parameters
Company identifier
Body
Response
Reset committed, including its audit receipt.
Total deleted application rows, excluding the new Reset receipt.
x >= 0Sequence definitions whose current number was reset to unused.
x >= 0Deleted row counts by application table. Table names may evolve as application storage changes.
Show child attributes
Show child attributes
