Skip to content
gist.link ↗

Phone types

Type definitions referenced by Phone queries and mutations.

Object.

Field Type Description
uuid ID! —
name String! —
persona String! —
faqs JSON! FAQ list: [{question, answer}].
messageFields JSON! Fields the agent collects when taking a message.
createdAt String! —
updatedAt String! —

Object.

Field Type Description
e164 String! —
friendlyName String! —
locality String —
region String —
country String! —
capabilities JSON! —
monthlyRentalMinor Int! —
currency String! —

Scalar. The Boolean scalar type represents true or false.

Object.

Field Type Description
uuid ID! —
number PhoneNumber! —
direction String! —
fromAddress String! —
toAddress String! —
status String! —
disposition String —
durationSeconds Int! —
recordingUrl String —
transcription String —
createdAt String! —

Object.

Field Type Description
edges [CallEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Call! —

Input object.

Field Type Description
numberUuid ID —
direction String —
disposition String —
search String Substring match against from/to addresses.
contactE164 String Exact remote party: the caller on inbound calls, the callee on outbound.

Object.

Field Type Description
uuid ID! —
name String! —
version Int! —
steps JSON! Ordered step definitions (see phone/AGENTS.md for step shapes).
createdAt String! —
updatedAt String! —

Object. An outside number with its call/SMS activity rollup.

Field Type Description
e164 String! —
lastActivityAt String! —
lastDirection String! inbound | outbound
lastChannel String! call | sms
callCount Int! —
missedCount Int! —
messageCount Int! —

Object.

Field Type Description
uuid ID! —
numberUuid ID! —
trigger String! missed_call | voicemail | offhours_sms
emailRecipients [String!]! —
createTicket Boolean! —
messageTemplate String —
active Boolean! —
createdAt String! —
updatedAt String! —

Object.

Field Type Description
ok Boolean! —
service String! —

Scalar. The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Scalar. Arbitrary JSON payload (pass-through scalar).

Input object.

Field Type Description
numberUuid ID —
contactE164 String —
unreadOnly Boolean —

Object.

Field Type Description
number PhoneNumber! —
contactE164 String! —
lastMessage SmsMessage! —
unreadCount Int! —

Enum.

Value Description
LOCAL —
TOLLFREE —

Object.

Field Type Description
hasNextPage Boolean! —
endCursor String —

Object.

Field Type Description
uuid ID! —
e164 String! —
friendlyName String! —
capabilities JSON! Carrier capabilities, e.g. {voice: true, sms: true, mms: true}.
assigneeIds [ID!]! Auth user uuids this number rings for.
activeCallFlow CallFlow —
status String! —
monthlyRentalMinor Int! —
currency String! —
createdAt String! —
updatedAt String! —

Input object.

Field Type Description
e164 String! —
friendlyName String —

Input object.

Field Type Description
kind String! browser | sip
label String! —

Input object.

Field Type Description
uuid ID —
name String! —
persona String! —
faqs JSON —
messageFields JSON —

Input object.

Field Type Description
uuid ID Omit to create; provide to update (bumps version).
name String! —
steps JSON! —

Input object.

Field Type Description
uuid ID —
numberUuid ID! —
trigger String! —
emailRecipients [String!] —
createTicket Boolean —
messageTemplate String —
active Boolean —

Input object.

Field Type Description
numberUuid ID! —
to String! —
body String! —
mediaUrls [String!] —

Object.

Field Type Description
uuid ID! —
number PhoneNumber! —
direction String! —
contactE164 String! —
body String! —
mediaUrls [String!]! —
status String! —
isRead Boolean! —
createdAt String! —

Object.

Field Type Description
edges [SmsMessageEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node SmsMessage! —

Enum. Sort direction for list queries.

Value Description
ASC —
DESC —

Input object. Generic sort specifier: a whitelisted field name plus a direction.

Field Type Description
field String! —
direction SortDirection! —

Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Input object.

Field Type Description
friendlyName String —
assigneeIds [ID!] —

Object.

Field Type Description
uuid ID! —
call Call! —
recordingUrl String! —
durationSeconds Int! —
transcription String —
isRead Boolean! —
handoffState String! —
createdAt String! —

Object.

Field Type Description
edges [VoicemailEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
cursor String! —
node Voicemail! —

Input object.

Field Type Description
numberUuid ID —
unreadOnly Boolean —
contactE164 String Exact caller E.164.

Object.

Field Type Description
token String! —
identity String! —
expiresAt String! RFC3339 expiry.

Object.

Field Type Description
uuid ID! —
kind String! —
label String! —
sipDomain String —
sipUsername String —
ringEnabled Boolean! —
createdAt String! —

Object.

Field Type Description
endpoint VoipEndpoint! —
sipPassword String Set only for kind=sip, and only in this response — never stored.