Skip to main content

Get Security Audit Log

GET 

/v1/users/{userId}/audit-log

Retrieves an independent audit trail of changes to consent-sensitive user settings, supporting regulatory compliance requirements (CCPA, FTC, FCC).

The platform maintains independent audit trails for security and privacy settings as required for carrier compliance programs. Each setting change is recorded with full before/after state, enabling carriers to demonstrate proper consent management.

Tracked Settings​

The audit log captures changes to consent-sensitive features:

  • aiDetection: Controls when AI voice analysis is applied to the subscriber's calls
  • redirectScamToChat: Controls redirection of scam callers to the Decoy Engagement Bot
  • scamBlockEnabled: Controls automatic blocking of suspected scam calls

Response Data​

Each audit entry includes:

  • Setting name and old/new values (enabling consent state verification)
  • Timestamp of the change (ISO 8601)
  • Source of the change (user action, admin, system)

Use Cases​

  • Regulatory Compliance: Demonstrate user consent for security features to auditors
  • Consent Verification: Verify user opt-in/opt-out state at any point in time
  • Support: Troubleshoot unexpected behavior by reviewing setting history
  • Account Activity: Show users when and how their settings changed

Pagination​

Use limit and offset parameters for large audit histories. Results are returned in reverse chronological order (most recent first).

Path Parameters​


    userId stringrequired

    UUID for the given user

Query Parameters​


    settingType string

    Filter by setting type

    Possible values: [aiDetection, redirectScamToChat, scamBlockEnabled]


    limit integer

    Maximum number of entries to return (default 50, max 500)

    Possible values: >= 1 and <= 500

    Default value: 50

    offset integer

    Number of entries to skip for pagination

    Possible values: >= 0

    Default value: 0

Header Parameters​


    x-hiya-product-version string

    Product version. The standard "major.minor.patch" format is highly encouraged without any leading characters; "2.1.3" or "3.0.0" for example.


    x-hiya-account-user-id stringrequired

    The identifier of a logged-in user. Same identifier that is used for /users/{user_id}

Responses​

OK

Response Body

application/json

    entriesobject[]required
  • Array [


  • idstringrequired

    Unique identifier for this audit log entry


    userIdstringrequired

    User ID who owns this preference change


    settingTypestringrequired

    The type of consent-sensitive setting that was changed:

    • aiDetection: Controls when AI voice analysis is applied to the subscriber's calls
    • redirectScamToChat: Controls whether scam callers are redirected to the Decoy Engagement Bot
    • scamBlockEnabled: Controls automatic blocking of suspected scam calls

    Possible values: [aiDetection, redirectScamToChat, scamBlockEnabled]


    timestampstringrequired

    UTC timestamp when the change occurred (ISO 8601 format)


    oldValuestring | nullrequired

    Previous value before the change.

    • For aiDetection: 'ALL_CALLS', 'NO_CALLS', 'CONTACTS_ONLY', 'UNKNOWN_ONLY', or null (if first time set)
    • For redirectScamToChat/scamBlockEnabled: 'true', 'false', or null (if first time set)

    newValuestringrequired

    New value after the change.

    • For aiDetection: 'ALL_CALLS', 'NO_CALLS', 'CONTACTS_ONLY', 'UNKNOWN_ONLY'
    • For redirectScamToChat/scamBlockEnabled: 'true' or 'false'
  • ]


  • paginationobjectrequired

    totalintegerrequired

    Total number of audit log entries available


    limitintegerrequired

    Maximum number of entries returned in this response


    offsetintegerrequired

    Number of entries skipped


    hasMoreboolean

    True if there are more entries beyond the current page

Example from Schema​

{
"entries": [
{
"id": "string",
"userId": "string",
"settingType": "aiDetection",
"timestamp": "string",
"oldValue": "string",
"newValue": "string"
}
],
"pagination": {
"total": 0,
"limit": 0,
"offset": 0,
"hasMore": true
}
}