---
title: "Update an agent"
method: PATCH
path: "/agents/{id}"
tags: ["agents"]
---

# Update an agent

`PATCH /agents/{id}`

## Request

- Base URL: `https://be.skipcalls.com` (the document declares no server; this is the origin it was published from)
- URL: `https://be.skipcalls.com/agents/{id}`
- Auth: HTTP bearer

Partial update — only fields sent in the body are changed. If instructions change they're re-validated and rejected if invalid. If toolIds is sent, ALL existing tool links are replaced. SMS-capable setting changes reconcile Messaging Service registration for assigned US Twilio numbers.

## Path parameters

- `id` string, required

## Request body

- UpdateAgentDto
  - `name` string
  - `description` string
  - `avatar` string
  - `isPublic` boolean
  - `isActive` boolean
  - `instructions` string
  - `toolIds` string[]
  - `voice` string: Voice to use for the agent
  - `sttKeyterms` string[]: Words or short phrases passed to LiveKit as speech-to-text keyterms
  - `voiceSpeed` number: Voice pace from slow to fast. 0.5 is normal/provider default. Not all voice providers support speed control.
  - `accessToKnowledge` boolean: Whether the agent has access to knowledge
  - `knowledgeAccessMode` 'NONE' | 'ALL' | 'TAGS_ONLY': Knowledge access mode for the agent
  - `knowledgeAccessTags` string[]: Tags that the agent has access to (only used when knowledgeAccessMode is TAGS_ONLY)
  - `includePrivateData` boolean: Include the user's profile info (owner name, phone, address, DOB, company) in the agent prompt.
  - `businessProfileId` string, nullable: Business profile this receptionist represents. Omitted or null on create = the default profile; detach later with an update.
  - `firstMessage` string: First message to send from the agent
  - `allowOutboundGreetingInterruptions` boolean: Whether recipients can interrupt the initial greeting on outbound calls
  - `enableVoiceExpressions` boolean: Whether the generated voice prompt includes provider-specific expression guidance
  - `closingPhrase` string: Closing phrase the agent says before ending an inbound call
  - `delayAcceptSeconds` number: Seconds to wait before the voice agent joins an inbound call.
  - `voiceRecognition` 'EN' | 'MULTI': Voice recognition mode: EN for English-only (highest accuracy), MULTI for multilingual support
  - `allowFollowUps` boolean: Whether the agent allows follow-ups
  - `followUpInstructions` string: Custom instructions for smart follow-up messages. When provided, the AI uses these to guide follow-up content.
  - `gatheringInformationOnIncomingCall` boolean: Whether the agent allows gathering information on incoming call
  - `maxIncomingCallDurationMinutes` number: Max duration of incoming call in minutes
  - `maxOutgoingCallDurationMinutes` number: Max duration of outgoing call in minutes
  - `incomingCallInstructions` string: Instructions for the agent on incoming calls
  - `welcomingVoiceMailMessageForContacts` string: Welcoming voice mail message for contacts
  - `welcomingVoiceMailMessageForOthers` string: Welcoming voice mail message for others
  - `isVoiceMailAgent` boolean: Is agent a voice mail agent
  - `incomingCallTypingSound` boolean: Whether the agent has a typing sound for incoming calls
  - `incomingCallBackgroundSound` boolean: Whether the agent has a background sound for incoming calls
  - `outgoingCallTypingSound` boolean: Whether the agent has a typing sound for outgoing calls
  - `outgoingCallBackgroundSound` boolean: Whether the agent has a background sound for outgoing calls
  - `allowIncomingSms` boolean: Whether the agent allows incoming SMS messages
  - `incomingSmsInstructions` string: Instructions for the agent on incoming SMS messages
  - `autoRespondToSms` boolean: Whether the agent automatically responds to SMS messages
  - `ownerTextsToChat` boolean: Texts from a confirmed phone of the account owner or a team member go to that person's in-app chat instead of the SMS receptionist; the chat's answer is texted back
  - `smsResponseDelay` number: Delay in seconds before responding to SMS messages
  - `postCallSmsMessage` string: Post-call SMS message to send after incoming calls complete
  - `allowRealtimeSms` boolean: Whether the agent can send SMS messages during calls via the send_sms tool
  - `recordCalls` boolean: Whether to create audio recordings for calls. Text transcripts remain available when disabled.
  - `requireDataConsent` boolean: Whether the agent requires data consent before starting calls
  - `dataConsentText` string: Custom text/instructions for what consent is being requested for
  - `enablePostCallActions` boolean: Whether to enable post-call outbound actions (scheduling calls after incoming calls)
  - `postCallActionRules` PostCallActionRuleInputDto[]: Structured Lead Alert rules
    - `id` string: Existing rule ID when editing
    - `channel` 'PHONE_CALL' | 'SMS', required
    - `condition` string, required: When this alert should run
    - `recipientName` string: Human-readable recipient name
    - `phoneNumber` string, required: Recipient phone number
    - `delaySeconds` number, required
    - `briefingInstructions` string: Additional facts or questions to include in the alert
  - `strictSpamFilter` boolean: Strictly reject incoming calls detected as spam before connecting to the agent
  - `skipAiForSyncedContacts` boolean: Skip AI: every contact synced from the owner's phone goes to the Skip AI voicemail instead of the receptionist. Contacts saved after calls, on the web, or by import are not included.
  - `valuableCallRule` string, nullable: Custom rule for detecting valuable incoming calls after each call. Max 300 characters.
  - `overrideCallerId` string, nullable: UUID of a verified caller ID to use for outbound calls. Null to clear.
  - `skipAiRingFirst` boolean: Skip AI "Ring me in the app": a Skip AI caller rings the app of the person who turned it on, on skipAiRingDeviceIds, for 20 seconds, then gets the Skip AI voicemail. Turning it on needs at least one device.
  - `skipAiRingDeviceIds` string[]: Devices of the ring person that ring (ids with canRingCalls from GET /users/me/devices), up to 10

## Response `200`

The agent has been successfully updated.

- AgentDto
  - `id` string, required
  - `name` string, required: Agent name
  - `description` string: Agent description
  - `avatar` string: Agent avatar
  - `isPublic` boolean, required: Is agent public
  - `isActive` boolean, required: Is agent active
  - `instructions` string, required: Agent instructions
  - `incomingCallInstructions` string, required: Agent instructions for incoming calls
  - `maxIncomingCallDurationMinutes` number, required: Max duration of incoming call in minutes
  - `maxOutgoingCallDurationMinutes` number, required: Max duration of outgoing call in minutes
  - `gatheringInformationOnIncomingCall` boolean, required: Whether the agent allows gathering information on incoming call
  - `createdAt` string, date-time, required: Agent created at
  - `updatedAt` string, date-time, required: Agent updated at
  - `tools` AgentToolDto[]: Agent tools
    - `agentId` string, required: Agent id
    - `toolId` string, required: Tool id
    - `createdAt` string, date-time, required: Tool name
    - `tool` ToolDto, required: Tool
      - `id` string, required: Unique identifier of the tool
      - `name` string, required: Name of the tool/function
      - `description` string, required: Description of what the tool does
      - `instruction` string, required: Instructions for GPT on how to use this tool
      - `toolType` 'HTTP' | 'MCP' | 'CODE', required: Type of the tool
      - `url` string: Webhook URL to call (HTTP tools only)
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE': HTTP method to use (HTTP tools only)
      - `waitForResponse` boolean, required: HTTP tools only: false means the request is sent in the background and the agent does not wait for the reply
      - `mcpServerUrl` string: MCP server URL (MCP tools only)
      - `mcpServerName` string: Human-readable name for the MCP server (MCP tools only)
      - `mcpToolName` string: Name of the specific tool/function on the MCP server (MCP tools only)
      - `codeLanguage` 'PYTHON' | 'JAVASCRIPT' | 'TYPESCRIPT': Code language (CODE tools only)
      - `inputSchema` SchemaFieldDto, required: Input schema for validation - root schema object
        - `name` string, required
        - `type` 'string' | 'number' | 'boolean' | 'array' | 'object' | 'enum' | 'union' | 'date' | 'file' | 'calculated', required
        - `description` string
        - `children` SchemaFieldDto[]
        - `enumValues` string[]
        - `validations` SchemaFieldValidationsDto
          - `required` boolean
          - `min` number
          - `max` number
          - `regex` string
          - `custom` string
          - `default` string
        - `label` string
        - `calculatedField` CalculatedFieldDto
          - `dependencies` string[], required
          - `formula` string, required
      - `isActive` boolean, required: Whether the tool is active
      - `createdAt` string, date-time, required: When the tool was created
      - `updatedAt` string, date-time, required: When the tool was last updated
  - `accessToKnowledge` boolean: Is agent allowed to access knowledge
  - `knowledgeAccessMode` 'NONE' | 'ALL' | 'TAGS_ONLY': Knowledge access mode for the agent
  - `knowledgeAccessTags` string[]: Tags that the agent has access to when knowledge access is tag-limited
  - `allowFollowUps` boolean: Is agent allowed to schedule follow-ups
  - `followUpInstructions` string: Custom instructions for smart follow-up messages
  - `includePrivateData` boolean: Whether the user's profile info (owner name, phone, address, DOB, company) is included in the agent prompt
  - `businessProfileId` string, nullable: Business profile this receptionist represents; null = no business profile
  - `voice` string: Agent voice
  - `firstMessage` string: First message to be sent to the agent
  - `allowOutboundGreetingInterruptions` boolean: Whether recipients can interrupt the initial greeting on outbound calls
  - `enableVoiceExpressions` boolean: Whether the generated voice prompt includes provider-specific expression guidance
  - `closingPhrase` string: Closing phrase the agent says before ending an inbound call
  - `delayAcceptSeconds` number: Seconds to wait before the voice agent joins an inbound call.
  - `voiceRecognition` string: Voice recognition mode: EN for English-only (highest accuracy), MULTI for multilingual support
  - `sttKeyterms` string[]: Names and special words the speech recognizer should expect on calls
  - `temperature` number: Temperature for the agent
  - `dataCollections` DataCollectionResponseDto[]: Data collections for the agent
    - `dataIdentifier` string, required
    - `description` string, required
    - `dataType` 'STRING' | 'NUMBER' | 'BOOLEAN' | 'INTEGER' | 'DATE', required
    - `id` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `agentId` string, required
    - `results` DataCollectionResultDto[]
      - `id` string, required
      - `dataCollectionId` string, required
      - `callId` string, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `dataValue` object, required
  - `evaluations` EvaluationResponseDto[]: Evaluations for the agent
    - `name` string, required
    - `prompt` string, required
    - `id` string, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `agentId` string, required
    - `results` EvaluationResultDto[]
      - `id` string, required
      - `callId` string, required
      - `evaluationId` string, required
      - `createdAt` string, date-time, required
      - `updatedAt` string, date-time, required
      - `type` 'SUCCESS' | 'FAILURE' | 'UNKNOWN', required
      - `rationale` string, required
  - `welcomingVoiceMailMessageForContacts` string: Welcoming voice mail message for contacts
  - `welcomingVoiceMailMessageForOthers` string: Welcoming voice mail message for others
  - `isVoiceMailAgent` boolean: Is agent a voice mail agent
  - `voiceSpeed` number: Voice pace from slow to fast. 0.5 is normal/provider default. Not all voice providers support speed control.
  - `incomingCallTypingSound` boolean: Typing sound for the agent
  - `incomingCallBackgroundSound` boolean: Background sound for the agent
  - `outgoingCallBackgroundSound` boolean: Background sound for the agent
  - `outgoingCallTypingSound` boolean: Typing sound for the agent
  - `allowIncomingSms` boolean: Whether the agent allows incoming SMS messages
  - `incomingSmsInstructions` string: Instructions for the agent on incoming SMS messages
  - `autoRespondToSms` boolean: Whether the agent automatically responds to SMS messages
  - `ownerTextsToChat` boolean: Texts from a confirmed phone of the account owner or a team member go to that person's in-app chat instead of the SMS receptionist; the chat's answer is texted back
  - `smsResponseDelay` number: Delay in seconds before responding to SMS messages
  - `postCallSmsMessage` string: Post-call SMS message to send after incoming calls complete
  - `allowRealtimeSms` boolean: Whether the agent can send SMS messages during calls via the send_sms tool
  - `phoneNumbers` NumberItemDto[]: Phone numbers for the agent
    - `id` string, required: Phone number ID
    - `createdAt` string, date-time, required: Created at
    - `updatedAt` string, date-time, required: Updated at
    - `phoneNumber` string, required: Phone number
    - `country` string, required: Two letter country code for supported countries
    - `isActive` boolean, required: Active status
    - `agent` NumberAgentDto: Associated agent details
      - `id` string, required: Agent ID
      - `name` string, required: Agent name
    - `agentId` string, required: Agent ID
    - `direction` 'INCOMING' | 'OUTGOING' | 'BIDIRECTIONAL': Direction of the phone number
    - `isSharedOutbound` boolean: Whether the number is shared for outbound calls
  - `emailAddress` AgentEmailAddressDto, nullable: Active email receptionist address for the agent, if any
    - `address` string, required: Full agent email address (slug@domain)
    - `status` 'ACTIVE' | 'DISABLED', required: Routing status for the email address
  - `recordCalls` boolean: Whether calls produce audio recordings. Text transcripts remain available when disabled.
  - `requireDataConsent` boolean: Whether the agent requires data consent before starting calls
  - `dataConsentText` string: Custom text/instructions for what consent is being requested for
  - `enablePostCallActions` boolean: Whether to enable post-call outbound actions (scheduling calls after incoming calls)
  - `postCallActionRules` PostCallActionRuleDto[]: Structured Lead Alert rules in execution order
    - `id` string, required: Existing rule ID when editing
    - `channel` 'PHONE_CALL' | 'SMS', required
    - `condition` string, required: When this alert should run
    - `recipientName` string: Human-readable recipient name
    - `phoneNumber` string, required: Recipient phone number
    - `delaySeconds` number, required
    - `briefingInstructions` string: Additional facts or questions to include in the alert
    - `sortOrder` number, required
  - `strictSpamFilter` boolean: Strictly reject incoming calls detected as spam before connecting to the agent
  - `skipAiForSyncedContacts` boolean: Skip AI: every contact synced from the owner's phone goes to the Skip AI voicemail instead of the receptionist. Contacts saved after calls, on the web, or by import are not included.
  - `skipAiRingFirst` boolean: Skip AI "Ring me in the app": a Skip AI caller rings the app of the person who turned it on, on skipAiRingDeviceIds, before the voicemail
  - `skipAiRingDeviceIds` string[]: Devices of the ring person that ring
  - `skipAiRingUserId` string, nullable: Skip AI "Ring me in the app": the person (AuthUser id) whose app rings; null while it was never turned on
  - `valuableCallRule` string, nullable: Custom rule for detecting valuable incoming calls after each call.
  - `overrideCallerId` string: UUID of a verified caller ID to use for outbound calls. Null to clear.

## Other responses

- `400`: Invalid agent instructions
- `404`: Agent not found.

## Changes

- **2026-11-28** `c893bb6c0091`: 1 info
  - the `incomingCallInstructions` request property's maxLength was increased from `11000` to `40000`
- **2026-11-12** `f21293ed4228`: 1 breaking, 1 info
  - the `emailAddress` response's property type changed from no type to `object` for status `200`
  - the response property `postCallActionRules/items/id` became required for the status `200`
- **2026-11-12** `d250cd4f77d0`: 2 breaking
  - the response property `postCallActionRules/items/id` became optional for the status `200`
  - the `emailAddress` response's property type changed from `object` to no type for status `200`
- **2026-11-11** `dfd3c5404b7d`: 1 breaking, 1 info
  - the `emailAddress` response's property type changed from no type to `object` for status `200`
  - the response property `postCallActionRules/items/id` became required for the status `200`
- **2026-11-11** `4058bf06780e`: 2 info
  - added the new optional request property `ownerTextsToChat`
  - added the optional property `ownerTextsToChat` to the response with the `200` status

[Operation history](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/changes/agents/:id/patch.md)

---

[API](https://skmtc.dev/skipcalls/apis/skipcalls-public-api.md) - [All operations](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/revisions/c893bb6c0091?raw)
