Trillet AI logo

Get Phone Number Configuration

Retrieve the call flow and message flow configuration for a phone number.

GEThttps://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.

Response Fields

phoneNumberIdstring

The phone number ID.

agentIdstring

The call agent assigned to this phone number.

flowTypestring

Type of flow assigned ("call" or "message").

directionstring

Call direction configuration ("inbound", "outbound", "bidirectional").

statusstring

Configuration status.

recordingboolean

Whether call recording is enabled.

officeHoursobject

Office hours configuration for the phone number.

transferCallerIdModestring

Caller ID mode for call transfers.

metadataTagsarray

Array of metadata tags assigned to this phone number.

{
  "phoneNumberId": "665a1b2c3d4e5f6a7b8c9d0e",
  "agentId": "665a1b2c3d4e5f6a7b8c9d0f",
  "flowType": "call",
  "direction": "bidirectional",
  "status": "active",
  "recording": true,
  "officeHours": {
    "enabled": false
  },
  "transferCallerIdMode": "agent",
  "metadataTags": ["sales", "priority"]
}