---
title: "Search incoming calls only"
method: GET
path: "/incoming-calls/search"
tags: ["incoming-calls"]
---

# Search incoming calls only

`GET /incoming-calls/search`

## 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/incoming-calls/search`
- Auth: HTTP bearer

Full-text search scoped to inbound calls — matches caller name, phone number, transcript, summary, and title case-insensitively. Faster than `/calls/search` which also scans outbound calls. Returns `matchedFields` per result showing which columns hit the query. Soft-deleted calls are excluded.

## Query parameters

- `query` string, required
- `limit` number
- `offset` number
- `agentId` string

## Response `200`

Search results for incoming calls only

- IncomingCallHistoryResponseDto
  - `calls` IncomingCallDto[], required: Incoming calls
    - `routing` RoutingCallDetailsDto
      - `recordingStatus` 'disabled' | 'consent_declined' | 'failed' | 'available': Present after finalization; unavailable while a connected call is still running
      - `recordCalls` boolean, required
      - `outcome` 'connected' | 'no_answer' | 'caller_abandoned' | 'failed' | 'takeover' | 'returned', required: `returned`: the person who answered in the SkipCalls app (`recipient`) handed the caller back to the AI receptionist
      - `durationSeconds` number, nullable, required
      - `recipient` RuntimeRoutingTargetDto: Who answered: on `connected`, and on `returned` (who handed the caller back)
        - `id` string, required
        - `type` 'phone' | 'app', required
        - `label` string, required
        - `phoneNumber` string, nullable, required: Null for `app` targets
      - `attempts` RoutingHistoryAttemptDto[], required
        - `target` RuntimeRoutingTargetDto, required
          - `id` string, required
          - `type` 'phone' | 'app', required
          - `label` string, required
          - `phoneNumber` string, nullable, required: Null for `app` targets
        - `status` 'answered' | 'busy' | 'no_answer' | 'failed' | 'cancelled', required
        - `durationSeconds` number
    - `inAppTransfer` InAppTransferCallDto: Set when the receptionist transferred the call to a person who answered in the SkipCalls app
      - `answeredBy` InAppTransferPersonDto, required
        - `userId` string, required: AuthUser id of the person who answered
        - `name` string, nullable, required
      - `deviceName` string, nullable, required
      - `joinedAtSeconds` number, required: Seconds from call start when they joined
      - `connectedSeconds` number, required: How long they were on the call
      - `recordingStatus` 'available' | 'processing' | 'unavailable', required: Recording of the whole call, their part included
    - `inAppTransferReply` InAppTransferReplyDto: Quick reply the person rung in the app sent ("Mike replied: I'll call you back in 10 minutes")
      - `kind` 'declined' | 'returned', required
      - `presetId` string, required
      - `text` string, required
      - `by` InAppTransferPersonDto, required
        - `userId` string, required: AuthUser id of the person who answered
        - `name` string, nullable, required
      - `at` string, required: ISO time the reply was sent
    - `id` string, required
    - `userId` string, required
    - `phoneNumberFrom` string, required: Phone number from call
    - `createdAt` string, date-time, required: Started at
    - `title` string: Call title
    - `callerName` string: Caller name
    - `status` 'FINISHED' | 'PROCESSED' | 'FAILED' | 'IN_PROGRESS', required: Call status
    - `handling` 'RECEPTIONIST' | 'PERSONAL_VOICEMAIL' | 'ROUTED_HUMAN' | 'SKIP_AI_RING', required: Who took the call: the AI receptionist, or the Skip AI voicemail for a contact that skips AI
    - `minutesUsed` number: Minutes used
    - `transactions` TransactionDto[], required: Transactions related to the call
      - `minutes` number, required: Minutes used
      - `type` string, required: Transaction type
      - `createdAt` string, date-time, required: Transaction created at
      - `description` string: Transaction description
    - `recordingUrl` string: Recording URL
    - `userRating` boolean: User rating, where true is good and false is bad. null is no rating.
    - `reviewedAt` string, date-time: Reviewed at
    - `finalSummary` string: Final summary
    - `roleplayTranscript` RoleplayTranscriptDto[]: Transcript
      - `from` 'ai' | 'user' | 'team', required: "ai" the receptionist, "user" the caller, "team" a person from the business who answered an in-app transfer (show `speakerName`; clients that do not know "team" may show it as the business side).
      - `speakerName` string: Display name of a "team" speaker
      - `text` string, required
      - `metadata` RoleplayTranscriptMetadataDto
        - `tone` string, required: Tone
        - `emotion` string, required: Emotion
        - `language` string, required: Language
        - `sentiment` string, required: Sentiment
      - `timestamp` number, required
    - `transcript` string: Transcript in plain text
    - `agent` AgentDto: Agent
      - `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
              - …
            - `label` string
            - `calculatedField` CalculatedFieldDto
              - …
          - `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.
    - `phoneNumberTo` NumberItemDto: Phone number to
      - `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
    - `followUps` CallFollowUpDto[]: Follow ups
      - `id` string, required: Follow-up ID
      - `type` 'SMS' | 'EMAIL' | 'CALL', required: Follow-up type
      - `content` string, required: Follow-up content
      - `recipientEmail` string: Recipient email
      - `recipientPhone` string: Recipient phone
      - `status` 'PENDING' | 'AWAITING_CLARIFICATION' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' | 'CANCELLED' | 'SCHEDULED', required: Follow-up status
      - `createdAt` string, date-time, required: Follow-up created at
      - `updatedAt` string, date-time, required: Follow-up updated at
      - `triggeredByCallId` string: Outbound call that triggered this follow-up, when different from the parent call
    - `taskResults` TaskResultDto[]: Per-call results of the agent goals (Call Handling): what it asked/did and the outcome
      - `id` string, required: Task result ID
      - `slug` string, required: Task slug (stable identifier)
      - `title` string, nullable: Human-readable task title (from definition, may be null if deleted)
      - `groupName` string, nullable: Group the task belongs to (e.g. Collect Information)
      - `status` 'completed' | 'unable' | 'not_attempted', required: Outcome of the task on this call
      - `reason` string, nullable: Agent's explanation or the collected value
      - `createdAt` string, date-time, required: When the result was recorded
    - `dataCollections` DataCollectionDto[]: Data collections
      - `id` string, required: Data collection ID
      - `agentId` string, required: Agent ID
      - `createdAt` string, date-time, required: Created at timestamp
      - `updatedAt` string, date-time, required: Updated at timestamp
      - `deletedAt` string, date-time: Deleted at timestamp
      - `dataType` 'STRING' | 'NUMBER' | 'BOOLEAN' | 'INTEGER' | 'DATE', required: Data collection type
      - `dataIdentifier` string, required: Data collection identifier
      - `description` string, required: Data collection description
    - `evaluations` EvaluationDto[]: Evaluations
      - `id` string, required: Evaluation ID
      - `agentId` string, required: Agent ID
      - `createdAt` string, date-time, required: Created at timestamp
      - `updatedAt` string, date-time, required: Updated at timestamp
      - `deletedAt` string, date-time: Deleted at timestamp
      - `name` string, required: Evaluation name
      - `prompt` string, required: Evaluation prompt
    - `recommendedNextAction` string: Recommended next action
    - `testCall` boolean: Test call
    - `isFavorite` boolean: Is this call favorited by the user
    - `isSpam` boolean: Whether the call is looks like spam or unwanted call
    - `spamComplaintStatus` 'ACCEPTED' | 'FAILED', nullable: Do Not Call complaint filed about this call: ACCEPTED (filed, nothing more to do), FAILED (may be retried), null when none was filed
    - `wasValuable` boolean: Whether the incoming call was detected as valuable
    - `callInterceptedByUser` boolean: Whether the call was intercepted by the user
    - `shareHash` string: Share hash for public sharing
    - `matchedFields` string[]: Fields that matched the search query (only present in search results)
    - `bookings` CallBookingDto[]: Appointments booked during this call
      - `id` string, required
      - `title` string, required
      - `description` string
      - `startTime` string, date-time, required
      - `endTime` string, date-time, required
      - `durationMinutes` number, required
      - `guestPhone` string
      - `guestEmail` string
      - `guestName` string
      - `sourceType` 'INBOUND_CALL' | 'OUTBOUND_CALL' | 'SMS' | 'MANUAL', required
      - `calendarProvider` 'GOOGLE' | 'CALENDLY' | 'TIDYCAL' | 'CALCOM' | 'SQUARE' | 'OUTLOOK' | 'GHL' | 'APPLE' | 'HOUSECALL_PRO', required
      - `externalEventUrl` string: Link to the event in external calendar
      - `timezone` string
      - `createdAt` string, date-time, required
    - `notes` string: User manual notes about this call (max 400 chars)
    - `contactId` string: Linked contact ID
    - `forwardingInfo` CallForwardingInfoDto: Parsed called-party forwarding route when SIP evidence is available
      - `type` 'direct' | 'forwarded', required
      - `chain` string[], required
  - `total` number, required: Total number of incoming calls

## Other responses

- `400`: Invalid search query

## Changes

- **2026-11-27** `b01b2d7cb229`: 1 info
  - added the optional property `calls/items/spamComplaintStatus` to the response with the `200` status
- **2026-11-12** `f21293ed4228`: 1 breaking, 1 info
  - the `calls/items/agent/allOf[#/components/schemas/AgentDto]/emailAddress` response's property type changed from no type to `object` for status `200`
  - the response property `calls/items/agent/allOf[#/components/schemas/AgentDto]/postCallActionRules/items/id` became required for the status `200`
- **2026-11-12** `d250cd4f77d0`: 2 breaking
  - the response property `calls/items/agent/allOf[#/components/schemas/AgentDto]/postCallActionRules/items/id` became optional for the status `200`
  - the `calls/items/agent/allOf[#/components/schemas/AgentDto]/emailAddress` response's property type changed from `object` to no type for status `200`
- **2026-11-11** `dfd3c5404b7d`: 1 breaking, 1 info
  - the `calls/items/agent/allOf[#/components/schemas/AgentDto]/emailAddress` response's property type changed from no type to `object` for status `200`
  - the response property `calls/items/agent/allOf[#/components/schemas/AgentDto]/postCallActionRules/items/id` became required for the status `200`
- **2026-11-11** `4058bf06780e`: 1 info
  - added the optional property `calls/items/agent/allOf[#/components/schemas/AgentDto]/ownerTextsToChat` to the response with the `200` status

[Operation history](https://skmtc.dev/skipcalls/apis/skipcalls-public-api/changes/incoming-calls/search/get.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)
