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
UUID for the given user
Header Parameters
Product version. The standard "major.minor.patch" format is highly encouraged without any leading characters; "2.1.3" or "3.0.0" for example.
The identifier of a logged-in user. Same identifier that is used for /users/{user_id}
Responses
- 200
- 400
- 404
- 500
OK
Response Body
Array [
- Option 1
- Option 2
- Option 3
- Option 4
Array [
]
]
entriesobject[]required
Current state of the call in the screening lifecycle
Possible values: [Call_Screening]
Unique call ID used to identify this particular call.
call_7f3b9c2a-1234-5678-9abc-def012345678The UTC timestamp of when the call started in ISO 8601 format (including milliseconds).
string<date-time>2024-12-21T14:30:00.000ZE.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}$
+14155551234Determines if the call was incoming or outgoing (from the user's perspective)
Possible values: [Incoming, Outgoing]
IncomingTrue if user was determined to be a contact at the time of the call
falseIf true and direction='Incoming', the phone field should be ignored because the caller hid their number
falseUsed by the client to connect to the screening conversation stream over websocket
conv_abc123xyz789Current state of the call in the screening lifecycle
Possible values: [Call_In_Progress]
Unique call ID used to identify this particular call.
call_7f3b9c2a-1234-5678-9abc-def012345678The UTC timestamp of when the call started in ISO 8601 format (including milliseconds).
string<date-time>2024-12-21T14:30:00.000ZE.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}$
+14155551234Determines if the call was incoming or outgoing (from the user's perspective)
Possible values: [Incoming, Outgoing]
IncomingTrue if user was determined to be a contact at the time of the call
falseIf true and direction='Incoming', the phone field should be ignored because the caller hid their number
falseUsed by the client to connect to the screening conversation stream over websocket
conv_abc123xyz789screeningobjectrequired
Describes the outcome of the assistant screening process.
| Action | Description | |-------------|--------------------------------------------------| | Blocked | Call was blocked before transferring to the user | | Transferred | Call was transferred to the user | | Voicemailed | Call was sent to user's voicemail | | Ended | Call was ended during the screening process | | Skipped | Screening was skipped entirely |
Possible values: [Blocked, Transferred, Voicemailed, Ended, Skipped]
Describes how the prescreening portion of the call finished.
Note: Clients should be designed to handle any new enum value as 'Unknown'
| Reason | Description | |--------------------|----------------------------------------------------------------------| | Assistant_Decision | Assistant decided what to do on its own | | User_Override | User made unilateral override decision before assistant could decide | | User_Rule | Decision was made based on a user's individual phone number rule | | Contact | Decision was made based on the fact that calling number is a contact | | Caller_Hangup | Caller ended the call before decision was made | | Unknown | Call ended for unknown reasons (could be system error) | | Error | The screening was skipped due to 3rd party errors (STT or AI) | | No_Feature_Access | User's subscription does not have access to the screening feature | | Outbound | This was an outbound call | | Reputation | The call was ended due to reputation of Fraud |
Possible values: [Assistant_Decision, User_Override, User_Rule, Contact, Caller_Hangup, Unknown, Error, No_Feature_Access, Outbound, Reputation, Assistant_Disabled]
True, if fake voice protection was on during screening. False, otherwise
Duration of the screening section of the call in seconds.
durationInSeconds = 0 if screening was skipped.
The name of the caller
The reason for the call
Current state of the call in the screening lifecycle
Possible values: [Call_Ended]
Unique call ID used to identify this particular call.
call_7f3b9c2a-1234-5678-9abc-def012345678The UTC timestamp of when the call started in ISO 8601 format (including milliseconds).
string<date-time>2024-12-21T14:30:00.000ZE.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}$
+14155551234Determines if the call was incoming or outgoing (from the user's perspective)
Possible values: [Incoming, Outgoing]
IncomingTrue if user was determined to be a contact at the time of the call
falseIf true and direction='Incoming', the phone field should be ignored because the caller hid their number
falseUsed by the client to connect to the screening conversation stream over websocket
conv_abc123xyz789screeningobjectrequired
Describes the outcome of the assistant screening process.
| Action | Description | |-------------|--------------------------------------------------| | Blocked | Call was blocked before transferring to the user | | Transferred | Call was transferred to the user | | Voicemailed | Call was sent to user's voicemail | | Ended | Call was ended during the screening process | | Skipped | Screening was skipped entirely |
Possible values: [Blocked, Transferred, Voicemailed, Ended, Skipped]
Describes how the prescreening portion of the call finished.
Note: Clients should be designed to handle any new enum value as 'Unknown'
| Reason | Description | |--------------------|----------------------------------------------------------------------| | Assistant_Decision | Assistant decided what to do on its own | | User_Override | User made unilateral override decision before assistant could decide | | User_Rule | Decision was made based on a user's individual phone number rule | | Contact | Decision was made based on the fact that calling number is a contact | | Caller_Hangup | Caller ended the call before decision was made | | Unknown | Call ended for unknown reasons (could be system error) | | Error | The screening was skipped due to 3rd party errors (STT or AI) | | No_Feature_Access | User's subscription does not have access to the screening feature | | Outbound | This was an outbound call | | Reputation | The call was ended due to reputation of Fraud |
Possible values: [Assistant_Decision, User_Override, User_Rule, Contact, Caller_Hangup, Unknown, Error, No_Feature_Access, Outbound, Reputation, Assistant_Disabled]
True, if fake voice protection was on during screening. False, otherwise
Duration of the screening section of the call in seconds.
durationInSeconds = 0 if screening was skipped.
The name of the caller
The reason for the call
inCallobject
Contains all information about the 'in call' portion of a call (between 'Caller' and 'User'). Only present if a call was initiated.
True if the call was answered (i.e. both phone and userPhone successfully connected on a call)
Describes how the call between user and caller terminated
Note: Clients should be designed to handle any new enum value as 'Unknown'
| Termination | Description | |--------------|--------------------------------------------------| | Failed | Call failed to connect (possible system error) | | Missed | Call was missed (i.e. not answered) | | Busy | Call didn't connect because other party was busy | | Rejected | Called party rejected the call | | User_Hangup | User hungup the call | | Other_Hangup | Other party hungup the call | | Hangup | A hangup occurred but unclear which party |
Possible values: [Failed, Missed, Busy, Rejected, User_Hangup, Other_Hangup, Hangup, Unknown]
Additional information about why the call terminated the way it did
If the termination is 'Failed' because of a user's device settings, this will be the
error code we receieved from iOS CallKit
Duration of the screening section of the call in seconds.
durationInSeconds = 0 if wasAnswered=false.
True, if fake voice protection was on during call. False, otherwise
Current state of the call in the screening lifecycle
Possible values: [Finished]
Unique call ID used to identify this particular call.
call_7f3b9c2a-1234-5678-9abc-def012345678The UTC timestamp of when the call started in ISO 8601 format (including milliseconds).
string<date-time>2024-12-21T14:30:00.000ZE.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}$
+14155551234Determines if the call was incoming or outgoing (from the user's perspective)
Possible values: [Incoming, Outgoing]
IncomingTrue if user was determined to be a contact at the time of the call
falseIf true and direction='Incoming', the phone field should be ignored because the caller hid their number
falseUsed by the client to connect to the screening conversation stream over websocket
conv_abc123xyz789screeningobjectrequired
Describes the outcome of the assistant screening process.
| Action | Description | |-------------|--------------------------------------------------| | Blocked | Call was blocked before transferring to the user | | Transferred | Call was transferred to the user | | Voicemailed | Call was sent to user's voicemail | | Ended | Call was ended during the screening process | | Skipped | Screening was skipped entirely |
Possible values: [Blocked, Transferred, Voicemailed, Ended, Skipped]
Describes how the prescreening portion of the call finished.
Note: Clients should be designed to handle any new enum value as 'Unknown'
| Reason | Description | |--------------------|----------------------------------------------------------------------| | Assistant_Decision | Assistant decided what to do on its own | | User_Override | User made unilateral override decision before assistant could decide | | User_Rule | Decision was made based on a user's individual phone number rule | | Contact | Decision was made based on the fact that calling number is a contact | | Caller_Hangup | Caller ended the call before decision was made | | Unknown | Call ended for unknown reasons (could be system error) | | Error | The screening was skipped due to 3rd party errors (STT or AI) | | No_Feature_Access | User's subscription does not have access to the screening feature | | Outbound | This was an outbound call | | Reputation | The call was ended due to reputation of Fraud |
Possible values: [Assistant_Decision, User_Override, User_Rule, Contact, Caller_Hangup, Unknown, Error, No_Feature_Access, Outbound, Reputation, Assistant_Disabled]
True, if fake voice protection was on during screening. False, otherwise
Duration of the screening section of the call in seconds.
durationInSeconds = 0 if screening was skipped.
The name of the caller
The reason for the call
inCallobject
Contains all information about the 'in call' portion of a call (between 'Caller' and 'User'). Only present if a call was initiated.
True if the call was answered (i.e. both phone and userPhone successfully connected on a call)
Describes how the call between user and caller terminated
Note: Clients should be designed to handle any new enum value as 'Unknown'
| Termination | Description | |--------------|--------------------------------------------------| | Failed | Call failed to connect (possible system error) | | Missed | Call was missed (i.e. not answered) | | Busy | Call didn't connect because other party was busy | | Rejected | Called party rejected the call | | User_Hangup | User hungup the call | | Other_Hangup | Other party hungup the call | | Hangup | A hangup occurred but unclear which party |
Possible values: [Failed, Missed, Busy, Rejected, User_Hangup, Other_Hangup, Hangup, Unknown]
Additional information about why the call terminated the way it did
If the termination is 'Failed' because of a user's device settings, this will be the
error code we receieved from iOS CallKit
Duration of the screening section of the call in seconds.
durationInSeconds = 0 if wasAnswered=false.
True, if fake voice protection was on during call. False, otherwise
Opaque string that should be passed in call feedback
Caller name to display (if not provided, you can fallback to display calling number)
Total duration of the call in seconds
Determines if a fake voice was detected or not during the entire call
Determines if the content of the call was flagged as a potential voice scam
A full summarization of the entire phone call
A shorter version of summary - this summarization is more fit for display on call log views
transcriptobject[]required
Possible values: [Caller, User, Assistant, Meta]
Millis since start of the call (starts at 0)
String to display
True if synthetic/fake voice was detected in this specific transcript segment
profileDataobject
Hiya's internal data about a given number based on the phone metadata alone
It is used to provide additional context about the phone number outside the context of this call.
The reputation level of the other party
Possible values: [OK, UNCERTAIN, SPAM, FRAUD]
The entity type for the other party
Possible values: [PERSON, BUSINESS, UNKNOWN]
connectDisplayobject
The Connect display name associated with the caller's phone number
The Connect brand image associated with the caller's phone number
paginationobjectrequired
Total number of call log entries available
Maximum number of entries returned in this response
Number of entries skipped
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
}
}
Bad Request
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}
Not Found
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}
Internal Server Error
Response Body
A unique error ID for tracking and support purposes. Include this ID when contacting support.
err_7f3b9c2a-1234-5678-9abc-def012345678HTTP status code mirrored in the response body for convenience.
400A developer-friendly error message with technical details for debugging.
Invalid phone number format. Expected E.164 format (e.g., +14155551234)A user-friendly error message safe to display in the UI. Localized based on the Accept-Language header when available.
The phone number you entered is not valid. Please check and try again.Example from Schema
{
"errorId": "err_7f3b9c2a-1234-5678-9abc-def012345678",
"status": 400,
"errorDescription": "Invalid phone number format. Expected E.164 format (e.g., +14155551234)",
"displayError": "The phone number you entered is not valid. Please check and try again."
}