A project record's chain of custody
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/records/{id}/historyconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/records/{id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/records/{id}/history"
response = requests.get(url)
print(response.text){
"record_id": "<string>",
"history": [
{
"record_id": "<string>",
"dataset": "<string>",
"event": "created",
"at": "2023-11-07T05:31:56Z",
"actor_sub": "<string>",
"actor_agent": "<string>",
"credential": "<string>",
"submission_id": "<string>",
"endpoint_id": "<string>",
"credential_name": "<string>",
"actor_email": "<string>",
"reason": "record_erasure"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Records
A project record's chain of custody
Who created the record (the ingest key, endpoint, trigger or other credential, and the submission it came from), and whether it was later erased, by whom and why (record_erasure, dataset_purge, project_delete). Survives the record’s erasure: the ledger holds ids and credentials, never the payload. Expiry by the retention window writes no event. Kept for the audit log’s window (at least 365 days). Any member may read it. Records created before #543 have no ledger and answer 404.
GET
/
admin
/
api
/
projects
/
{project_id}
/
records
/
{id}
/
history
A project record's chain of custody
curl --request GET \
--url https://app.hookie.ai/admin/api/projects/{project_id}/records/{id}/historyconst options = {method: 'GET'};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/records/{id}/history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/records/{id}/history"
response = requests.get(url)
print(response.text){
"record_id": "<string>",
"history": [
{
"record_id": "<string>",
"dataset": "<string>",
"event": "created",
"at": "2023-11-07T05:31:56Z",
"actor_sub": "<string>",
"actor_agent": "<string>",
"credential": "<string>",
"submission_id": "<string>",
"endpoint_id": "<string>",
"credential_name": "<string>",
"actor_email": "<string>",
"reason": "record_erasure"
}
]
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}