API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · phone_calls

Phone Call Schema

Schema-ID
phone_call
Collection
phone_calls
Permissions
  • Lezenphone_call_view
  • Aanmakenphone_call_create
  • Wijzigenphone_call_edit
  • Verwijderenphone_call_delete

Velden

Phone Call Schema

phone_calls4 permissions

Schema for phone call records including PBX integration data

directionstringvereist

Call direction

INBOUNDOUTBOUND
callerNumberstringvereist

Phone number of the caller

calledNumberstringvereist

Phone number that was called

callerNumberDigitsstringoptioneel

Digits-only search key derived from callerNumber (internal)

nullable
calledNumberDigitsstringoptioneel

Digits-only search key derived from calledNumber (internal)

nullable
durationSecondsnumbervereist

Total call duration in seconds

≥ 0
partyIduuidoptioneel

Linked party (customer/contact)

nullable
contactPartyIduuidoptioneel

Linked contact person

nullable
handledByIduuidoptioneel

User who handled the call

nullable
rungUserIdsuuid[]optioneel

Users whose phone rang during this call. Populated for inbound PBX calls (Starface CALLFLOW with CALLED_TYPE=USER) so missed calls show up under "my calls" for everyone whose extension rang, not just the (non-existent) handler.

ticketIduuidoptioneel

DEPRECATED (ADR 0386) — legacy single ticket link, superseded by `linkedEntities`. No UI ever wrote it; only read by the activity consumer, which now prefers `linkedEntities`.

nullable
opportunityIduuidoptioneel

DEPRECATED (ADR 0386) — legacy single opportunity link, superseded by `linkedEntities`. Still READ (existing calls keep showing their link) and cleared when the user removes that chip, but never written for new links. Do not add new consumers.

nullable
linkedEntitiesobject[]optioneel

Free-form cross-entity links (ADR 0386). A call is a touchpoint that can concern several records at once — two tickets, a complaint and the opportunity it came from — so this replaces the single-valued `ticketId`/`opportunityId` fields.

Default: []nullable
entityTypestringvereist
ticketcallback_requestprojectopportunitycomplainttaskassetvehiclecontractpartycoursecampaign
entityIduuidvereist
rolestringvereist
notestringoptioneel

Free-text note about the call

nullable
contactRatingintegeroptioneel

Manual 1-5 star rating of how the conversation went. Aggregated per contact person on the party detail page.

1 – 5nullable
contactSentimentstringoptioneel

Manual tone assessment of the conversation (freundlich / neutral / schwierig)

positiveneutralnegativenull
nullable
contactFeedbackNotestringoptioneel

Free-text note on the counterpart ("gut erreichbar", "entscheidet nicht selbst"). Kept separate from `note` (what was discussed) so the assessment can be permission-gated later without hiding the call content.

max. 1000 tekensnullable
ratedByIduuidoptioneel

Internal user id (`users._id`) who left the assessment

nullable
ratedAtdatetimeoptioneel

When the assessment was last changed

nullable
isCallbackRequestedbooleanvereist

Whether a callback was requested

startedAtdatetimevereist

When the call started (ISO 8601 on the wire; stored as BSON Date)

endedAtdatetimeoptioneel

When the call ended (ISO 8601 on the wire; stored as BSON Date)

nullable
callerNamestringoptioneel

Caller name from PBX

nullable
calledNamestringoptioneel

Called party name from PBX

nullable
callerAccountIdnumberoptioneel

PBX account ID of the caller (-1 for external)

nullable
isConnectedbooleanvereist

Whether the call was answered

isInternalCallbooleanvereist

Whether this was an internal call

isPickupbooleanvereist

Whether the call was picked up by another user

externalCallUuidstringoptioneel

External PBX call UUID (e.g. Starface CALL_UUID)

nullable
sourcestringoptioneel

Source of the call record. Drives the analytics capability tier (see CALL_SOURCE_FACTS); unknown/absent values are treated as tier 1.

manualstarfaceteamsfreeswitchxelionsipgateinnovaphone3cxnfonagfeo
nullable
teamsCallIdstringoptioneel

Microsoft Graph call record ID

nullable
teamsCallTypestringoptioneel

Teams call type: peer-to-peer calling or group meeting

callingmeeting
nullable
teamsMeetingUrlstringoptioneel

Teams meeting join URL (for meeting-type calls)

nullable
teamsParticipantsobject[]optioneel

Teams call participants

nullable
displayNamestringvereist
userPrincipalNamestringoptioneel
nullable
microsoftUserIdstringoptioneel
nullable
internalUserIdstringoptioneel
nullable
teamsModalitiesstring[]optioneel

Communication modalities used (audio, video, screen share)

nullable
callFlowobject[]optioneel

Detailed call routing steps from PBX

nullable
indexintegervereist
calledTypestringvereist
USERGROUPMODULEUNKNOWN
calledNamestringvereist
calledNumberstringvereist
calledAccountIdstringoptioneel
nullable
connectedbooleanvereist
forwardTypestringvereist
timeStartnumbervereist
timeEndnumbervereist
pickupbooleanvereist
pickupFirstNamestringoptioneel
nullable
pickupLastNamestringoptioneel
nullable
pickupAccountIdnumberoptioneel
nullable
pickupTimenumberoptioneel
nullable
pickupLoginIdstringoptioneel
nullable
moduleInfostringoptioneel
nullable
agentInfoobject[]optioneel
nullable
accountIdstringvereist
onlinebooleanvereist
busybooleanvereist
dndbooleanvereist
ringingbooleanvereist
waitTimeMsnumberoptioneel

Time the caller waited before pickup or abandonment (INBOUND only)

≥ 0nullable
rawWebhookDataobjectoptioneel

Raw webhook payload for future analysis

read-onlynullable
bookedAsTimeRecordIduuidoptioneel

Time record ID created from this call (marks call as booked)

nullable
pbxCallIdstringoptioneel

FreeSWITCH call UUID

nullable
sipTrunkIduuidoptioneel

SIP trunk used

nullable
extensionIduuidoptioneel

Extension that handled the call

nullable
queueIduuidoptioneel

ACD queue if routed through queue

nullable
recordingFileIduuidoptioneel

pbx_recording entity ID

nullable
transcriptTextstringoptioneel

Call transcript from STT

nullable
aiSummarystringoptioneel

AI-generated call summary

nullable
sentimentScorenumberoptioneel

Sentiment score -1 (negative) to 1 (positive)

-1 – 1nullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/phone_calls — Lijst, gepagineerd + filterbaar
  • GET /api/v1/phone_calls/<id> — Enkele entity
  • POST /api/v1/phone_calls — Aanmaken
  • PATCH /api/v1/phone_calls/<id> — Gedeeltelijke update
  • DELETE /api/v1/phone_calls/<id> — Soft-delete
  • GET /api/v1/phone_calls/<id>/timeline — Audit + activiteiten

Zoeken