Trillet AI logo

Update Phone Number Configuration

Update the call flow configuration for a phone number, including agent assignment, recording, and office hours.

PUThttps://api.trillet.ai/v1/api/twilio/phone-numbers/{phoneNumberId}/config

Headers

x-api-keystringrequired

API key used for authenticating requests to the API.

x-workspace-idstringrequired

Workspace identifier for the API.

Path Parameters

phoneNumberIdstringrequired

The unique identifier of the phone number.

Request Body

agentIdstring

The call agent ID to assign to this phone number.

maxCallDurationnumber

Maximum call duration in seconds.

recordingEnabledboolean

Whether to enable call recording.

officeHoursobject

Office hours configuration.

transferCallerIdModestring

Caller ID mode for transfers. Options: "agent", "customer".

metadataTagsarray

Array of metadata tag strings to assign.

labelstring

A label for the phone number.

Response Fields

successboolean

Whether the update was successful.

{
  "success": true
}