Recordari
← Volver al listado
PATCH/api/v1/mitto/voice-agents/{id}

Actualizar un agente de voz

Su prompt en markdown, primer mensaje, número de teléfono, horario de llamadas o estado. Se aplica a sus próximas llamadas al guardar. Requiere una clave API con el alcance 'voice-agents:write'.

Autenticación

Envía tu API key en el header x-api-key header.

x-api-keybearer

Parámetros

idobligatorio

path · string

ID del agente de voz

Cuerpo de la petición

obligatorio

PublicMittoUpdateVoiceAgentDto

name

string

goal

string

language

string

firstMessage

string

What the agent says when the person picks up

prompt

string

The markdown prompt the agent calls with. Not editable while the agent is managed outside Mitto (take it over in the app first).

phoneNumberId

string (uuid)

Number it calls from (see the phone numbers endpoint)

isActive

boolean

callingHours

PublicMittoAgentCallingHoursDto

Null: it may call at any time

Ejemplo de petición

json
{
  "name": "",
  "goal": "",
  "language": "es",
  "firstMessage": "",
  "prompt": "",
  "phoneNumberId": "",
  "isActive": false,
  "callingHours": {
    "timezone": "Europe/Madrid",
    "days": [
      1,
      2,
      3,
      4,
      5
    ],
    "windows": [
      {
        "start": "09:00",
        "end": "13:00"
      }
    ],
    "start": "09:00",
    "end": "13:00"
  }
}

Respuestas

200

PublicMittoVoiceAgentResponseDto

statusCoderequired

number

countrequired

number

errorrequired

string

datarequired

PublicMittoVoiceAgentDto

Ejemplo de respuesta

json
{
  "statusCode": 200,
  "count": 0,
  "error": null,
  "data": {
    "id": "",
    "name": "",
    "goal": "",
    "voiceId": "",
    "voiceName": "",
    "language": "es",
    "phoneNumberId": null,
    "firstMessage": "",
    "prompt": "",
    "isPromptFromFlow": false,
    "isManagedInElevenLabs": false,
    "tools": [
      {
        "id": "",
        "name": "create_calendar_event",
        "label": "Agendar reunión"
      }
    ],
    "callingHours": {
      "timezone": "Europe/Madrid",
      "days": [
        1,
        2,
        3,
        4,
        5
      ],
      "windows": [
        {
          "start": "09:00",
          "end": "13:00"
        }
      ],
      "start": "09:00",
      "end": "13:00"
    },
    "status": "active",
    "stats": {
      "calls": 412,
      "connected": 167,
      "meetings": 23
    },
    "updatedAt": "2026-01-15T10:00:00.000Z"
  }
}
400Parámetros o cuerpo no válidos
401Clave API o token Bearer faltante o no válido
403La credencial carece del alcance 'voice-agents:write', o la organización no cuenta con facturación de créditos (Mitto)
404No encontrado en su organización