cURL
curl --request POST \ --url https://grantex-auth-dd4mtrt2gq-uc.a.run.app/v1/audit/log \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "agentId": "<string>", "agentDid": "<string>", "grantId": "<string>", "principalId": "<string>", "action": "<string>", "metadata": {}, "status": "success" } '
{ "entryId": "<string>", "agentId": "<string>", "agentDid": "<string>", "grantId": "<string>", "principalId": "<string>", "developerId": "<string>", "action": "<string>", "metadata": {}, "hash": "<string>", "prevHash": "<string>", "timestamp": "2023-11-07T05:31:56Z", "status": "success" }
Appends an entry to the immutable, hash-chained audit log.
Developer API key
Action identifier (e.g. 'payment.initiated', 'file.read')
success
failure
blocked
Audit entry created