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 deletes a Sandbox company’s records and transactions while
keeping its configuration, users and API keys, so testing can start again.
Check Get Company Lifecycle (getCompanyLifecycle) first. To clear only
one record type, use Delete All Entities of Type
(deleteAllEntitiesOfType).
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, Go App 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. Broker portal memberships are removed with the Person records they link. 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
Body
Response
Reset committed, including its audit receipt.
