Skip to main content

Get Call History

GET 

/v1/users/{userId}/calls

Retrieves the call history for a user, including screened calls and call analysis results.

Each call log entry includes:

  • Call metadata (timestamp, direction, caller/callee phone number)
  • Screening status and outcome
  • AI analysis results (if applicable)

Results are returned in reverse chronological order (most recent first).

Path Parameters​


    userId stringrequired

    UUID for the given user

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 [


    statusstringrequired

    Current state of the call in the screening lifecycle

    Possible values: [Call_Screening]


    callIdstringrequired

    Unique call ID used to identify this particular call.

    Example: call_7f3b9c2a-1234-5678-9abc-def012345678

    timestampstringrequired

    The UTC timestamp of when the call started in ISO 8601 format (including milliseconds).

    Format: string<date-time>
    Example: 2024-12-21T14:30:00.000Z

    phonestringrequired

    E.164 formatted phone number for the other non-user party in the call

    Possible values: Value must match regular expression ^\+[1-9]\d{1,14}$

    Example: +14155551234

    directionstringrequired

    Determines if the call was incoming or outgoing (from the user's perspective)

    Possible values: [Incoming, Outgoing]

    Example: Incoming

    isContactbooleanrequired

    True if user was determined to be a contact at the time of the call

    Example: false

    isAnonymousCallerboolean

    If true and direction='Incoming', the phone field should be ignored because the caller hid their number

    Example: false

    liveConversationTokenstring

    Used by the client to connect to the screening conversation stream over websocket

    Example: conv_abc123xyz789
  • ]


  • paginationobjectrequired

    totalintegerrequired

    Total number of call 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": [
{
"status": "Call_Screening",
"callId": "call_7f3b9c2a-1234-5678-9abc-def012345678",
"timestamp": "2024-12-21T14:30:00.000Z",
"phone": "+14155551234",
"direction": "Incoming",
"isContact": false,
"isAnonymousCaller": false,
"liveConversationToken": "conv_abc123xyz789"
},
{
"status": "Call_In_Progress",
"callId": "call_7f3b9c2a-1234-5678-9abc-def012345678",
"timestamp": "2024-12-21T14:30:00.000Z",
"phone": "+14155551234",
"direction": "Incoming",
"isContact": false,
"isAnonymousCaller": false,
"liveConversationToken": "conv_abc123xyz789",
"screening": {
"action": "Blocked",
"reason": "Assistant_Decision",
"fakeVoiceProtection": true,
"durationInSeconds": 0,
"callerName": "string",
"callerReason": "string"
}
},
{
"status": "Call_Ended",
"callId": "call_7f3b9c2a-1234-5678-9abc-def012345678",
"timestamp": "2024-12-21T14:30:00.000Z",
"phone": "+14155551234",
"direction": "Incoming",
"isContact": false,
"isAnonymousCaller": false,
"liveConversationToken": "conv_abc123xyz789",
"screening": {
"action": "Blocked",
"reason": "Assistant_Decision",
"fakeVoiceProtection": true,
"durationInSeconds": 0,
"callerName": "string",
"callerReason": "string"
},
"inCall": {
"wasAnswered": true,
"termination": "Failed",
"terminationReason": "string",
"durationInSeconds": 0,
"fakeVoiceProtection": true
}
},
{
"status": "Finished",
"callId": "call_7f3b9c2a-1234-5678-9abc-def012345678",
"timestamp": "2024-12-21T14:30:00.000Z",
"phone": "+14155551234",
"direction": "Incoming",
"isContact": false,
"isAnonymousCaller": false,
"liveConversationToken": "conv_abc123xyz789",
"screening": {
"action": "Blocked",
"reason": "Assistant_Decision",
"fakeVoiceProtection": true,
"durationInSeconds": 0,
"callerName": "string",
"callerReason": "string"
},
"inCall": {
"wasAnswered": true,
"termination": "Failed",
"terminationReason": "string",
"durationInSeconds": 0,
"fakeVoiceProtection": true
},
"enhancementTag": "string",
"callerName": "string",
"durationInSeconds": 0,
"fakeVoiceDetected": true,
"voiceScamDetected": true,
"summary": "string",
"shortSummary": "string",
"transcript": [
{
"speaker": "Caller",
"offsetMillis": 0,
"message": "string",
"syntheticVoiceDetected": true
}
],
"profileData": {
"reputationLevel": "OK",
"entityType": "PERSON",
"connectDisplay": {
"displayName": "string",
"imageUrl": "string"
}
}
}
],
"pagination": {
"total": 0,
"limit": 0,
"offset": 0,
"hasMore": true
}
}