Skip to main content
Send a contact card and the recipient sees a rich contact preview they can tap to save directly to their contacts, with call / text / email action buttons.

Send a contact card

Pass the contact fields directly to sendContactCard — the SDK generates the vCard, uploads it, and attaches it to a message in one call.
Include at least one phones or emails entry. iOS uses them to render the tappable action buttons (call, text, email) on the contact preview.

Supported fields

Add a contact photo

Upload the photo via POST /v1/files first, then pass the returned file ID as photo. The SDK downloads it, sniffs the image type (JPEG / PNG), and embeds it inline in the vCard.
Keep photos small (under 100KB) for the best delivery experience. Large photos inflate the vCard significantly once base64-encoded.

Advanced: custom vCard

If you need fields that sendContactCard doesn’t expose (exotic TYPE combinations, custom X- extensions, multiple addresses), build the vCard yourself and send it via the file + attachment flow:

vCard format reference

For reference when building custom vCards, a full-featured example:

Common fields

The MIME type for vCard files is text/vcard, the file extension is .vcf, and lines are joined with \r\n.