Skip to content

HubSpot: Submit details of an inbound call to the CRM

HubSpot callingExtensions.createInboundCall: arguments, response, policy and SDK examples.

← Calling extensions operations · Get started

Operation hubspot.calling_extensions_create_inbound_call

Provider route: POST /crm/extensions/calling/2026-09/inbound-call. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/hubspot with npm, or alter-sdk-hubspot with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HubSpotIntegration } from "@alter-ai/hubspot";
async function execute(input: Parameters<HubSpotIntegration["callingExtensions"]["createInboundCall"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HubSpotIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.callingExtensions.createInboundCall(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_hubspot import HubSpotIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HubSpotIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.calling_extensions.create_inbound_call(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelRequired within parentExpand Submit details of an inbound call to the CRM — request body — body

Referenced models: Submit details of an inbound call to the CRM — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Submit details of an inbound call to the CRM — response body

Referenced models: Submit details of an inbound call to the CRM — response body

Submit details of an inbound call to the CRM — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
callStartedTimestampstringOptionalThe timestamp indicating when the call started, formatted as a date-time string.
Format: date-time
createEngagementbooleanRequired within parentIndicates whether an engagement should be created for the call.
durationSecondsintegerOptionalThe duration of the call in seconds.
Format: int32
engagementPropertiesobjectRequired within parentContains additional properties related to the engagement.
Additional keys: see wildcard field
engagementProperties.*stringAdditional keys
externalCallIdstringRequired within parentThe unique identifier for the call from an external system.
finalCallStatusstringRequired within parentThe final status of the call, with accepted values including: BUSY, CALLING_CRM_USER, CANCELED, COMPLETED, CONNECTING, FAILED, HOLD, IN_PROGRESS, MISSED, NO_ANSWER, QUEUED, RINGING, UNKNOWN.
One of: BUSY, CALLING_CRM_USER, CANCELED, COMPLETED, CONNECTING, FAILED, HOLD, IN_PROGRESS, MISSED, NO_ANSWER, QUEUED, RINGING, UNKNOWN
fromNumberModelRequired within parentExpand Submit details of an inbound call to the CRM — request body — body to Number
potentialRecipientUserIdsarrayRequired within parent
potentialRecipientUserIds[]integerEach itemFormat: int32
toNumberModelRequired within parentExpand Submit details of an inbound call to the CRM — request body — body to Number
userIdintegerOptionalThe ID of the user associated with the call.
Format: int32

Referenced models: Submit details of an inbound call to the CRM — request body — body to Number

Submit details of an inbound call to the CRM — response body
FieldTypePresenceDescription and constraints
$objectRoot
callerIdMatchesarrayRequired within parent
callerIdMatches[]JSONEach item
callerIdMatches[] (anyOf 1)ModelAlternativeExpand Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: CONTACT
callerIdMatches[] (anyOf 2)ModelAlternativeExpand Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY

Referenced models: Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY, Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: CONTACT

Submit details of an inbound call to the CRM — request body — body to Number
FieldTypePresenceDescription and constraints
$objectRoot
e164NumberstringRequired within parentThe phone number formatted in E.164 standard.
extensionstringOptionalThe extension number associated with the phone number.
phoneNumberTypestringRequired within parentThe type of phone number, with accepted values including FIXED_LINE, MOBILE, VOIP, and others.
One of: FIXED_LINE, FIXED_LINE_OR_MOBILE, MOBILE, PAGER, PERSONAL_NUMBER, PREMIUM_RATE, SHARED_COST, TOLL_FREE, UAN, UNKNOWN, VOICEMAIL, VOIP
Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY
FieldTypePresenceDescription and constraints
$objectRoot
callerIdTypestringRequired within parentSpecifies the type of caller ID, which is set to 'COMPANY' by default.
Known values: COMPANY
Default: COMPANY
namestringOptionalThe name associated with the company caller ID.
objectCoordinatesModelRequired within parentExpand Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY object Coordinates

Referenced models: Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY object Coordinates

Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: CONTACT
FieldTypePresenceDescription and constraints
$objectRoot
callerIdTypestringRequired within parentSpecifies the type of caller ID, with the default value being CONTACT.
Known values: CONTACT
Default: CONTACT
emailstringOptionalThe email address of the contact.
firstNamestringOptionalThe first name of the contact.
lastNamestringOptionalThe last name of the contact.
objectCoordinatesModelRequired within parentExpand Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY object Coordinates

Referenced models: Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY object Coordinates

Submit details of an inbound call to the CRM. — response body — callerIdMatches / item / callerIdType: COMPANY object Coordinates
FieldTypePresenceDescription and constraints
$objectRoot
objectIdJSONRequired within parent
objectId (anyOf 1)integerAlternativeThe unique identifier for the object.
Format: int64
objectId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
objectTypeIdstringRequired within parentThe type identifier for the object.
portalIdJSONRequired within parent
portalId (anyOf 1)integerAlternativeThe unique identifier for the portal.
Format: int32
portalId (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

SDK function policy ID: hubspot.calling_extensions_create_inbound_call. Catalog operation: calling_extensions_create_inbound_call. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["crm.objects.contacts.highly_sensitive.write.v2", "crm.objects.contacts.sensitive.write.v2", "crm.objects.contacts.write", "crm.schemas.contacts.write"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.