Calls
- GETGet Calls
- GETGet Call
- GETGet Transcript
- GETGet current page
- GETList Call tags
- GETReturn a pre-signed URL to the call recording
- GETReturn the logs for a call
- GETGets an organization's usage
- POSTStop Call
- POSTCancel Call
- POSTAdd a note to a call
- POSTTrigger async export of calls CSV to requester email
- PATCHUpdate a note on a call
- PATCHSet call as viewed by the user making the request
- PATCHSet call rating
- DELDelete a note from a call
- DELDelete a call
Dial
Orgs
Numbers
Usecases
Agents
Delete a note from a call
curl --request DELETE \
--url https://app.happyrobot.ai/api/v1/calls/{id}/notes/{noteId} \
--header 'authorization: <authorization>'
{
"id": "<string>",
"organization_id": "<string>",
"type": "Inbound",
"status": "Scheduled",
"provider": "Twilio",
"metadata": {
"call_sid": "<string>",
"from": "+1234567890",
"to": "+1234567890",
"recording_sid": "<string>",
"tags": [
"<string>"
],
"custom": {
"clientId": "123",
"orderId": "456"
}
},
"use_case": {
"id": "<string>",
"organization_id": "<string>",
"name": "Kate",
"transfer_number": "<string>",
"extract_with_ai": [
{
"name": "<string>",
"description": "<string>",
"type": "string",
"example": "<string>",
"required": true
}
],
"classification_tags": [
{
"name": "<string>",
"description": "<string>"
}
],
"language": "en-US",
"detailed_work_hours": {},
"work_start": "<string>",
"work_end": "<string>",
"timezone": "<string>",
"generic_after_hours_message": "<string>",
"enable_detailed_work_hours": true,
"keywords": [
"<string>"
],
"hooks": [
{
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"params": {},
"amd": true,
"amd_behavior": "Hangup",
"amd_messages": {},
"sample_labels": [
{
"name": "<string>",
"color": "slate"
}
],
"hidden": true,
"evaluation_models": [
"<string>"
],
"max_duration_mins": 123,
"recorded_message_inbound": true,
"recorded_message_outbound": true,
"show_original_caller_id": true,
"disable_end_call_after_n_reminders": true,
"model": "<string>"
},
"prompt_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"language": "en-US",
"params": {},
"extraction": {},
"classification": {
"tag": "<string>",
"reasoning": "<string>"
},
"created": "2024-01-01T01:01:01Z",
"duration": 123,
"viewed_by": [
"<string>"
],
"parent_call_id": "<string>",
"notes": [
{
"id": "<string>",
"user_id": "<string>",
"content": "<string>",
"flagged": true,
"created_at": "2024-01-01T01:01:01Z"
}
],
"samples": [
"<string>"
],
"ratings": [
{
"emoji": "✅",
"email": "jsmith@example.com",
"created": "2024-01-01T01:01:01Z"
}
],
"scheduled_for": "2024-01-01T01:01:01Z",
"use_backup": true,
"wait_until_awake": true,
"campaign_id": "<string>",
"max_duration_mins": 123,
"transfer_contact_email": "<string>",
"costs": {
"created": "2023-11-07T05:31:56Z",
"total_costs": 123,
"voip": {
"external": true,
"amd_cost": 123,
"call_cost": 123,
"total_cost": 123,
"pricing_id": "<string>"
},
"transcriber": {
"total_cost": 123,
"pricing_id": "<string>"
},
"llm": {
"input_cost": 123,
"output_cost": 123,
"total_cost": 123,
"input_pricing_id": "<string>",
"output_pricing_id": "<string>"
},
"tts": {
"total_cost": 123,
"pricing_id": "<string>"
},
"per-minute": {}
}
}
Headers
Your API key for authentication. Use Bearer format.
"Bearer API_KEY"
Path Parameters
ID of the call.
24
ID of the note.
Response
Unique identifier for the call.
Organization ID.
Type of the call.
Inbound
, Outbound
Status of the call.
Scheduled
, Queued
, Initiated
, Ringing
, In progress
, Transferred
, Completed
, AMD Terminated
, Busy
, No answer
, Canceled
, Failed
Provider of the call.
Twilio
, Web
, Chat
Call metadata.
Call SID from the provider.
Phone number that initiated the call.
"+1234567890"
Phone number that received the call.
"+1234567890"
Recording SID from the provider.
Tags associated with the call.
Use case that handled the call.
ID of the use case.
ID of the organization that owns the use case.
Model name.
Name of the use case.
"Kate"
Fallback phone number to transfer the call to if something breaks.
Parameters to extract with AI.
2 - 55
10 - 2000
string
, number
, boolean
, array
Preferred language for the use case.
en-US
, en-GB
, es-MX
, es-ES
, es-CO
, pt-PT
, de-DE
, fr-FR
, pl-PL
, ro-RO
, it-IT
, zh-CN
, hi-IN
, ja-JP
, sv-SE
Detailed work hours for each day of the week.
Start of the work hours.
End of the work hours.
Bypass happyrobot and transfer calls directly to the transfer number.
Phone number to transfer the call to if bypass is true.
Message to play if the call is after hours.
Start of the work hours.
End of the work hours.
Timezone of the use case.
Generic message to play if the call is after hours.
Enable detailed work hours in the UI.
Keywords you want the transcriber to know about.
Enable automatic machine detection. This is a prerequisite to end calls on machines or for Phone Tree Navigation.
AI assistant behavior when AMD is enabled. Continue
is used for Phone Tree Navigation, Hangup
to end the call and Message
to leave a message. If amd
is set, this field is required.
Hangup
, Continue
, Message
Record of messages to leave on voicemail if amd_behavior
is set to Message
. You may use parameters as you do in the prompt for templating. The key is the language of the message and the value is the message.
Message to leave on voicemail if amd_behavior
is set to Message
. You may use parameters as you do in the prompt for templating.
1
Available labels for the samples.
Hide the use case from the UI.
Models the use case is evaluated on.
Specifies the maximum duration in minutes for this use-case. This value is overridden by the maximum duration specified for individual calls. If neither is provided, the default duration is 10 minutes.
Play 'This call is being recorded' message for inbound calls.
Play 'This call is being recorded' message for outbound calls.
Show the original caller ID on the call screen.
Disable end call after N reminders.
Language of the call.
en-US
, en-GB
, es-MX
, es-ES
, es-CO
, pt-PT
, de-DE
, fr-FR
, pl-PL
, ro-RO
, it-IT
, zh-CN
, hi-IN
, ja-JP
, sv-SE
Date the call was created.
"2024-01-01T01:01:01Z"
User emails that have viewed the call in the Happyrobot App.
Prompt ID.
Dynamic parameters to inject into the templated use case prompt.
Duration of the call in seconds.
Parent call ID in the case of repeated calls.
Notes associated with the call.
Unique identifier for the note.
User ID that created the note.
Content of the note.
Date the note was created.
"2024-01-01T01:01:01Z"
Whether the note is flaged or not.
Sample IDs that are associated with the call.
ISO 8601 UTC datetime the call is scheduled for.
"2024-01-01T01:01:01Z"
Whether the backup model was used.
Whether the call should wait until the model is awake.
Campaign ID.
Specifies the maximum duration of the call in minutes. This value takes precedence over the maximum duration specified in the use-case. If neither is provided, the default duration is 10 minutes.
Email of the transfer contact.
Costs associated with the call.
Was this page helpful?
curl --request DELETE \
--url https://app.happyrobot.ai/api/v1/calls/{id}/notes/{noteId} \
--header 'authorization: <authorization>'
{
"id": "<string>",
"organization_id": "<string>",
"type": "Inbound",
"status": "Scheduled",
"provider": "Twilio",
"metadata": {
"call_sid": "<string>",
"from": "+1234567890",
"to": "+1234567890",
"recording_sid": "<string>",
"tags": [
"<string>"
],
"custom": {
"clientId": "123",
"orderId": "456"
}
},
"use_case": {
"id": "<string>",
"organization_id": "<string>",
"name": "Kate",
"transfer_number": "<string>",
"extract_with_ai": [
{
"name": "<string>",
"description": "<string>",
"type": "string",
"example": "<string>",
"required": true
}
],
"classification_tags": [
{
"name": "<string>",
"description": "<string>"
}
],
"language": "en-US",
"detailed_work_hours": {},
"work_start": "<string>",
"work_end": "<string>",
"timezone": "<string>",
"generic_after_hours_message": "<string>",
"enable_detailed_work_hours": true,
"keywords": [
"<string>"
],
"hooks": [
{
"url": "<string>",
"headers": [
{
"key": "<string>",
"value": "<string>"
}
]
}
],
"params": {},
"amd": true,
"amd_behavior": "Hangup",
"amd_messages": {},
"sample_labels": [
{
"name": "<string>",
"color": "slate"
}
],
"hidden": true,
"evaluation_models": [
"<string>"
],
"max_duration_mins": 123,
"recorded_message_inbound": true,
"recorded_message_outbound": true,
"show_original_caller_id": true,
"disable_end_call_after_n_reminders": true,
"model": "<string>"
},
"prompt_id": "<string>",
"agent": {
"id": "<string>",
"name": "<string>"
},
"language": "en-US",
"params": {},
"extraction": {},
"classification": {
"tag": "<string>",
"reasoning": "<string>"
},
"created": "2024-01-01T01:01:01Z",
"duration": 123,
"viewed_by": [
"<string>"
],
"parent_call_id": "<string>",
"notes": [
{
"id": "<string>",
"user_id": "<string>",
"content": "<string>",
"flagged": true,
"created_at": "2024-01-01T01:01:01Z"
}
],
"samples": [
"<string>"
],
"ratings": [
{
"emoji": "✅",
"email": "jsmith@example.com",
"created": "2024-01-01T01:01:01Z"
}
],
"scheduled_for": "2024-01-01T01:01:01Z",
"use_backup": true,
"wait_until_awake": true,
"campaign_id": "<string>",
"max_duration_mins": 123,
"transfer_contact_email": "<string>",
"costs": {
"created": "2023-11-07T05:31:56Z",
"total_costs": 123,
"voip": {
"external": true,
"amd_cost": 123,
"call_cost": 123,
"total_cost": 123,
"pricing_id": "<string>"
},
"transcriber": {
"total_cost": 123,
"pricing_id": "<string>"
},
"llm": {
"input_cost": 123,
"output_cost": 123,
"total_cost": 123,
"input_pricing_id": "<string>",
"output_pricing_id": "<string>"
},
"tts": {
"total_cost": 123,
"pricing_id": "<string>"
},
"per-minute": {}
}
}