OBJECT

PhoneEntity

Phone number connected to Coevera for calls, text messages or WhatsApp, either personal to a user or shared by the company.

link GraphQL Schema definition

  • type PhoneEntity {
  • # True when the record is protected against deletion because it must always exist
  • # in the space. Deleting a record that is not protected can still fail on other
  • # checks. Read-only.
  • isDeleteProtected: Boolean!
  • # Unique identifier of entity.
  • id: ID!
  • # Specifies if the entity is considered deleted.
  • isDeleted: Boolean
  • # Last modification time.
  • modified: DateTime
  • # Creation time.
  • created: DateTime
  • # User the phone is assigned to, when the phone belongs to a specific user
  • # (personal calling/SMS line).
  • owner: ClientEntity
  • # Error code recorded for the phone, set on integration failures (e.g. provider
  • # rejected the last send) or when the user disables the integration; empty when
  • # the phone is healthy.
  • errorCode: Int
  • # Name of the entity and its default text representation.
  • name: String!
  • # Id of the assigned user, or empty when the phone is a company-level resource.
  • ownerId: ID
  • # Phone number in E.164 format (e.g. "+12025550123").
  • phoneNumber: String
  • # External caller identifier from the calling provider (e.g. Twilio caller SID).
  • twilioCallerSid: String
  • # Channel and assignment of the phone number: calling only, calling and SMS
  • # (unassigned, personal to the owner or shared by the company), or a personal or
  • # company WhatsApp account.
  • type: PhoneTypeEnum!
  • # Revision when entity was lastly changed.
  • revision: Int
  • # Email address that incoming text messages to this phone are forwarded to. Empty
  • # when forwarding is not configured.
  • messageForwardingEmail: String
  • # Phone number that incoming calls/SMS to this phone are forwarded to. Empty when
  • # forwarding is not configured.
  • callForwardingPhone: String
  • # False when the user has disabled the calling/SMS integration on this phone
  • # (errorCode is set to indicate user disablement); true otherwise.
  • enabled: Boolean!
  • # Permissions the current user has on this record, out of the requested ones.
  • #
  • # Arguments
  • # permissions: Permissions to check; the result lists those the
  • # current user has.
  • instancePermissions(permissions: [EntityPermsEnum!]!): [EntityPermsEnum!]!
  • }