> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contactsmanager.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Instant Message

> Instant messaging information for contacts in the ContactsManager SDK

# Instant Message

The `ContactInstantMessage` model represents an instant messaging account associated with a contact in the ContactsManager SDK.

## Properties

* `instantMessageId: String` - Unique identifier for the IM entry
* `service: String?` - The messaging service (e.g., WhatsApp, Telegram, Signal)
* `username: String?` - The username on the messaging platform
* `userIdentifier: String?` - Unique identifier for the user on the platform
* `type: String?` - The type or label for the IM (e.g., personal, work)
* `emoji: String?` - An emoji icon associated with this IM account
* `contact: Contact?` - Reference to the parent contact that owns this IM account

## Usage Example

```swift theme={null}
// Create an instant message account
let instantMessage = ContactInstantMessage(
    contactId: "contact-123",
    service: "WhatsApp",
    username: "+1234567890",
    userIdentifier: nil,
    type: "personal",
    emoji: "💬"
)

// Add to a contact
contact.instantMessageAddresses.append(instantMessage)

// Access from a contact
if let firstIM = contact.instantMessageAddresses.first {
    print("IM: \(firstIM.display())")
}
```

## Related

* [Contact Model](/models/contact) - The parent contact model
* [Social Profile Model](/models/social-profile) - Social media profiles for contacts
* [Phone Number Model](/models/phone-number) - Phone numbers for contacts
