addedOutput schema / $defs
Added value: +{
+ "AgentResponse": {
+ "properties": {
+ "ai_disclosure": {
+ "description": "Whether the AI line is spoken first.",
+ "title": "Ai Disclosure",
+ "type": "boolean"
+ },
+ "ai_disclosure_line": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "This agent's AI line template, or null for the workspace line.",
+ "title": "Ai Disclosure Line"
+ },
+ "created_at": {
+ "description": "ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Created At",
+ "type": "string"
+ },
+ "email_enabled": {
+ "default": true,
+ "description": "Whether the agent answers email.",
+ "title": "Email Enabled",
+ "type": "boolean"
+ },
+ "first_message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Opening line, or null to wait.",
+ "title": "First Message"
+ },
+ "handover_contacts": {
+ "description": "People the agent may hand a live call to.",
+ "items": {
+ "$ref": "#/$defs/HandoverContactOut"
+ },
+ "title": "Handover Contacts",
+ "type": "array"
+ },
+ "handover_max_duration_seconds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
+ "title": "Handover Max Duration Seconds"
+ },
+ "http_tool_secret": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
+ "title": "Http Tool Secret"
+ },
+ "http_tools": {
+ "description": "Your APIs the agent may call.",
+ "items": {
+ "$ref": "#/$defs/HttpToolOut"
+ },
+ "title": "Http Tools",
+ "type": "array"
+ },
+ "id": {
+ "description": "Unique identifier for this agent.",
+ "format": "uuid",
+ "title": "Id",
+ "type": "string"
+ },
+ "max_duration_seconds": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Soft cap per call; null means the workspace limit.",
+ "title": "Max Duration Seconds"
+ },
+ "name": {
+ "description": "Display name, unique per organization.",
+ "title": "Name",
+ "type": "string"
+ },
+ "organization_id": {
+ "description": "Organization that owns this agent.",
+ "format": "uuid",
+ "title": "Organization Id",
+ "type": "string"
+ },
+ "recording_enabled": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
+ "title": "Recording Enabled"
+ },
+ "sms_enabled": {
+ "description": "Whether the agent answers texts.",
+ "title": "Sms Enabled",
+ "type": "boolean"
+ },
+ "status": {
+ "description": "'live' or 'paused'.",
+ "enum": [
+ "live",
+ "paused"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "system_prompt": {
+ "description": "Task instructions.",
+ "title": "System Prompt",
+ "type": "string"
+ },
+ "tools": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Allowed tools; null means all.",
+ "title": "Tools"
+ },
+ "updated_at": {
+ "description": "ISO 8601 timestamp.",
+ "format": "date-time",
+ "title": "Updated At",
+ "type": "string"
+ },
+ "voice_config": {
+ "additionalProperties": true,
+ "description": "TTS voice and language settings.",
+ "title": "Voice Config",
+ "type": "object"
+ },
+ "voice_enabled": {
+ "description": "Whether the agent answers calls.",
+ "title": "Voice Enabled",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "id",
+ "organization_id",
+ "name",
+ "system_prompt",
+ "first_message",
+ "recording_enabled",
+ "ai_disclosure",
+ "ai_disclosure_line",
+ "voice_config",
+ "tools",
+ "max_duration_seconds",
+ "handover_max_duration_seconds",
+ "voice_enabled",
+ "sms_enabled",
+ "email_enabled",
+ "status",
+ "handover_contacts",
+ "http_tools",
+ "http_tool_secret",
+ "created_at",
+ "updated_at"
+ ],
+ "title": "AgentResponse",
+ "type": "object"
+ },
+ "HandoverContactOut": {
+ "properties": {
+ "contact_id": {
+ "description": "The person: a contact's id, or `member:<user id>` for a team member.",
+ "title": "Contact Id",
+ "type": "string"
+ },
+ "name": {
+ "description": "Name, as the agent says it.",
+ "title": "Name",
+ "type": "string"
+ },
+ "note": {
+ "description": "When the agent hands over to this person.",
+ "title": "Note",
+ "type": "string"
+ },
+ "phone_e164": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Number Hail dials. Null when the contact lost its number; it is then skipped.",
+ "title": "Phone E164"
+ }
+ },
+ "required": [
+ "contact_id",
+ "name",
+ "phone_e164",
+ "note"
+ ],
+ "title": "HandoverContactOut",
+ "type": "object"
+ },
+ "HttpToolOut": {
+ "properties": {
+ "description": {
+ "description": "What the tool does. Read by the model.",
+ "title": "Description",
+ "type": "string"
+ },
+ "header_names": {
+ "description": "Names of the saved static headers. Values are never returned.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Header Names",
+ "type": "array"
+ },
+ "name": {
+ "description": "Function name the model calls.",
+ "title": "Name",
+ "type": "string"
+ },
+ "parameters": {
+ "additionalProperties": true,
+ "description": "JSON Schema of the arguments.",
+ "title": "Parameters",
+ "type": "object"
+ },
+ "timeout_seconds": {
+ "description": "Seconds Hail waits for the answer.",
+ "title": "Timeout Seconds",
+ "type": "integer"
+ },
+ "url": {
+ "description": "HTTPS endpoint Hail POSTs to.",
+ "title": "Url",
+ "type": "string"
+ },
+ "wait_message": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Sentence said on a call while waiting, or null.",
+ "title": "Wait Message"
+ }
+ },
+ "required": [
+ "name",
+ "description",
+ "url",
+ "parameters",
+ "header_names",
+ "timeout_seconds",
+ "wait_message"
+ ],
+ "title": "HttpToolOut",
+ "type": "object"
+ }
+}