Skip to main content
POST
/
agent
/
create
cURL
curl --request POST \
  --url https://app.closerx.ai/api/agent/create/ \
  --header 'Company-Name: <company-name>' \
  --header 'api_key: <api-key>'
{
  "success": true,
  "message": "<string>",
  "data": {
    "agent": {
      "pk": 123,
      "agent_name": "<string>",
      "agent_id": "<string>",
      "voice_id": "<string>",
      "language": "<string>",
      "interruption_sensitivity": "<string>",
      "voicemail": true,
      "voicemail_message": "<string>",
      "end_call_after_silence": 123,
      "max_call_duration": 123,
      "reminder_trigger": 123,
      "ambient_sound": "<string>",
      "analysis_data": [
        "<string>"
      ],
      "llm": 123,
      "voice_speed": 123,
      "voice_temperature": 123,
      "volume": 123,
      "enable_backchannel": true,
      "normalize_for_speech": true,
      "enable_transcription_formatting": true,
      "reminder_trigger_ms": 123,
      "reminder_max_count": 123,
      "boosted_keywords": [
        "<string>"
      ],
      "ambient_sound_volume": 123,
      "voicemail_detection_timeout_ms": 123,
      "begin_message_delay_ms": 123,
      "updated_at": "2023-11-07T05:31:56Z",
      "is_locked": true,
      "calendar_id": "<string>",
      "inbound_appoitment": true,
      "ring_duration_sec": 123,
      "stt_mode": "<string>",
      "backchannel_words": "<string>",
      "backchannel_frequency": 123,
      "call_scheduling": true,
      "agent_crm_type": "<string>",
      "voicemail_option": {
        "action": {
          "type": "<string>"
        }
      }
    },
    "llm": {
      "pk": 123,
      "model": "<string>",
      "states": "<string>",
      "s2s_model": "<string>",
      "model_temperature": "<string>",
      "general_prompt": "<string>",
      "general_tools": [
        {}
      ],
      "begin_message": "<string>",
      "ghl_book_meeting": true,
      "price_set_per_model": "<string>",
      "custom_message": "<string>"
    }
  }
}

Authorizations

api_key
string
header
required

Headers

Company-Name
string
required

The name of the schema to be used for the request

Response

AI call agent creation response

success
boolean
required

Indicates whether the request was successful

message
string
required

Message describing the result of the request

data
object
required